SAP BAPI_REQREPDATA_SAVEDATA Function Module for Called in the Background by a Request (ReportRequestBW)
BAPI_REQREPDATA_SAVEDATA is a standard bapi reqrepdata savedata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Called in the Background by a Request (ReportRequestBW) 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 bapi reqrepdata savedata FM, simply by entering the name BAPI_REQREPDATA_SAVEDATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSCRM_BO_REPORDATA
Program Name: SAPLRSCRM_BO_REPORDATA
Main Program: SAPLRSCRM_BO_REPORDATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_REQREPDATA_SAVEDATA 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 'BAPI_REQREPDATA_SAVEDATA'"Called in the Background by a Request (ReportRequestBW).
EXPORTING
REQUESTID = "Unique ID of a Data Request
DONE = "Displays the Last Package
TABLES
AXIS = "Axis Values
CELL = "Cell Values
* RETURN = "List of Possible Error Messages
IMPORTING Parameters details for BAPI_REQREPDATA_SAVEDATA
REQUESTID - Unique ID of a Data Request
Data type: BAPIREPREQUEST_STATUS-REQUESTIDOptional: No
Call by Reference: No ( called with pass by value option)
DONE - Displays the Last Package
Data type: RSCRMBOOLOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_REQREPDATA_SAVEDATA
AXIS - Axis Values
Data type: BAPIREPPROV_AXISOptional: No
Call by Reference: Yes
CELL - Cell Values
Data type: BAPIREPPROV_CELLOptional: No
Call by Reference: Yes
RETURN - List of Possible Error Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_REQREPDATA_SAVEDATA 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_axis | TYPE STANDARD TABLE OF BAPIREPPROV_AXIS, " | |||
| lv_requestid | TYPE BAPIREPREQUEST_STATUS-REQUESTID, " | |||
| lt_cell | TYPE STANDARD TABLE OF BAPIREPPROV_CELL, " | |||
| lv_done | TYPE RSCRMBOOL, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_REQREPDATA_SAVEDATA' "Called in the Background by a Request (ReportRequestBW) |
| EXPORTING | ||
| REQUESTID | = lv_requestid | |
| DONE | = lv_done | |
| TABLES | ||
| AXIS | = lt_axis | |
| CELL | = lt_cell | |
| RETURN | = lt_return | |
| . " BAPI_REQREPDATA_SAVEDATA | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_REQREPDATA_SAVEDATA
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 REQUESTID FROM BAPIREPREQUEST_STATUS INTO @DATA(ld_requestid). | ||||
Search for further information about these or an SAP related objects