SAP Function Modules

AIAB_MASS_APPR_REQUEST SAP Function module







AIAB_MASS_APPR_REQUEST 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 AIAB_MASS_APPR_REQUEST into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM AIAB_MASS_APPR_REQUEST - AIAB MASS APPR REQUEST





CALL FUNCTION 'AIAB_MASS_APPR_REQUEST' "
  EXPORTING
    seldata =                   " mass_tabdata
*   testmode =                  "
  IMPORTING
    msg =                       " mass_msgs
* TABLES
*   simakpa_m =                 " imakpa_m
*   simakpi_m =                 " imakpi_m
*   simakpu_m =                 " imakpu_m
*   simakt =                    " imakt
*   simav =                     " imav
*   simavt =                    " imavt
*   simak_m =                   " imak_m
*   simakps_m =                 " imakps_m
*   simakpw_m =                 " imakpw_m
*   simakz =                    " imakz
*   simavz =                    " imavz
*   simaka =                    " imaka
*   simak_ip =                  " imak_ip
*   sraiab_sel =                " raiab_sel
    .  "  AIAB_MASS_APPR_REQUEST

ABAP code example for Function Module AIAB_MASS_APPR_REQUEST





The ABAP code below is a full code listing to execute function module AIAB_MASS_APPR_REQUEST 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:
ld_msg  TYPE MASS_MSGS ,
it_simakpa_m  TYPE STANDARD TABLE OF IMAKPA_M,"TABLES PARAM
wa_simakpa_m  LIKE LINE OF it_simakpa_m ,
it_simakpi_m  TYPE STANDARD TABLE OF IMAKPI_M,"TABLES PARAM
wa_simakpi_m  LIKE LINE OF it_simakpi_m ,
it_simakpu_m  TYPE STANDARD TABLE OF IMAKPU_M,"TABLES PARAM
wa_simakpu_m  LIKE LINE OF it_simakpu_m ,
it_simakt  TYPE STANDARD TABLE OF IMAKT,"TABLES PARAM
wa_simakt  LIKE LINE OF it_simakt ,
it_simav  TYPE STANDARD TABLE OF IMAV,"TABLES PARAM
wa_simav  LIKE LINE OF it_simav ,
it_simavt  TYPE STANDARD TABLE OF IMAVT,"TABLES PARAM
wa_simavt  LIKE LINE OF it_simavt ,
it_simak_m  TYPE STANDARD TABLE OF IMAK_M,"TABLES PARAM
wa_simak_m  LIKE LINE OF it_simak_m ,
it_simakps_m  TYPE STANDARD TABLE OF IMAKPS_M,"TABLES PARAM
wa_simakps_m  LIKE LINE OF it_simakps_m ,
it_simakpw_m  TYPE STANDARD TABLE OF IMAKPW_M,"TABLES PARAM
wa_simakpw_m  LIKE LINE OF it_simakpw_m ,
it_simakz  TYPE STANDARD TABLE OF IMAKZ,"TABLES PARAM
wa_simakz  LIKE LINE OF it_simakz ,
it_simavz  TYPE STANDARD TABLE OF IMAVZ,"TABLES PARAM
wa_simavz  LIKE LINE OF it_simavz ,
it_simaka  TYPE STANDARD TABLE OF IMAKA,"TABLES PARAM
wa_simaka  LIKE LINE OF it_simaka ,
it_simak_ip  TYPE STANDARD TABLE OF IMAK_IP,"TABLES PARAM
wa_simak_ip  LIKE LINE OF it_simak_ip ,
it_sraiab_sel  TYPE STANDARD TABLE OF RAIAB_SEL,"TABLES PARAM
wa_sraiab_sel  LIKE LINE OF it_sraiab_sel .

DATA(ld_seldata) = 'Check type of data required'.
DATA(ld_testmode) = 'some text here'.

"populate fields of struture and append to itab
append wa_simakpa_m to it_simakpa_m.

"populate fields of struture and append to itab
append wa_simakpi_m to it_simakpi_m.

"populate fields of struture and append to itab
append wa_simakpu_m to it_simakpu_m.

"populate fields of struture and append to itab
append wa_simakt to it_simakt.

"populate fields of struture and append to itab
append wa_simav to it_simav.

"populate fields of struture and append to itab
append wa_simavt to it_simavt.

"populate fields of struture and append to itab
append wa_simak_m to it_simak_m.

"populate fields of struture and append to itab
append wa_simakps_m to it_simakps_m.

"populate fields of struture and append to itab
append wa_simakpw_m to it_simakpw_m.

"populate fields of struture and append to itab
append wa_simakz to it_simakz.

"populate fields of struture and append to itab
append wa_simavz to it_simavz.

"populate fields of struture and append to itab
append wa_simaka to it_simaka.

"populate fields of struture and append to itab
append wa_simak_ip to it_simak_ip.

"populate fields of struture and append to itab
append wa_sraiab_sel to it_sraiab_sel. . CALL FUNCTION 'AIAB_MASS_APPR_REQUEST' EXPORTING seldata = ld_seldata * testmode = ld_testmode IMPORTING msg = ld_msg * TABLES * simakpa_m = it_simakpa_m * simakpi_m = it_simakpi_m * simakpu_m = it_simakpu_m * simakt = it_simakt * simav = it_simav * simavt = it_simavt * simak_m = it_simak_m * simakps_m = it_simakps_m * simakpw_m = it_simakpw_m * simakz = it_simakz * simavz = it_simavz * simaka = it_simaka * simak_ip = it_simak_ip * sraiab_sel = it_sraiab_sel . " AIAB_MASS_APPR_REQUEST
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_msg  TYPE MASS_MSGS ,
ld_seldata  TYPE MASS_TABDATA ,
it_simakpa_m  TYPE STANDARD TABLE OF IMAKPA_M ,
wa_simakpa_m  LIKE LINE OF it_simakpa_m,
ld_testmode  TYPE STRING ,
it_simakpi_m  TYPE STANDARD TABLE OF IMAKPI_M ,
wa_simakpi_m  LIKE LINE OF it_simakpi_m,
it_simakpu_m  TYPE STANDARD TABLE OF IMAKPU_M ,
wa_simakpu_m  LIKE LINE OF it_simakpu_m,
it_simakt  TYPE STANDARD TABLE OF IMAKT ,
wa_simakt  LIKE LINE OF it_simakt,
it_simav  TYPE STANDARD TABLE OF IMAV ,
wa_simav  LIKE LINE OF it_simav,
it_simavt  TYPE STANDARD TABLE OF IMAVT ,
wa_simavt  LIKE LINE OF it_simavt,
it_simak_m  TYPE STANDARD TABLE OF IMAK_M ,
wa_simak_m  LIKE LINE OF it_simak_m,
it_simakps_m  TYPE STANDARD TABLE OF IMAKPS_M ,
wa_simakps_m  LIKE LINE OF it_simakps_m,
it_simakpw_m  TYPE STANDARD TABLE OF IMAKPW_M ,
wa_simakpw_m  LIKE LINE OF it_simakpw_m,
it_simakz  TYPE STANDARD TABLE OF IMAKZ ,
wa_simakz  LIKE LINE OF it_simakz,
it_simavz  TYPE STANDARD TABLE OF IMAVZ ,
wa_simavz  LIKE LINE OF it_simavz,
it_simaka  TYPE STANDARD TABLE OF IMAKA ,
wa_simaka  LIKE LINE OF it_simaka,
it_simak_ip  TYPE STANDARD TABLE OF IMAK_IP ,
wa_simak_ip  LIKE LINE OF it_simak_ip,
it_sraiab_sel  TYPE STANDARD TABLE OF RAIAB_SEL ,
wa_sraiab_sel  LIKE LINE OF it_sraiab_sel.

ld_seldata = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_simakpa_m to it_simakpa_m.
ld_testmode = 'some text here'.

"populate fields of struture and append to itab
append wa_simakpi_m to it_simakpi_m.

"populate fields of struture and append to itab
append wa_simakpu_m to it_simakpu_m.

"populate fields of struture and append to itab
append wa_simakt to it_simakt.

"populate fields of struture and append to itab
append wa_simav to it_simav.

"populate fields of struture and append to itab
append wa_simavt to it_simavt.

"populate fields of struture and append to itab
append wa_simak_m to it_simak_m.

"populate fields of struture and append to itab
append wa_simakps_m to it_simakps_m.

"populate fields of struture and append to itab
append wa_simakpw_m to it_simakpw_m.

"populate fields of struture and append to itab
append wa_simakz to it_simakz.

"populate fields of struture and append to itab
append wa_simavz to it_simavz.

"populate fields of struture and append to itab
append wa_simaka to it_simaka.

"populate fields of struture and append to itab
append wa_simak_ip to it_simak_ip.

"populate fields of struture and append to itab
append wa_sraiab_sel to it_sraiab_sel.

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 AIAB_MASS_APPR_REQUEST or its description.