SAP GRM_STRUCTURE_REMOTE Function Module for
GRM_STRUCTURE_REMOTE is a standard grm structure remote SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 grm structure remote FM, simply by entering the name GRM_STRUCTURE_REMOTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRM_REMOTE_ACCESS
Program Name: SAPLGRM_REMOTE_ACCESS
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GRM_STRUCTURE_REMOTE 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 'GRM_STRUCTURE_REMOTE'".
EXPORTING
* ACT_WEGID = ' ' "Evaluation Path
* AUTHORITY_CHECK = 'X' "Indicator: Authorization
* KEEP_ORDER = "General Flag
* ACT_INT_FLAG = "Indicator: read evaluation path in internal table
* ACT_PLVAR = ' ' "Plan Version
* ACT_SVECT = '1' "Status Vector
* ACT_BEGDA = SY-DATUM "Start Date
* ACT_ENDDA = SY-DATUM "End Date
* ACT_TDEPTH = 0 "Technical depth of structure
* ACT_TFLAG = 'X' "Indicator: Supply texts
* ACT_VFLAG = 'X' "Indicator: Supply relationship information
IMPORTING
ROOT_COPY = "General Structure Description
TABLES
ROOT_OBJECTS = "Root Objects
* RESULT_OBJEC = "Work Area for Database PCH
* RESULT_STRUC = "Structure Information for Database PCH
* SPECIAL_ICONS = "
* PATH_TAB = "Definition of Evaluation Paths
EXCEPTIONS
NO_PLVAR_FOUND = 1 PATH_NOT_FOUND = 2 ROOT_NOT_FOUND = 3
IMPORTING Parameters details for GRM_STRUCTURE_REMOTE
ACT_WEGID - Evaluation Path
Data type: GDSTR-WEGIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHORITY_CHECK - Indicator: Authorization
Data type: HRRHAS-AUTHYDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEEP_ORDER - General Flag
Data type: HRRHAP-ORDER_FLGOptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_INT_FLAG - Indicator: read evaluation path in internal table
Data type: HRRHAS-77AW_INTOptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_PLVAR - Plan Version
Data type: OBJEC-PLVARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_SVECT - Status Vector
Data type: HRRHAS-SVECTDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_BEGDA - Start Date
Data type: OBJEC-BEGDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_ENDDA - End Date
Data type: OBJEC-ENDDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_TDEPTH - Technical depth of structure
Data type: HRRHAS-TDEPTHOptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_TFLAG - Indicator: Supply texts
Data type: HRRHAS-TFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_VFLAG - Indicator: Supply relationship information
Data type: HRRHAS-VFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRM_STRUCTURE_REMOTE
ROOT_COPY - General Structure Description
Data type: GDSTROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GRM_STRUCTURE_REMOTE
ROOT_OBJECTS - Root Objects
Data type: HRROOTOBOptional: No
Call by Reference: Yes
RESULT_OBJEC - Work Area for Database PCH
Data type: OBJECOptional: Yes
Call by Reference: Yes
RESULT_STRUC - Structure Information for Database PCH
Data type: STRUCOptional: Yes
Call by Reference: Yes
SPECIAL_ICONS -
Data type: GMSPECICONOptional: Yes
Call by Reference: Yes
PATH_TAB - Definition of Evaluation Paths
Data type: T77AWOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_PLVAR_FOUND -
Data type:Optional: No
Call by Reference: Yes
PATH_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
ROOT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GRM_STRUCTURE_REMOTE 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_act_wegid | TYPE GDSTR-WEGID, " SPACE | |||
| lv_root_copy | TYPE GDSTR, " | |||
| lt_root_objects | TYPE STANDARD TABLE OF HRROOTOB, " | |||
| lv_no_plvar_found | TYPE HRROOTOB, " | |||
| lv_authority_check | TYPE HRRHAS-AUTHY, " 'X' | |||
| lv_keep_order | TYPE HRRHAP-ORDER_FLG, " | |||
| lv_act_int_flag | TYPE HRRHAS-77AW_INT, " | |||
| lt_result_objec | TYPE STANDARD TABLE OF OBJEC, " | |||
| lv_path_not_found | TYPE OBJEC, " | |||
| lv_act_plvar | TYPE OBJEC-PLVAR, " SPACE | |||
| lt_result_struc | TYPE STANDARD TABLE OF STRUC, " | |||
| lv_root_not_found | TYPE STRUC, " | |||
| lv_act_svect | TYPE HRRHAS-SVECT, " '1' | |||
| lt_special_icons | TYPE STANDARD TABLE OF GMSPECICON, " | |||
| lt_path_tab | TYPE STANDARD TABLE OF T77AW, " | |||
| lv_act_begda | TYPE OBJEC-BEGDA, " SY-DATUM | |||
| lv_act_endda | TYPE OBJEC-ENDDA, " SY-DATUM | |||
| lv_act_tdepth | TYPE HRRHAS-TDEPTH, " 0 | |||
| lv_act_tflag | TYPE HRRHAS-TFLAG, " 'X' | |||
| lv_act_vflag | TYPE HRRHAS-VFLAG. " 'X' |
|   CALL FUNCTION 'GRM_STRUCTURE_REMOTE' " |
| EXPORTING | ||
| ACT_WEGID | = lv_act_wegid | |
| AUTHORITY_CHECK | = lv_authority_check | |
| KEEP_ORDER | = lv_keep_order | |
| ACT_INT_FLAG | = lv_act_int_flag | |
| ACT_PLVAR | = lv_act_plvar | |
| ACT_SVECT | = lv_act_svect | |
| ACT_BEGDA | = lv_act_begda | |
| ACT_ENDDA | = lv_act_endda | |
| ACT_TDEPTH | = lv_act_tdepth | |
| ACT_TFLAG | = lv_act_tflag | |
| ACT_VFLAG | = lv_act_vflag | |
| IMPORTING | ||
| ROOT_COPY | = lv_root_copy | |
| TABLES | ||
| ROOT_OBJECTS | = lt_root_objects | |
| RESULT_OBJEC | = lt_result_objec | |
| RESULT_STRUC | = lt_result_struc | |
| SPECIAL_ICONS | = lt_special_icons | |
| PATH_TAB | = lt_path_tab | |
| EXCEPTIONS | ||
| NO_PLVAR_FOUND = 1 | ||
| PATH_NOT_FOUND = 2 | ||
| ROOT_NOT_FOUND = 3 | ||
| . " GRM_STRUCTURE_REMOTE | ||
ABAP code using 7.40 inline data declarations to call FM GRM_STRUCTURE_REMOTE
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.| "SELECT single WEGID FROM GDSTR INTO @DATA(ld_act_wegid). | ||||
| DATA(ld_act_wegid) | = ' '. | |||
| "SELECT single AUTHY FROM HRRHAS INTO @DATA(ld_authority_check). | ||||
| DATA(ld_authority_check) | = 'X'. | |||
| "SELECT single ORDER_FLG FROM HRRHAP INTO @DATA(ld_keep_order). | ||||
| "SELECT single 77AW_INT FROM HRRHAS INTO @DATA(ld_act_int_flag). | ||||
| "SELECT single PLVAR FROM OBJEC INTO @DATA(ld_act_plvar). | ||||
| DATA(ld_act_plvar) | = ' '. | |||
| "SELECT single SVECT FROM HRRHAS INTO @DATA(ld_act_svect). | ||||
| DATA(ld_act_svect) | = '1'. | |||
| "SELECT single BEGDA FROM OBJEC INTO @DATA(ld_act_begda). | ||||
| DATA(ld_act_begda) | = SY-DATUM. | |||
| "SELECT single ENDDA FROM OBJEC INTO @DATA(ld_act_endda). | ||||
| DATA(ld_act_endda) | = SY-DATUM. | |||
| "SELECT single TDEPTH FROM HRRHAS INTO @DATA(ld_act_tdepth). | ||||
| "SELECT single TFLAG FROM HRRHAS INTO @DATA(ld_act_tflag). | ||||
| DATA(ld_act_tflag) | = 'X'. | |||
| "SELECT single VFLAG FROM HRRHAS INTO @DATA(ld_act_vflag). | ||||
| DATA(ld_act_vflag) | = 'X'. | |||
Search for further information about these or an SAP related objects