SAP AIP_ESA2_READ_VALUES_PROG_POS Function Module for
AIP_ESA2_READ_VALUES_PROG_POS is a standard aip esa2 read values prog pos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 aip esa2 read values prog pos FM, simply by entering the name AIP_ESA2_READ_VALUES_PROG_POS into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIP_ESA2
Program Name: SAPLAIP_ESA2
Main Program: SAPLAIP_ESA2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function AIP_ESA2_READ_VALUES_PROG_POS 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 'AIP_ESA2_READ_VALUES_PROG_POS'".
EXPORTING
ID_INV_PROG = "
ID_APP_YEAR = "
ID_POSITION = "
* ID_VERSI = '000' "
ID_CURR_OBJ = "
* ID_FLG_POS = 'X' "
* ID_FLG_AR = 'X' "
TABLES
* ET_POS_VAL = "
* ET_AR_VAL = "
* ET_RETURN = "
IMPORTING Parameters details for AIP_ESA2_READ_VALUES_PROG_POS
ID_INV_PROG -
Data type: IMTP-PRNAMOptional: No
Call by Reference: No ( called with pass by value option)
ID_APP_YEAR -
Data type: IMTP-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
ID_POSITION -
Data type: IMPR-POSIDOptional: No
Call by Reference: No ( called with pass by value option)
ID_VERSI -
Data type: IMAVZ-VERSIDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_CURR_OBJ -
Data type: TKA01-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
ID_FLG_POS -
Data type: SY-DATARDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_FLG_AR -
Data type: SY-DATARDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIP_ESA2_READ_VALUES_PROG_POS
ET_POS_VAL -
Data type: AIP_ESA2_POS_VALOptional: Yes
Call by Reference: Yes
ET_AR_VAL -
Data type: AIP_ESA2_AR_VALOptional: Yes
Call by Reference: Yes
ET_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for AIP_ESA2_READ_VALUES_PROG_POS 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_pos_val | TYPE STANDARD TABLE OF AIP_ESA2_POS_VAL, " | |||
| lv_id_inv_prog | TYPE IMTP-PRNAM, " | |||
| lt_et_ar_val | TYPE STANDARD TABLE OF AIP_ESA2_AR_VAL, " | |||
| lv_id_app_year | TYPE IMTP-GJAHR, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_id_position | TYPE IMPR-POSID, " | |||
| lv_id_versi | TYPE IMAVZ-VERSI, " '000' | |||
| lv_id_curr_obj | TYPE TKA01-WAERS, " | |||
| lv_id_flg_pos | TYPE SY-DATAR, " 'X' | |||
| lv_id_flg_ar | TYPE SY-DATAR. " 'X' |
|   CALL FUNCTION 'AIP_ESA2_READ_VALUES_PROG_POS' " |
| EXPORTING | ||
| ID_INV_PROG | = lv_id_inv_prog | |
| ID_APP_YEAR | = lv_id_app_year | |
| ID_POSITION | = lv_id_position | |
| ID_VERSI | = lv_id_versi | |
| ID_CURR_OBJ | = lv_id_curr_obj | |
| ID_FLG_POS | = lv_id_flg_pos | |
| ID_FLG_AR | = lv_id_flg_ar | |
| TABLES | ||
| ET_POS_VAL | = lt_et_pos_val | |
| ET_AR_VAL | = lt_et_ar_val | |
| ET_RETURN | = lt_et_return | |
| . " AIP_ESA2_READ_VALUES_PROG_POS | ||
ABAP code using 7.40 inline data declarations to call FM AIP_ESA2_READ_VALUES_PROG_POS
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 PRNAM FROM IMTP INTO @DATA(ld_id_inv_prog). | ||||
| "SELECT single GJAHR FROM IMTP INTO @DATA(ld_id_app_year). | ||||
| "SELECT single POSID FROM IMPR INTO @DATA(ld_id_position). | ||||
| "SELECT single VERSI FROM IMAVZ INTO @DATA(ld_id_versi). | ||||
| DATA(ld_id_versi) | = '000'. | |||
| "SELECT single WAERS FROM TKA01 INTO @DATA(ld_id_curr_obj). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_id_flg_pos). | ||||
| DATA(ld_id_flg_pos) | = 'X'. | |||
| "SELECT single DATAR FROM SY INTO @DATA(ld_id_flg_ar). | ||||
| DATA(ld_id_flg_ar) | = 'X'. | |||
Search for further information about these or an SAP related objects