SAP GRRM_REP_CHA_EXECUTE Function Module for Execute









GRRM_REP_CHA_EXECUTE is a standard grrm rep cha execute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Execute 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 grrm rep cha execute FM, simply by entering the name GRRM_REP_CHA_EXECUTE into the relevant SAP transaction such as SE37 or SE38.

Function Group: GRRM_REP_CHA
Program Name: SAPLGRRM_REP_CHA
Main Program: SAPLGRRM_REP_CHA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function GRRM_REP_CHA_EXECUTE 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 'GRRM_REP_CHA_EXECUTE'"Execute
EXPORTING
IV_SELECTION = "XML
IS_DETAILS = "General Selection for Reporting
IV_REPORT_ID = "Object ID

IMPORTING
EV_RESULT = "XML
EV_RETURN_CODE = "Natural number
EV_MESSAGES = "XML
EV_STRUCT = "XML
EV_FIELD_MAP = "XML
.



IMPORTING Parameters details for GRRM_REP_CHA_EXECUTE

IV_SELECTION - XML

Data type: GRFN_XML
Optional: No
Call by Reference: No ( called with pass by value option)

IS_DETAILS - General Selection for Reporting

Data type: GRFN_S_REP_DETAILS
Optional: No
Call by Reference: No ( called with pass by value option)

IV_REPORT_ID - Object ID

Data type: GRFN_API_OBJECT_ID
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for GRRM_REP_CHA_EXECUTE

EV_RESULT - XML

Data type: GRFN_XML
Optional: No
Call by Reference: No ( called with pass by value option)

EV_RETURN_CODE - Natural number

Data type: INT4
Optional: No
Call by Reference: No ( called with pass by value option)

EV_MESSAGES - XML

Data type: GRFN_XML
Optional: No
Call by Reference: No ( called with pass by value option)

EV_STRUCT - XML

Data type: GRFN_XML
Optional: No
Call by Reference: No ( called with pass by value option)

EV_FIELD_MAP - XML

Data type: GRFN_XML
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for GRRM_REP_CHA_EXECUTE 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_ev_result  TYPE GRFN_XML, "   
lv_iv_selection  TYPE GRFN_XML, "   
lv_is_details  TYPE GRFN_S_REP_DETAILS, "   
lv_ev_return_code  TYPE INT4, "   
lv_ev_messages  TYPE GRFN_XML, "   
lv_iv_report_id  TYPE GRFN_API_OBJECT_ID, "   
lv_ev_struct  TYPE GRFN_XML, "   
lv_ev_field_map  TYPE GRFN_XML. "   

  CALL FUNCTION 'GRRM_REP_CHA_EXECUTE'  "Execute
    EXPORTING
         IV_SELECTION = lv_iv_selection
         IS_DETAILS = lv_is_details
         IV_REPORT_ID = lv_iv_report_id
    IMPORTING
         EV_RESULT = lv_ev_result
         EV_RETURN_CODE = lv_ev_return_code
         EV_MESSAGES = lv_ev_messages
         EV_STRUCT = lv_ev_struct
         EV_FIELD_MAP = lv_ev_field_map
. " GRRM_REP_CHA_EXECUTE




ABAP code using 7.40 inline data declarations to call FM GRRM_REP_CHA_EXECUTE

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.

 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!