SAP AIPA_RECALC_DIST_VALUES Function Module for









AIPA_RECALC_DIST_VALUES is a standard aipa recalc dist values 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 aipa recalc dist values FM, simply by entering the name AIPA_RECALC_DIST_VALUES into the relevant SAP transaction such as SE37 or SE38.

Function Group: AIPA_FUNC_BP
Program Name: SAPLAIPA_FUNC_BP
Main Program: SAPLAIPA_FUNC_BP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function AIPA_RECALC_DIST_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 'AIPA_RECALC_DIST_VALUES'"
EXPORTING
I_PRNAM = "Investment Program Definition
* I_POSID = "Item ID
I_GJAHR = "Approval Year
* I_UP_TO_LEVEL = '00' "To level
* I_FLG_NO_LEAFS = ' ' "
* I_BUT_CALC = "
* I_FLG_READ_IMPR_FROM_DB = 'X' "Checkbox
* I_FLG_DB_UPDATE = 'X' "
* I_FLG_CALC_LEAFS_ANYWAY = ' ' "

TABLES
* ET_BPGE = "
* ET_BPJA = "
* IT_IMPR = "Investment Program Positions
* IT_BUT_CALC = "List of Program Positions (External Key)

EXCEPTIONS
ABEND_OCCURED = 1
.



IMPORTING Parameters details for AIPA_RECALC_DIST_VALUES

I_PRNAM - Investment Program Definition

Data type: IMTP-PRNAM
Optional: No
Call by Reference: No ( called with pass by value option)

I_POSID - Item ID

Data type: IMPR-POSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR - Approval Year

Data type: IMTP-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

I_UP_TO_LEVEL - To level

Data type: RAIP_DYNP-TLEVEL
Default: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_NO_LEAFS -

Data type: IMPR-XAKTB
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUT_CALC -

Data type: IMPR-POSID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_READ_IMPR_FROM_DB - Checkbox

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DB_UPDATE -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_CALC_LEAFS_ANYWAY -

Data type: XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for AIPA_RECALC_DIST_VALUES

ET_BPGE -

Data type: BPGE
Optional: Yes
Call by Reference: Yes

ET_BPJA -

Data type: BPJA
Optional: Yes
Call by Reference: Yes

IT_IMPR - Investment Program Positions

Data type: IMPR
Optional: Yes
Call by Reference: Yes

IT_BUT_CALC - List of Program Positions (External Key)

Data type: RAIP_POS
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ABEND_OCCURED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AIPA_RECALC_DIST_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:
lt_et_bpge  TYPE STANDARD TABLE OF BPGE, "   
lv_i_prnam  TYPE IMTP-PRNAM, "   
lv_abend_occured  TYPE IMTP, "   
lt_et_bpja  TYPE STANDARD TABLE OF BPJA, "   
lv_i_posid  TYPE IMPR-POSID, "   
lt_it_impr  TYPE STANDARD TABLE OF IMPR, "   
lv_i_gjahr  TYPE IMTP-GJAHR, "   
lt_it_but_calc  TYPE STANDARD TABLE OF RAIP_POS, "   
lv_i_up_to_level  TYPE RAIP_DYNP-TLEVEL, "   '00'
lv_i_flg_no_leafs  TYPE IMPR-XAKTB, "   ' '
lv_i_but_calc  TYPE IMPR-POSID, "   
lv_i_flg_read_impr_from_db  TYPE XFELD, "   'X'
lv_i_flg_db_update  TYPE XFELD, "   'X'
lv_i_flg_calc_leafs_anyway  TYPE XFELD. "   ' '

  CALL FUNCTION 'AIPA_RECALC_DIST_VALUES'  "
    EXPORTING
         I_PRNAM = lv_i_prnam
         I_POSID = lv_i_posid
         I_GJAHR = lv_i_gjahr
         I_UP_TO_LEVEL = lv_i_up_to_level
         I_FLG_NO_LEAFS = lv_i_flg_no_leafs
         I_BUT_CALC = lv_i_but_calc
         I_FLG_READ_IMPR_FROM_DB = lv_i_flg_read_impr_from_db
         I_FLG_DB_UPDATE = lv_i_flg_db_update
         I_FLG_CALC_LEAFS_ANYWAY = lv_i_flg_calc_leafs_anyway
    TABLES
         ET_BPGE = lt_et_bpge
         ET_BPJA = lt_et_bpja
         IT_IMPR = lt_it_impr
         IT_BUT_CALC = lt_it_but_calc
    EXCEPTIONS
        ABEND_OCCURED = 1
. " AIPA_RECALC_DIST_VALUES




ABAP code using 7.40 inline data declarations to call FM AIPA_RECALC_DIST_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 PRNAM FROM IMTP INTO @DATA(ld_i_prnam).
 
 
 
"SELECT single POSID FROM IMPR INTO @DATA(ld_i_posid).
 
 
"SELECT single GJAHR FROM IMTP INTO @DATA(ld_i_gjahr).
 
 
"SELECT single TLEVEL FROM RAIP_DYNP INTO @DATA(ld_i_up_to_level).
DATA(ld_i_up_to_level) = '00'.
 
"SELECT single XAKTB FROM IMPR INTO @DATA(ld_i_flg_no_leafs).
DATA(ld_i_flg_no_leafs) = ' '.
 
"SELECT single POSID FROM IMPR INTO @DATA(ld_i_but_calc).
 
DATA(ld_i_flg_read_impr_from_db) = 'X'.
 
DATA(ld_i_flg_db_update) = 'X'.
 
DATA(ld_i_flg_calc_leafs_anyway) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!