SAP BAPI_INVPROGRAM_SELRE_VALUES Function Module for Select Values, Summarize Them and Replicate in Summarization DB
BAPI_INVPROGRAM_SELRE_VALUES is a standard bapi invprogram selre 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 Select Values, Summarize Them and Replicate in Summarization DB 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 selre values FM, simply by entering the name BAPI_INVPROGRAM_SELRE_VALUES into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1057
Program Name: SAPL1057
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INVPROGRAM_SELRE_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_SELRE_VALUES'"Select Values, Summarize Them and Replicate in Summarization DB.
EXPORTING
CAPINVPROGRAM = "Name of Investment Program
APPROVALYEAR = "Approval Year of the Investment Program
* FROMPOSITION = ' ' "
COMPRESSIONVERSION = "Summarization Version
* LOGSYSTEMCALLING = ' ' "Requesting Logical System
VALUESELECTION = "
* PARTNERROLE = ' ' "Partner Function for App. Request Partner
IMPORTING
RETURN = "Information about Errors that Occurred
TABLES
* CHARACTERISTICSTOIGNORE = "Characteristics to Ignore
* SCALESTOIGNORE = "Scales to Ignore
* ERRORMESSAGES = "Error Messages
IMPORTING Parameters details for BAPI_INVPROGRAM_SELRE_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 the Investment Program
Data type: BAPI1057ID-APPR_YEAROptional: No
Call by Reference: No ( called with pass by value option)
FROMPOSITION -
Data type: BAPI1057ID-FROM_POSDefault: SPACE
Optional: Yes
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)
LOGSYSTEMCALLING - Requesting Logical System
Data type: BAPI1057CD-LOGSYSTEMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VALUESELECTION -
Data type: BAPI1057CAOptional: No
Call by Reference: No ( called with pass by value option)
PARTNERROLE - Partner Function for App. Request Partner
Data type: BAPI1057C0-PARTN_ROLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_INVPROGRAM_SELRE_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_SELRE_VALUES
CHARACTERISTICSTOIGNORE - Characteristics to Ignore
Data type: BAPI1057CCOptional: Yes
Call by Reference: No ( called with pass by value option)
SCALESTOIGNORE - Scales to Ignore
Data type: BAPI1057CSOptional: Yes
Call by Reference: No ( called with pass by value option)
ERRORMESSAGES - Error Messages
Data type: BAPIRETURN1Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_INVPROGRAM_SELRE_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, " | |||
| lv_capinvprogram | TYPE BAPI1057ID-INV_PROG, " | |||
| lt_characteristicstoignore | TYPE STANDARD TABLE OF BAPI1057CC, " | |||
| lv_approvalyear | TYPE BAPI1057ID-APPR_YEAR, " | |||
| lt_scalestoignore | TYPE STANDARD TABLE OF BAPI1057CS, " | |||
| lv_fromposition | TYPE BAPI1057ID-FROM_POS, " SPACE | |||
| lt_errormessages | TYPE STANDARD TABLE OF BAPIRETURN1, " | |||
| lv_compressionversion | TYPE BAPI1057CD-COMPR_VRSN, " | |||
| lv_logsystemcalling | TYPE BAPI1057CD-LOGSYSTEM, " SPACE | |||
| lv_valueselection | TYPE BAPI1057CA, " | |||
| lv_partnerrole | TYPE BAPI1057C0-PARTN_ROLE. " SPACE |
|   CALL FUNCTION 'BAPI_INVPROGRAM_SELRE_VALUES' "Select Values, Summarize Them and Replicate in Summarization DB |
| EXPORTING | ||
| CAPINVPROGRAM | = lv_capinvprogram | |
| APPROVALYEAR | = lv_approvalyear | |
| FROMPOSITION | = lv_fromposition | |
| COMPRESSIONVERSION | = lv_compressionversion | |
| LOGSYSTEMCALLING | = lv_logsystemcalling | |
| VALUESELECTION | = lv_valueselection | |
| PARTNERROLE | = lv_partnerrole | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| CHARACTERISTICSTOIGNORE | = lt_characteristicstoignore | |
| SCALESTOIGNORE | = lt_scalestoignore | |
| ERRORMESSAGES | = lt_errormessages | |
| . " BAPI_INVPROGRAM_SELRE_VALUES | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INVPROGRAM_SELRE_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 FROM_POS FROM BAPI1057ID INTO @DATA(ld_fromposition). | ||||
| DATA(ld_fromposition) | = ' '. | |||
| "SELECT single COMPR_VRSN FROM BAPI1057CD INTO @DATA(ld_compressionversion). | ||||
| "SELECT single LOGSYSTEM FROM BAPI1057CD INTO @DATA(ld_logsystemcalling). | ||||
| DATA(ld_logsystemcalling) | = ' '. | |||
| "SELECT single PARTN_ROLE FROM BAPI1057C0 INTO @DATA(ld_partnerrole). | ||||
| DATA(ld_partnerrole) | = ' '. | |||
Search for further information about these or an SAP related objects