SAP AIPP_PROGPOS_PAI Function Module for
AIPP_PROGPOS_PAI is a standard aipp progpos pai 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 aipp progpos pai FM, simply by entering the name AIPP_PROGPOS_PAI into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIPP
Program Name: SAPLAIPP
Main Program: SAPLAIPP
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AIPP_PROGPOS_PAI 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 'AIPP_PROGPOS_PAI'".
EXPORTING
I_AKTYP = "
* I_POSID_WBSEL = "
* I_OKCODE = ' ' "
I_KOKRS = "
* I_PRART = "
I_OBJNR = "
I_PRNAM = "
I_POSID = "
I_GJAHR = "
* I_AUART = "
IMPORTING
E_SUBRC = "
E_FLG_CHANGE = "
IMPORTING Parameters details for AIPP_PROGPOS_PAI
I_AKTYP -
Data type: T020-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_POSID_WBSEL -
Data type: PRPS-POSIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OKCODE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS -
Data type: TKA01-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_PRART -
Data type: IMAK-PRARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJNR -
Data type: IMAK-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
I_PRNAM -
Data type: RAIP1-PRNAMOptional: No
Call by Reference: No ( called with pass by value option)
I_POSID -
Data type: RAIP1-POSIDOptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: RAIP1-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_AUART -
Data type: COAS-AUARTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AIPP_PROGPOS_PAI
E_SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_CHANGE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AIPP_PROGPOS_PAI 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_subrc | TYPE SY-SUBRC, " | |||
| lv_i_aktyp | TYPE T020-AKTYP, " | |||
| lv_i_posid_wbsel | TYPE PRPS-POSID, " | |||
| lv_i_okcode | TYPE C, " SPACE | |||
| lv_e_flg_change | TYPE C, " | |||
| lv_i_kokrs | TYPE TKA01-KOKRS, " | |||
| lv_i_prart | TYPE IMAK-PRART, " | |||
| lv_i_objnr | TYPE IMAK-OBJNR, " | |||
| lv_i_prnam | TYPE RAIP1-PRNAM, " | |||
| lv_i_posid | TYPE RAIP1-POSID, " | |||
| lv_i_gjahr | TYPE RAIP1-GJAHR, " | |||
| lv_i_auart | TYPE COAS-AUART. " |
|   CALL FUNCTION 'AIPP_PROGPOS_PAI' " |
| EXPORTING | ||
| I_AKTYP | = lv_i_aktyp | |
| I_POSID_WBSEL | = lv_i_posid_wbsel | |
| I_OKCODE | = lv_i_okcode | |
| I_KOKRS | = lv_i_kokrs | |
| I_PRART | = lv_i_prart | |
| I_OBJNR | = lv_i_objnr | |
| I_PRNAM | = lv_i_prnam | |
| I_POSID | = lv_i_posid | |
| I_GJAHR | = lv_i_gjahr | |
| I_AUART | = lv_i_auart | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| E_FLG_CHANGE | = lv_e_flg_change | |
| . " AIPP_PROGPOS_PAI | ||
ABAP code using 7.40 inline data declarations to call FM AIPP_PROGPOS_PAI
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 SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| "SELECT single AKTYP FROM T020 INTO @DATA(ld_i_aktyp). | ||||
| "SELECT single POSID FROM PRPS INTO @DATA(ld_i_posid_wbsel). | ||||
| DATA(ld_i_okcode) | = ' '. | |||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs). | ||||
| "SELECT single PRART FROM IMAK INTO @DATA(ld_i_prart). | ||||
| "SELECT single OBJNR FROM IMAK INTO @DATA(ld_i_objnr). | ||||
| "SELECT single PRNAM FROM RAIP1 INTO @DATA(ld_i_prnam). | ||||
| "SELECT single POSID FROM RAIP1 INTO @DATA(ld_i_posid). | ||||
| "SELECT single GJAHR FROM RAIP1 INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single AUART FROM COAS INTO @DATA(ld_i_auart). | ||||
Search for further information about these or an SAP related objects