SAP BAPI_INVPROGRAM_SAVE_VALUES Function Module for Save Summarized Values in Summarization Database
BAPI_INVPROGRAM_SAVE_VALUES is a standard bapi invprogram save values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save Summarized Values in Summarization Database 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 invprogram save values FM, simply by entering the name BAPI_INVPROGRAM_SAVE_VALUES into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1057
Program Name: SAPL1057
Main Program:
Appliation area: A
Release date: 03-Apr-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INVPROGRAM_SAVE_VALUES 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_INVPROGRAM_SAVE_VALUES'"Save Summarized Values in Summarization Database.
EXPORTING
CAPINVPROGRAM = "Name of Investment Program
APPROVALYEAR = "Approval Year of Investment Program
COMPRESSIONVERSION = "Summarization Version
* FROMOWNLOGSYSTEM = 'X' "Values from Own System
IMPORTING
RETURN = "Information about Errors that Occurred
TABLES
VALUES = "Summarized Values
* RETURNMESSAGES = "Messages (Error Messages, Warnings)
IMPORTING Parameters details for BAPI_INVPROGRAM_SAVE_VALUES
CAPINVPROGRAM - Name of Investment Program
Data type: BAPI1057ID-INV_PROGOptional: No
Call by Reference: No ( called with pass by value option)
APPROVALYEAR - Approval Year of Investment Program
Data type: BAPI1057ID-APPR_YEAROptional: No
Call by Reference: No ( called with pass by value option)
COMPRESSIONVERSION - Summarization Version
Data type: BAPI1057CD-COMPR_VRSNOptional: No
Call by Reference: No ( called with pass by value option)
FROMOWNLOGSYSTEM - Values from Own System
Data type: BAPI1057C0-OWN_LOGSYSDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_INVPROGRAM_SAVE_VALUES
RETURN - Information about Errors that Occurred
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INVPROGRAM_SAVE_VALUES
VALUES - Summarized Values
Data type: BAPI1057CDOptional: No
Call by Reference: No ( called with pass by value option)
RETURNMESSAGES - Messages (Error Messages, Warnings)
Data type: BAPIRETURN1Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_INVPROGRAM_SAVE_VALUES 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_return | TYPE BAPIRETURN1, " | |||
| lt_values | TYPE STANDARD TABLE OF BAPI1057CD, " | |||
| lv_capinvprogram | TYPE BAPI1057ID-INV_PROG, " | |||
| lv_approvalyear | TYPE BAPI1057ID-APPR_YEAR, " | |||
| lt_returnmessages | TYPE STANDARD TABLE OF BAPIRETURN1, " | |||
| lv_compressionversion | TYPE BAPI1057CD-COMPR_VRSN, " | |||
| lv_fromownlogsystem | TYPE BAPI1057C0-OWN_LOGSYS. " 'X' |
|   CALL FUNCTION 'BAPI_INVPROGRAM_SAVE_VALUES' "Save Summarized Values in Summarization Database |
| EXPORTING | ||
| CAPINVPROGRAM | = lv_capinvprogram | |
| APPROVALYEAR | = lv_approvalyear | |
| COMPRESSIONVERSION | = lv_compressionversion | |
| FROMOWNLOGSYSTEM | = lv_fromownlogsystem | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| VALUES | = lt_values | |
| RETURNMESSAGES | = lt_returnmessages | |
| . " BAPI_INVPROGRAM_SAVE_VALUES | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INVPROGRAM_SAVE_VALUES
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 INV_PROG FROM BAPI1057ID INTO @DATA(ld_capinvprogram). | ||||
| "SELECT single APPR_YEAR FROM BAPI1057ID INTO @DATA(ld_approvalyear). | ||||
| "SELECT single COMPR_VRSN FROM BAPI1057CD INTO @DATA(ld_compressionversion). | ||||
| "SELECT single OWN_LOGSYS FROM BAPI1057C0 INTO @DATA(ld_fromownlogsystem). | ||||
| DATA(ld_fromownlogsystem) | = 'X'. | |||
Search for further information about these or an SAP related objects