SAP AIPA_F4_PLAN_VERSION Function Module for









AIPA_F4_PLAN_VERSION is a standard aipa f4 plan version 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 f4 plan version FM, simply by entering the name AIPA_F4_PLAN_VERSION into the relevant SAP transaction such as SE37 or SE38.

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



Function AIPA_F4_PLAN_VERSION 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_F4_PLAN_VERSION'"
EXPORTING
I_PROGRAM = "
I_DYNNR = "
* I_FN_GJAHR_PROPOSAL = "
* I_FN_PRNAM_PROPOSAL = "
* I_FN_VERSN = 'RAIP_DYNP-VERSN' "
* I_TAKEOVER_ALLOWED = 'X' "

IMPORTING
E_VERSN = "
.



IMPORTING Parameters details for AIPA_F4_PLAN_VERSION

I_PROGRAM -

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

I_DYNNR -

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

I_FN_GJAHR_PROPOSAL -

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

I_FN_PRNAM_PROPOSAL -

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

I_FN_VERSN -

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

I_TAKEOVER_ALLOWED -

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

EXPORTING Parameters details for AIPA_F4_PLAN_VERSION

E_VERSN -

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

Copy and paste ABAP code example for AIPA_F4_PLAN_VERSION 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_versn  TYPE RAIP3-VERSN, "   
lv_i_program  TYPE D020S-PROG, "   
lv_i_dynnr  TYPE D020S-DNUM, "   
lv_i_fn_gjahr_proposal  TYPE DYNPREAD-FIELDNAME, "   
lv_i_fn_prnam_proposal  TYPE DYNPREAD-FIELDNAME, "   
lv_i_fn_versn  TYPE DYNPREAD-FIELDNAME, "   'RAIP_DYNP-VERSN'
lv_i_takeover_allowed  TYPE C. "   'X'

  CALL FUNCTION 'AIPA_F4_PLAN_VERSION'  "
    EXPORTING
         I_PROGRAM = lv_i_program
         I_DYNNR = lv_i_dynnr
         I_FN_GJAHR_PROPOSAL = lv_i_fn_gjahr_proposal
         I_FN_PRNAM_PROPOSAL = lv_i_fn_prnam_proposal
         I_FN_VERSN = lv_i_fn_versn
         I_TAKEOVER_ALLOWED = lv_i_takeover_allowed
    IMPORTING
         E_VERSN = lv_e_versn
. " AIPA_F4_PLAN_VERSION




ABAP code using 7.40 inline data declarations to call FM AIPA_F4_PLAN_VERSION

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 VERSN FROM RAIP3 INTO @DATA(ld_e_versn).
 
"SELECT single PROG FROM D020S INTO @DATA(ld_i_program).
 
"SELECT single DNUM FROM D020S INTO @DATA(ld_i_dynnr).
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_fn_gjahr_proposal).
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_fn_prnam_proposal).
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_i_fn_versn).
DATA(ld_i_fn_versn) = 'RAIP_DYNP-VERSN'.
 
DATA(ld_i_takeover_allowed) = 'X'.
 


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!