SAP RSAR_COMSTRUCTURE_ACTIVATE Function Module for BIW: Customizing communication structure for dialog function module
RSAR_COMSTRUCTURE_ACTIVATE is a standard rsar comstructure activate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BIW: Customizing communication structure for dialog function module 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 activate FM, simply by entering the name RSAR_COMSTRUCTURE_ACTIVATE 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_ACTIVATE 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_ACTIVATE'"BIW: Customizing communication structure for dialog function module.
EXPORTING
I_OBJECT = "Name of the object (the Info- or Object-Source)
* I_OBJTYPE = RSA_C_ISTYPE-DATA "Object Type
* I_T_CSSFIELD = "Fields of the communication structure
* I_COMSTRU_NAME = "Name of communication structure
* 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_WITHOUT_AUTHORITY = RS_C_FALSE "
CHANGING
* C_S_IS_ADMIN = "
EXCEPTIONS
NO_ENTRIES_IN_FIELDTABLE = 1 WRONG_OBJECTTYPE = 2 OBJECT_UNKNOWN = 3 DDIC_ERROR_BY_SAVING = 4 DDIC_ERROR_BY_ACTIVATE = 5 INTERNAL_ERROR = 6 DIFFERENT_COMSTRU_NAME = 7 ERROR_BY_SAVING = 8 INFOOBJECT_INACTIVE = 9
IMPORTING Parameters details for RSAR_COMSTRUCTURE_ACTIVATE
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_ISTYPEDefault: RSA_C_ISTYPE-DATA
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T_CSSFIELD - Fields of the communication structure
Data type: RSARC_T_RSSKSFIELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COMSTRU_NAME - Name of communication structure
Data type: RSA_COMSTRUOptional: Yes
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_WITHOUT_AUTHORITY -
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for RSAR_COMSTRUCTURE_ACTIVATE
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)
DDIC_ERROR_BY_SAVING - Error in the DDIC when saving comm. str.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DDIC_ERROR_BY_ACTIVATE - Error in the DDIC during activation of comm. str.
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)
DIFFERENT_COMSTRU_NAME - ComStru_Name not equal to the steering table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_BY_SAVING - Failed to save the communication structure
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INFOOBJECT_INACTIVE - Inactive InfoObjects to be used
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSAR_COMSTRUCTURE_ACTIVATE 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_s_is_admin | TYPE RSARC_S_IS_ADMIN, " | |||
| lv_no_entries_in_fieldtable | TYPE RSARC_S_IS_ADMIN, " | |||
| lv_i_objtype | TYPE RSA_ISTYPE, " RSA_C_ISTYPE-DATA | |||
| lv_wrong_objecttype | TYPE RSA_ISTYPE, " | |||
| lv_i_t_cssfield | TYPE RSARC_T_RSSKSFIELD, " | |||
| lv_object_unknown | TYPE RSARC_T_RSSKSFIELD, " | |||
| lv_i_comstru_name | TYPE RSA_COMSTRU, " | |||
| lv_ddic_error_by_saving | TYPE RSA_COMSTRU, " | |||
| lv_i_percentage | TYPE RSA_COMSTRU, " 0 | |||
| lv_ddic_error_by_activate | TYPE RSA_COMSTRU, " | |||
| lv_i_without_log | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_internal_error | TYPE RS_BOOL, " | |||
| lv_i_without_transport | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_different_comstru_name | TYPE RS_BOOL, " | |||
| lv_error_by_saving | TYPE RS_BOOL, " | |||
| lv_i_without_authority | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_infoobject_inactive | TYPE RS_BOOL. " |
|   CALL FUNCTION 'RSAR_COMSTRUCTURE_ACTIVATE' "BIW: Customizing communication structure for dialog function module |
| EXPORTING | ||
| I_OBJECT | = lv_i_object | |
| I_OBJTYPE | = lv_i_objtype | |
| I_T_CSSFIELD | = lv_i_t_cssfield | |
| I_COMSTRU_NAME | = lv_i_comstru_name | |
| I_PERCENTAGE | = lv_i_percentage | |
| I_WITHOUT_LOG | = lv_i_without_log | |
| I_WITHOUT_TRANSPORT | = lv_i_without_transport | |
| I_WITHOUT_AUTHORITY | = lv_i_without_authority | |
| CHANGING | ||
| C_S_IS_ADMIN | = lv_c_s_is_admin | |
| EXCEPTIONS | ||
| NO_ENTRIES_IN_FIELDTABLE = 1 | ||
| WRONG_OBJECTTYPE = 2 | ||
| OBJECT_UNKNOWN = 3 | ||
| DDIC_ERROR_BY_SAVING = 4 | ||
| DDIC_ERROR_BY_ACTIVATE = 5 | ||
| INTERNAL_ERROR = 6 | ||
| DIFFERENT_COMSTRU_NAME = 7 | ||
| ERROR_BY_SAVING = 8 | ||
| INFOOBJECT_INACTIVE = 9 | ||
| . " RSAR_COMSTRUCTURE_ACTIVATE | ||
ABAP code using 7.40 inline data declarations to call FM RSAR_COMSTRUCTURE_ACTIVATE
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_objtype) | = RSA_C_ISTYPE-DATA. | |||
| DATA(ld_i_without_log) | = RS_C_FALSE. | |||
| DATA(ld_i_without_transport) | = RS_C_FALSE. | |||
| DATA(ld_i_without_authority) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects