SAP CRM_IC_SCRIPTING_SAVE_OBJECT Function Module for Get list of XML documents.
CRM_IC_SCRIPTING_SAVE_OBJECT is a standard crm ic scripting save object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get list of XML documents. processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for crm ic scripting save object FM, simply by entering the name CRM_IC_SCRIPTING_SAVE_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_IC_SCRIPTING_PERSIST
Program Name: SAPLCRM_IC_SCRIPTING_PERSIST
Main Program: SAPLCRM_IC_SCRIPTING_PERSIST
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CRM_IC_SCRIPTING_SAVE_OBJECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CRM_IC_SCRIPTING_SAVE_OBJECT'"Get list of XML documents..
EXPORTING
LANGUAGE = "Language Key
* SCRIPT_GROUP = "data type script group
OBJECTTYPE = "IS=Regular OS=Objection SU=Survey
OBJECTNAME = "XML document name
CATEGORYID = "Category ID (Interactive Script editor repository)
* XMLDATA = "String
* BEGINDATE = "Date
* ENDDATE = "Date
* KEEPLOCK = 'X' "Keep lock after saveing?
* INACTIVE = ' ' "Script Status
TABLES
OBJECTSDESCRIPTIONS = "Objects description
* ASSIGN_PROFILES = "structure of profile
EXCEPTIONS
CAN_NOT_LOCK_OBJECT = 1 CAN_NOT_SAVE_XML_DATA = 2 CAN_NOT_SAVE_ATTRIBUTES = 3 CAN_NOT_SAVE_DESCRIPTIONS = 4 NO_XML_RFC_AUTH = 5
IMPORTING Parameters details for CRM_IC_SCRIPTING_SAVE_OBJECT
LANGUAGE - Language Key
Data type: CHAR2Optional: No
Call by Reference: No ( called with pass by value option)
SCRIPT_GROUP - data type script group
Data type: CRM_IC_SCRGRPOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTTYPE - IS=Regular OS=Objection SU=Survey
Data type: CRM_IC_ISECOMPOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTNAME - XML document name
Data type: CRM_IC_XMLNAMEOptional: No
Call by Reference: No ( called with pass by value option)
CATEGORYID - Category ID (Interactive Script editor repository)
Data type: CRM_IC_ISECATIDOptional: No
Call by Reference: No ( called with pass by value option)
XMLDATA - String
Data type: CRM_IC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
BEGINDATE - Date
Data type: DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
ENDDATE - Date
Data type: DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
KEEPLOCK - Keep lock after saveing?
Data type: CHAR1Default: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
INACTIVE - Script Status
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CRM_IC_SCRIPTING_SAVE_OBJECT
OBJECTSDESCRIPTIONS - Objects description
Data type: CRMS_IC_OBJDSCOptional: No
Call by Reference: Yes
ASSIGN_PROFILES - structure of profile
Data type: CRMS_IC_SCRIPT_TOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CAN_NOT_LOCK_OBJECT - Object(s) are locked by other user
Data type:Optional: No
Call by Reference: Yes
CAN_NOT_SAVE_XML_DATA - Could not save xml data
Data type:Optional: No
Call by Reference: Yes
CAN_NOT_SAVE_ATTRIBUTES - Could not save attributes
Data type:Optional: No
Call by Reference: Yes
CAN_NOT_SAVE_DESCRIPTIONS - Could not save descriptions
Data type:Optional: No
Call by Reference: Yes
NO_XML_RFC_AUTH - can not start function module in CRM_IC_XML_STORAGE
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_IC_SCRIPTING_SAVE_OBJECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_language | TYPE CHAR2, " | |||
| lv_can_not_lock_object | TYPE CHAR2, " | |||
| lt_objectsdescriptions | TYPE STANDARD TABLE OF CRMS_IC_OBJDSC, " | |||
| lv_script_group | TYPE CRM_IC_SCRGRP, " | |||
| lv_objecttype | TYPE CRM_IC_ISECOMP, " | |||
| lt_assign_profiles | TYPE STANDARD TABLE OF CRMS_IC_SCRIPT_T, " | |||
| lv_can_not_save_xml_data | TYPE CRMS_IC_SCRIPT_T, " | |||
| lv_objectname | TYPE CRM_IC_XMLNAME, " | |||
| lv_can_not_save_attributes | TYPE CRM_IC_XMLNAME, " | |||
| lv_categoryid | TYPE CRM_IC_ISECATID, " | |||
| lv_can_not_save_descriptions | TYPE CRM_IC_ISECATID, " | |||
| lv_xmldata | TYPE CRM_IC_STRING, " | |||
| lv_no_xml_rfc_auth | TYPE CRM_IC_STRING, " | |||
| lv_begindate | TYPE DATUM, " | |||
| lv_enddate | TYPE DATUM, " | |||
| lv_keeplock | TYPE CHAR1, " 'X' | |||
| lv_inactive | TYPE CHAR1. " ' ' |
|   CALL FUNCTION 'CRM_IC_SCRIPTING_SAVE_OBJECT' "Get list of XML documents. |
| EXPORTING | ||
| LANGUAGE | = lv_language | |
| SCRIPT_GROUP | = lv_script_group | |
| OBJECTTYPE | = lv_objecttype | |
| OBJECTNAME | = lv_objectname | |
| CATEGORYID | = lv_categoryid | |
| XMLDATA | = lv_xmldata | |
| BEGINDATE | = lv_begindate | |
| ENDDATE | = lv_enddate | |
| KEEPLOCK | = lv_keeplock | |
| INACTIVE | = lv_inactive | |
| TABLES | ||
| OBJECTSDESCRIPTIONS | = lt_objectsdescriptions | |
| ASSIGN_PROFILES | = lt_assign_profiles | |
| EXCEPTIONS | ||
| CAN_NOT_LOCK_OBJECT = 1 | ||
| CAN_NOT_SAVE_XML_DATA = 2 | ||
| CAN_NOT_SAVE_ATTRIBUTES = 3 | ||
| CAN_NOT_SAVE_DESCRIPTIONS = 4 | ||
| NO_XML_RFC_AUTH = 5 | ||
| . " CRM_IC_SCRIPTING_SAVE_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM CRM_IC_SCRIPTING_SAVE_OBJECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_keeplock) | = 'X'. | |||
| DATA(ld_inactive) | = ' '. | |||
Search for further information about these or an SAP related objects