SAP RSAR_COMSTRUCTURE_SAVE Function Module for Save communication structure
RSAR_COMSTRUCTURE_SAVE is a standard rsar comstructure save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save communication structure 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 rsar comstructure save FM, simply by entering the name RSAR_COMSTRUCTURE_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAC
Program Name: SAPLRSAC
Main Program: SAPLRSAC
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSAR_COMSTRUCTURE_SAVE 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 'RSAR_COMSTRUCTURE_SAVE'"Save communication structure.
EXPORTING
I_OBJECT = "Name of the object (the Info- or Object-Source)
I_OBJTYPE = "Object Type
I_T_CSSFIELD = "
* I_OWNER = "
I_OBJVERS = "
* I_PERCENTAGE = 0 "Messages percentage of initial value
* I_WITHOUT_LOG = RS_C_FALSE "No own protocol, open it
* I_WITHOUT_TRANSPORT = RS_C_FALSE "No transports (after import method)
* I_COMSTRU_TECH = "Communication structure technical name in the Dictionary
CHANGING
C_COMSTRU_NAME = "
* C_S_IS_ADMIN = "
EXCEPTIONS
NO_ENTRIES_IN_FIELDTABLE = 1 WRONG_OBJECTTYPE = 2 OBJECT_UNKNOWN = 3 INTERNAL_ERROR = 4 ERROR_BY_DETERMINE_NAME = 5 TRANSPORT_FAILURE = 6
IMPORTING Parameters details for RSAR_COMSTRUCTURE_SAVE
I_OBJECT - Name of the object (the Info- or Object-Source)
Data type: RSA_OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_OBJTYPE - Object Type
Data type: RSA_ISTYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_T_CSSFIELD -
Data type: RSARC_T_RSSKSFIELDOptional: No
Call by Reference: No ( called with pass by value option)
I_OWNER -
Data type: RS_OWNEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJVERS -
Data type: RS_OBJVERSOptional: No
Call by Reference: No ( called with pass by value option)
I_PERCENTAGE - Messages percentage of initial value
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHOUT_LOG - No own protocol, open it
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHOUT_TRANSPORT - No transports (after import method)
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMSTRU_TECH - Communication structure technical name in the Dictionary
Data type: RSCOMSTRU_TECHOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RSAR_COMSTRUCTURE_SAVE
C_COMSTRU_NAME -
Data type: RSA_COMSTRUOptional: No
Call by Reference: No ( called with pass by value option)
C_S_IS_ADMIN -
Data type: RSARC_S_IS_ADMINOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ENTRIES_IN_FIELDTABLE - Field Table was empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_OBJECTTYPE - Object type is unknown
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_UNKNOWN - Object is unknown, event. wrong type of object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_BY_DETERMINE_NAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRANSPORT_FAILURE - Error during call to transport management
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_COMSTRUCTURE_SAVE 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_i_object | TYPE RSA_OBJECT, " | |||
| lv_c_comstru_name | TYPE RSA_COMSTRU, " | |||
| lv_no_entries_in_fieldtable | TYPE RSA_COMSTRU, " | |||
| lv_i_objtype | TYPE RSA_ISTYPE, " | |||
| lv_c_s_is_admin | TYPE RSARC_S_IS_ADMIN, " | |||
| lv_wrong_objecttype | TYPE RSARC_S_IS_ADMIN, " | |||
| lv_i_t_cssfield | TYPE RSARC_T_RSSKSFIELD, " | |||
| lv_object_unknown | TYPE RSARC_T_RSSKSFIELD, " | |||
| lv_i_owner | TYPE RS_OWNER, " | |||
| lv_internal_error | TYPE RS_OWNER, " | |||
| lv_i_objvers | TYPE RS_OBJVERS, " | |||
| lv_error_by_determine_name | TYPE RS_OBJVERS, " | |||
| lv_i_percentage | TYPE RS_OBJVERS, " 0 | |||
| lv_transport_failure | TYPE RS_OBJVERS, " | |||
| lv_i_without_log | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_without_transport | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_comstru_tech | TYPE RSCOMSTRU_TECH. " |
|   CALL FUNCTION 'RSAR_COMSTRUCTURE_SAVE' "Save communication structure |
| EXPORTING | ||
| I_OBJECT | = lv_i_object | |
| I_OBJTYPE | = lv_i_objtype | |
| I_T_CSSFIELD | = lv_i_t_cssfield | |
| I_OWNER | = lv_i_owner | |
| I_OBJVERS | = lv_i_objvers | |
| I_PERCENTAGE | = lv_i_percentage | |
| I_WITHOUT_LOG | = lv_i_without_log | |
| I_WITHOUT_TRANSPORT | = lv_i_without_transport | |
| I_COMSTRU_TECH | = lv_i_comstru_tech | |
| CHANGING | ||
| C_COMSTRU_NAME | = lv_c_comstru_name | |
| C_S_IS_ADMIN | = lv_c_s_is_admin | |
| EXCEPTIONS | ||
| NO_ENTRIES_IN_FIELDTABLE = 1 | ||
| WRONG_OBJECTTYPE = 2 | ||
| OBJECT_UNKNOWN = 3 | ||
| INTERNAL_ERROR = 4 | ||
| ERROR_BY_DETERMINE_NAME = 5 | ||
| TRANSPORT_FAILURE = 6 | ||
| . " RSAR_COMSTRUCTURE_SAVE | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_COMSTRUCTURE_SAVE
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_i_without_log) | = RS_C_FALSE. | |||
| DATA(ld_i_without_transport) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects