SAP GRPC_API_REPORT_START Function Module for Start report
GRPC_API_REPORT_START is a standard grpc api report start SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start report 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 grpc api report start FM, simply by entering the name GRPC_API_REPORT_START into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRPC_API_REPORT
Program Name: SAPLGRPC_API_REPORT
Main Program: SAPLGRPC_API_REPORT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GRPC_API_REPORT_START 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 'GRPC_API_REPORT_START'"Start report.
EXPORTING
I_SEL_SCREEN = "Report: Selection screen
* I_TEST_STEP = "PC Reporting: Activation of Requested Reports
* IS_FILTER = "Selection for Reporting
* IS_FILTER_CHA = "Selection for Reporting
* IS_FILTER_ALOG = "Selection for Reporting
* IS_FILTER_AC = "Selection for Reporting
IS_DETAILS = "Selection for Reporting
* I_WAIT = "General Flag
* I_SESSION_ID = "GRPC unique session ID
* I_OA_EVALUATION = "Single Value
IMPORTING
E_REPORT_ID = "GRPC ID of the individual object
E_RETURN_CODE = "Natural number
TABLES
* ET_MESSAGE = "Table with BAPI Return Information
* IT_RATING_FILTER_VALUE = "Rating values relevant for the rating filter in reporting
* IT_RATING_FILTER_CATEGORY = "Case categories relevant for the rating filter
IMPORTING Parameters details for GRPC_API_REPORT_START
I_SEL_SCREEN - Report: Selection screen
Data type: GRPC_REP_SEL_SCREENOptional: No
Call by Reference: No ( called with pass by value option)
I_TEST_STEP - PC Reporting: Activation of Requested Reports
Data type: GRPC_S_REP_TEST_STEPOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_FILTER - Selection for Reporting
Data type: GRPC_S_REP_SELECTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_FILTER_CHA - Selection for Reporting
Data type: GRPC_S_REP_SELECTION_CHAOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_FILTER_ALOG - Selection for Reporting
Data type: GRPC_S_REP_SELECTION_ALOGOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_FILTER_AC - Selection for Reporting
Data type: GRPC_S_REP_SELECTION_ACOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_DETAILS - Selection for Reporting
Data type: GRPC_S_REP_DETAILSOptional: No
Call by Reference: No ( called with pass by value option)
I_WAIT - General Flag
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SESSION_ID - GRPC unique session ID
Data type: GRPC_API_SESSION_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OA_EVALUATION - Single Value
Data type: VAL_SINGLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRPC_API_REPORT_START
E_REPORT_ID - GRPC ID of the individual object
Data type: GRPC_API_OBJECT_IDOptional: No
Call by Reference: No ( called with pass by value option)
E_RETURN_CODE - Natural number
Data type: INT4Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GRPC_API_REPORT_START
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_RATING_FILTER_VALUE - Rating values relevant for the rating filter in reporting
Data type: GRPC_T_RATING_VALUEOptional: Yes
Call by Reference: Yes
IT_RATING_FILTER_CATEGORY - Case categories relevant for the rating filter
Data type: GRPC_T_RATING_CATEGORYOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for GRPC_API_REPORT_START 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: | ||||
| lt_et_message | TYPE STANDARD TABLE OF BAPIRETTAB, " | |||
| lv_e_report_id | TYPE GRPC_API_OBJECT_ID, " | |||
| lv_i_sel_screen | TYPE GRPC_REP_SEL_SCREEN, " | |||
| lv_i_test_step | TYPE GRPC_S_REP_TEST_STEP, " | |||
| lv_is_filter | TYPE GRPC_S_REP_SELECTION, " | |||
| lv_e_return_code | TYPE INT4, " | |||
| lt_it_rating_filter_value | TYPE STANDARD TABLE OF GRPC_T_RATING_VALUE, " | |||
| lv_is_filter_cha | TYPE GRPC_S_REP_SELECTION_CHA, " | |||
| lt_it_rating_filter_category | TYPE STANDARD TABLE OF GRPC_T_RATING_CATEGORY, " | |||
| lv_is_filter_alog | TYPE GRPC_S_REP_SELECTION_ALOG, " | |||
| lv_is_filter_ac | TYPE GRPC_S_REP_SELECTION_AC, " | |||
| lv_is_details | TYPE GRPC_S_REP_DETAILS, " | |||
| lv_i_wait | TYPE FLAG, " | |||
| lv_i_session_id | TYPE GRPC_API_SESSION_ID, " | |||
| lv_i_oa_evaluation | TYPE VAL_SINGLE. " |
|   CALL FUNCTION 'GRPC_API_REPORT_START' "Start report |
| EXPORTING | ||
| I_SEL_SCREEN | = lv_i_sel_screen | |
| I_TEST_STEP | = lv_i_test_step | |
| IS_FILTER | = lv_is_filter | |
| IS_FILTER_CHA | = lv_is_filter_cha | |
| IS_FILTER_ALOG | = lv_is_filter_alog | |
| IS_FILTER_AC | = lv_is_filter_ac | |
| IS_DETAILS | = lv_is_details | |
| I_WAIT | = lv_i_wait | |
| I_SESSION_ID | = lv_i_session_id | |
| I_OA_EVALUATION | = lv_i_oa_evaluation | |
| IMPORTING | ||
| E_REPORT_ID | = lv_e_report_id | |
| E_RETURN_CODE | = lv_e_return_code | |
| TABLES | ||
| ET_MESSAGE | = lt_et_message | |
| IT_RATING_FILTER_VALUE | = lt_it_rating_filter_value | |
| IT_RATING_FILTER_CATEGORY | = lt_it_rating_filter_category | |
| . " GRPC_API_REPORT_START | ||
ABAP code using 7.40 inline data declarations to call FM GRPC_API_REPORT_START
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