SAP Function Modules

AIPL_STORE_SETTINGS SAP Function module







AIPL_STORE_SETTINGS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name AIPL_STORE_SETTINGS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: AIPL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM AIPL_STORE_SETTINGS - AIPL STORE SETTINGS





CALL FUNCTION 'AIPL_STORE_SETTINGS' "
* EXPORTING
*   i_afabe =                   " rbada-afabe1
*   i_berdatum = SY-DATLO       " anep-bzdat
*   i_pa_versn =                " ccss-versn
*   i_pa_xbudg =                " rbada-xbudgbas
*   i_pa_xinvp =                " rbada-xinvp
*   i_pa_prnam =                " impr-prnam
*   i_pa_posi1 =                " impr-posid
*   i_pa_xmanf =                " rbada-xmanf
*   i_pa_imagn =                " imavz-gjahr
*   i_pa_xproj =                " rbada-xproj
*   i_pa_posid =                " prps-posid
*   i_pa_xauft =                " rbada-xauft
*   i_pa_xgjbg =                " rbada-xgjbg
*   i_pa_xsetl =                " rbada-xsetl
*   i_pa_stsel =                " raip1-statsel
*   i_tab_invpgsel =            " im_invpgsel_tab_type
* TABLES
*   i_so_gnjhr =                "
*   i_so_imape =                "
*   i_so_pspnr =                "
*   i_so_eaufn =                "
*   i_ania_where_tab =          " rsdswhere
*   i_rg_afabe =                "
    .  "  AIPL_STORE_SETTINGS

ABAP code example for Function Module AIPL_STORE_SETTINGS





The ABAP code below is a full code listing to execute function module AIPL_STORE_SETTINGS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_i_so_gnjhr  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_so_gnjhr  LIKE LINE OF it_i_so_gnjhr ,
it_i_so_imape  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_so_imape  LIKE LINE OF it_i_so_imape ,
it_i_so_pspnr  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_so_pspnr  LIKE LINE OF it_i_so_pspnr ,
it_i_so_eaufn  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_so_eaufn  LIKE LINE OF it_i_so_eaufn ,
it_i_ania_where_tab  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_i_ania_where_tab  LIKE LINE OF it_i_ania_where_tab ,
it_i_rg_afabe  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_rg_afabe  LIKE LINE OF it_i_rg_afabe .


DATA(ld_i_afabe) = some text here

SELECT single BZDAT
FROM ANEP
INTO @DATA(ld_i_berdatum).


DATA(ld_i_pa_versn) = some text here

DATA(ld_i_pa_xbudg) = some text here

DATA(ld_i_pa_xinvp) = some text here

SELECT single PRNAM
FROM IMPR
INTO @DATA(ld_i_pa_prnam).


SELECT single POSID
FROM IMPR
INTO @DATA(ld_i_pa_posi1).


DATA(ld_i_pa_xmanf) = some text here

SELECT single GJAHR
FROM IMAVZ
INTO @DATA(ld_i_pa_imagn).


DATA(ld_i_pa_xproj) = some text here

SELECT single POSID
FROM PRPS
INTO @DATA(ld_i_pa_posid).


DATA(ld_i_pa_xauft) = some text here

DATA(ld_i_pa_xgjbg) = some text here

DATA(ld_i_pa_xsetl) = some text here

DATA(ld_i_pa_stsel) = some text here
DATA(ld_i_tab_invpgsel) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_so_gnjhr to it_i_so_gnjhr.

"populate fields of struture and append to itab
append wa_i_so_imape to it_i_so_imape.

"populate fields of struture and append to itab
append wa_i_so_pspnr to it_i_so_pspnr.

"populate fields of struture and append to itab
append wa_i_so_eaufn to it_i_so_eaufn.

"populate fields of struture and append to itab
append wa_i_ania_where_tab to it_i_ania_where_tab.

"populate fields of struture and append to itab
append wa_i_rg_afabe to it_i_rg_afabe. . CALL FUNCTION 'AIPL_STORE_SETTINGS' * EXPORTING * i_afabe = ld_i_afabe * i_berdatum = ld_i_berdatum * i_pa_versn = ld_i_pa_versn * i_pa_xbudg = ld_i_pa_xbudg * i_pa_xinvp = ld_i_pa_xinvp * i_pa_prnam = ld_i_pa_prnam * i_pa_posi1 = ld_i_pa_posi1 * i_pa_xmanf = ld_i_pa_xmanf * i_pa_imagn = ld_i_pa_imagn * i_pa_xproj = ld_i_pa_xproj * i_pa_posid = ld_i_pa_posid * i_pa_xauft = ld_i_pa_xauft * i_pa_xgjbg = ld_i_pa_xgjbg * i_pa_xsetl = ld_i_pa_xsetl * i_pa_stsel = ld_i_pa_stsel * i_tab_invpgsel = ld_i_tab_invpgsel * TABLES * i_so_gnjhr = it_i_so_gnjhr * i_so_imape = it_i_so_imape * i_so_pspnr = it_i_so_pspnr * i_so_eaufn = it_i_so_eaufn * i_ania_where_tab = it_i_ania_where_tab * i_rg_afabe = it_i_rg_afabe . " AIPL_STORE_SETTINGS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_afabe  TYPE RBADA-AFABE1 ,
it_i_so_gnjhr  TYPE STANDARD TABLE OF STRING ,
wa_i_so_gnjhr  LIKE LINE OF it_i_so_gnjhr,
ld_i_berdatum  TYPE ANEP-BZDAT ,
it_i_so_imape  TYPE STANDARD TABLE OF STRING ,
wa_i_so_imape  LIKE LINE OF it_i_so_imape,
ld_i_pa_versn  TYPE CCSS-VERSN ,
it_i_so_pspnr  TYPE STANDARD TABLE OF STRING ,
wa_i_so_pspnr  LIKE LINE OF it_i_so_pspnr,
ld_i_pa_xbudg  TYPE RBADA-XBUDGBAS ,
it_i_so_eaufn  TYPE STANDARD TABLE OF STRING ,
wa_i_so_eaufn  LIKE LINE OF it_i_so_eaufn,
ld_i_pa_xinvp  TYPE RBADA-XINVP ,
it_i_ania_where_tab  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_i_ania_where_tab  LIKE LINE OF it_i_ania_where_tab,
ld_i_pa_prnam  TYPE IMPR-PRNAM ,
it_i_rg_afabe  TYPE STANDARD TABLE OF STRING ,
wa_i_rg_afabe  LIKE LINE OF it_i_rg_afabe,
ld_i_pa_posi1  TYPE IMPR-POSID ,
ld_i_pa_xmanf  TYPE RBADA-XMANF ,
ld_i_pa_imagn  TYPE IMAVZ-GJAHR ,
ld_i_pa_xproj  TYPE RBADA-XPROJ ,
ld_i_pa_posid  TYPE PRPS-POSID ,
ld_i_pa_xauft  TYPE RBADA-XAUFT ,
ld_i_pa_xgjbg  TYPE RBADA-XGJBG ,
ld_i_pa_xsetl  TYPE RBADA-XSETL ,
ld_i_pa_stsel  TYPE RAIP1-STATSEL ,
ld_i_tab_invpgsel  TYPE IM_INVPGSEL_TAB_TYPE .


ld_i_afabe = some text here

"populate fields of struture and append to itab
append wa_i_so_gnjhr to it_i_so_gnjhr.

SELECT single BZDAT
FROM ANEP
INTO ld_i_berdatum.


"populate fields of struture and append to itab
append wa_i_so_imape to it_i_so_imape.

ld_i_pa_versn = some text here

"populate fields of struture and append to itab
append wa_i_so_pspnr to it_i_so_pspnr.

ld_i_pa_xbudg = some text here

"populate fields of struture and append to itab
append wa_i_so_eaufn to it_i_so_eaufn.

ld_i_pa_xinvp = some text here

"populate fields of struture and append to itab
append wa_i_ania_where_tab to it_i_ania_where_tab.

SELECT single PRNAM
FROM IMPR
INTO ld_i_pa_prnam.


"populate fields of struture and append to itab
append wa_i_rg_afabe to it_i_rg_afabe.

SELECT single POSID
FROM IMPR
INTO ld_i_pa_posi1.


ld_i_pa_xmanf = some text here

SELECT single GJAHR
FROM IMAVZ
INTO ld_i_pa_imagn.


ld_i_pa_xproj = some text here

SELECT single POSID
FROM PRPS
INTO ld_i_pa_posid.


ld_i_pa_xauft = some text here

ld_i_pa_xgjbg = some text here

ld_i_pa_xsetl = some text here

ld_i_pa_stsel = some text here
ld_i_tab_invpgsel = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name AIPL_STORE_SETTINGS or its description.