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

Function GRPC_REPORT_CHA_READ 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_REPORT_CHA_READ'"Read the changes for the specified object and timeframe.
EXPORTING
I_REPORT_INPUT1 = "
I_REPORT_INPUT2 = "
IS_FILTER_CHA = "Selection for Reporting Change Analysis
IMPORTING
E_GUID = "GUID in 'CHAR' Format in Uppercase
E_RETURN_CODE = "Natural number
ET_RESULT = "Reporting CHA
ET_MESSAGE = "Table with BAPI Return Information
IMPORTING Parameters details for GRPC_REPORT_CHA_READ
I_REPORT_INPUT1 -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
I_REPORT_INPUT2 -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
IS_FILTER_CHA - Selection for Reporting Change Analysis
Data type: GRPC_S_REP_SELECTION_CHAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRPC_REPORT_CHA_READ
E_GUID - GUID in 'CHAR' Format in Uppercase
Data type: GUID_32Optional: 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)
ET_RESULT - Reporting CHA
Data type: GRPC_T_REP_OUT_CHAOptional: No
Call by Reference: No ( called with pass by value option)
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GRPC_REPORT_CHA_READ 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_e_guid | TYPE GUID_32, " | |||
| lv_i_report_input1 | TYPE XSTRING, " | |||
| lv_e_return_code | TYPE INT4, " | |||
| lv_i_report_input2 | TYPE XSTRING, " | |||
| lv_et_result | TYPE GRPC_T_REP_OUT_CHA, " | |||
| lv_is_filter_cha | TYPE GRPC_S_REP_SELECTION_CHA, " | |||
| lv_et_message | TYPE BAPIRETTAB. " |
|   CALL FUNCTION 'GRPC_REPORT_CHA_READ' "Read the changes for the specified object and timeframe |
| EXPORTING | ||
| I_REPORT_INPUT1 | = lv_i_report_input1 | |
| I_REPORT_INPUT2 | = lv_i_report_input2 | |
| IS_FILTER_CHA | = lv_is_filter_cha | |
| IMPORTING | ||
| E_GUID | = lv_e_guid | |
| E_RETURN_CODE | = lv_e_return_code | |
| ET_RESULT | = lv_et_result | |
| ET_MESSAGE | = lv_et_message | |
| . " GRPC_REPORT_CHA_READ | ||
ABAP code using 7.40 inline data declarations to call FM GRPC_REPORT_CHA_READ
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