SAP Function Modules

AIAA_READ_REQUEST_SET SAP Function module







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

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


Pattern for FM AIAA_READ_REQUEST_SET - AIAA READ REQUEST SET





CALL FUNCTION 'AIAA_READ_REQUEST_SET' "
* EXPORTING
*   it_field_list =             " imis_type_t_line
*   it_selection_table =        " imis_type_t_cedst
*   ir_charac_req =             " imis_type_r_charac_req
*   ir_status_req =             " imis_type_r_status
*   i_req_statsl =              " rirasp-req_statsl
*   i_restart_flg =             " imis_type_flg
*   i_sel_req_tab_flg =         " imis_type_flg
*   i_altern_incl_flg =         " imis_type_flg
*   i_imakzs_req_flg =          " imis_type_flg
*   i_auth_check_flg = 'X'      " imis_type_flg
*   i_auth_mes_stor_flg =       " imis_type_flg
*   i_auth_activity = '34'      " autha-im_actvt
*   i_package_size = 400        " i
*   i_debug_flg =               " imis_type_flg
*   i_message_type = 'I'        " sy-msgty
  IMPORTING
    e_auth_subrc =              " sy-subrc
    e_data_to_follow =          " imis_type_flg
* TABLES
*   et_imak =                   " imak
*   et_imaka =                  " imaka
*   et_imakpa =                 " imakpa
*   et_imakpi =                 " imakpi
*   et_imakps =                 " imakps
*   et_imakpu =                 " imakpu
*   et_imakpw =                 " imakpw
*   et_imav =                   " imav
*   et_imavz =                  " imavz
*   et_ihpa =                   " ihpa
*   et_request_character =      " imis_type_t_req_character
*   et_request_status =         " imis_type_t_req_status
*   iet_request_set =           " imis_type_t_req_posnr
*   et_req_varnt =              " imis_type_t_req_varnt
*   et_imakzs =                 " imakzs
  EXCEPTIONS
    UNKNOWN_TABLE = 1           "
    AUTH_CHECK_FLG_NOT_ACTIVE = 2  "
    NO_SELECTIONS_FOR_POSID = 3  "
    AUTH_UNKNOWN_ACTIVITY = 4   "
    .  "  AIAA_READ_REQUEST_SET

ABAP code example for Function Module AIAA_READ_REQUEST_SET





The ABAP code below is a full code listing to execute function module AIAA_READ_REQUEST_SET 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_e_auth_subrc  TYPE SY-SUBRC ,
ld_e_data_to_follow  TYPE IMIS_TYPE_FLG ,
it_et_imak  TYPE STANDARD TABLE OF IMAK,"TABLES PARAM
wa_et_imak  LIKE LINE OF it_et_imak ,
it_et_imaka  TYPE STANDARD TABLE OF IMAKA,"TABLES PARAM
wa_et_imaka  LIKE LINE OF it_et_imaka ,
it_et_imakpa  TYPE STANDARD TABLE OF IMAKPA,"TABLES PARAM
wa_et_imakpa  LIKE LINE OF it_et_imakpa ,
it_et_imakpi  TYPE STANDARD TABLE OF IMAKPI,"TABLES PARAM
wa_et_imakpi  LIKE LINE OF it_et_imakpi ,
it_et_imakps  TYPE STANDARD TABLE OF IMAKPS,"TABLES PARAM
wa_et_imakps  LIKE LINE OF it_et_imakps ,
it_et_imakpu  TYPE STANDARD TABLE OF IMAKPU,"TABLES PARAM
wa_et_imakpu  LIKE LINE OF it_et_imakpu ,
it_et_imakpw  TYPE STANDARD TABLE OF IMAKPW,"TABLES PARAM
wa_et_imakpw  LIKE LINE OF it_et_imakpw ,
it_et_imav  TYPE STANDARD TABLE OF IMAV,"TABLES PARAM
wa_et_imav  LIKE LINE OF it_et_imav ,
it_et_imavz  TYPE STANDARD TABLE OF IMAVZ,"TABLES PARAM
wa_et_imavz  LIKE LINE OF it_et_imavz ,
it_et_ihpa  TYPE STANDARD TABLE OF IHPA,"TABLES PARAM
wa_et_ihpa  LIKE LINE OF it_et_ihpa ,
it_et_request_character  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_CHARACTER,"TABLES PARAM
wa_et_request_character  LIKE LINE OF it_et_request_character ,
it_et_request_status  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_STATUS,"TABLES PARAM
wa_et_request_status  LIKE LINE OF it_et_request_status ,
it_iet_request_set  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_POSNR,"TABLES PARAM
wa_iet_request_set  LIKE LINE OF it_iet_request_set ,
it_et_req_varnt  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_VARNT,"TABLES PARAM
wa_et_req_varnt  LIKE LINE OF it_et_req_varnt ,
it_et_imakzs  TYPE STANDARD TABLE OF IMAKZS,"TABLES PARAM
wa_et_imakzs  LIKE LINE OF it_et_imakzs .

DATA(ld_it_field_list) = 'Check type of data required'.
DATA(ld_it_selection_table) = 'Check type of data required'.
DATA(ld_ir_charac_req) = 'Check type of data required'.
DATA(ld_ir_status_req) = 'Check type of data required'.

DATA(ld_i_req_statsl) = some text here
DATA(ld_i_restart_flg) = 'Check type of data required'.
DATA(ld_i_sel_req_tab_flg) = 'Check type of data required'.
DATA(ld_i_altern_incl_flg) = 'Check type of data required'.
DATA(ld_i_imakzs_req_flg) = 'Check type of data required'.
DATA(ld_i_auth_check_flg) = 'Check type of data required'.
DATA(ld_i_auth_mes_stor_flg) = 'Check type of data required'.

DATA(ld_i_auth_activity) = some text here
DATA(ld_i_package_size) = 'Check type of data required'.
DATA(ld_i_debug_flg) = 'Check type of data required'.
DATA(ld_i_message_type) = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imak to it_et_imak.

"populate fields of struture and append to itab
append wa_et_imaka to it_et_imaka.

"populate fields of struture and append to itab
append wa_et_imakpa to it_et_imakpa.

"populate fields of struture and append to itab
append wa_et_imakpi to it_et_imakpi.

"populate fields of struture and append to itab
append wa_et_imakps to it_et_imakps.

"populate fields of struture and append to itab
append wa_et_imakpu to it_et_imakpu.

"populate fields of struture and append to itab
append wa_et_imakpw to it_et_imakpw.

"populate fields of struture and append to itab
append wa_et_imav to it_et_imav.

"populate fields of struture and append to itab
append wa_et_imavz to it_et_imavz.

"populate fields of struture and append to itab
append wa_et_ihpa to it_et_ihpa.

"populate fields of struture and append to itab
append wa_et_request_character to it_et_request_character.

"populate fields of struture and append to itab
append wa_et_request_status to it_et_request_status.

"populate fields of struture and append to itab
append wa_iet_request_set to it_iet_request_set.

"populate fields of struture and append to itab
append wa_et_req_varnt to it_et_req_varnt.

"populate fields of struture and append to itab
append wa_et_imakzs to it_et_imakzs. . CALL FUNCTION 'AIAA_READ_REQUEST_SET' * EXPORTING * it_field_list = ld_it_field_list * it_selection_table = ld_it_selection_table * ir_charac_req = ld_ir_charac_req * ir_status_req = ld_ir_status_req * i_req_statsl = ld_i_req_statsl * i_restart_flg = ld_i_restart_flg * i_sel_req_tab_flg = ld_i_sel_req_tab_flg * i_altern_incl_flg = ld_i_altern_incl_flg * i_imakzs_req_flg = ld_i_imakzs_req_flg * i_auth_check_flg = ld_i_auth_check_flg * i_auth_mes_stor_flg = ld_i_auth_mes_stor_flg * i_auth_activity = ld_i_auth_activity * i_package_size = ld_i_package_size * i_debug_flg = ld_i_debug_flg * i_message_type = ld_i_message_type IMPORTING e_auth_subrc = ld_e_auth_subrc e_data_to_follow = ld_e_data_to_follow * TABLES * et_imak = it_et_imak * et_imaka = it_et_imaka * et_imakpa = it_et_imakpa * et_imakpi = it_et_imakpi * et_imakps = it_et_imakps * et_imakpu = it_et_imakpu * et_imakpw = it_et_imakpw * et_imav = it_et_imav * et_imavz = it_et_imavz * et_ihpa = it_et_ihpa * et_request_character = it_et_request_character * et_request_status = it_et_request_status * iet_request_set = it_iet_request_set * et_req_varnt = it_et_req_varnt * et_imakzs = it_et_imakzs EXCEPTIONS UNKNOWN_TABLE = 1 AUTH_CHECK_FLG_NOT_ACTIVE = 2 NO_SELECTIONS_FOR_POSID = 3 AUTH_UNKNOWN_ACTIVITY = 4 . " AIAA_READ_REQUEST_SET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here 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:
it_et_imak  TYPE STANDARD TABLE OF IMAK ,
wa_et_imak  LIKE LINE OF it_et_imak,
ld_it_field_list  TYPE IMIS_TYPE_T_LINE ,
ld_e_auth_subrc  TYPE SY-SUBRC ,
ld_it_selection_table  TYPE IMIS_TYPE_T_CEDST ,
it_et_imaka  TYPE STANDARD TABLE OF IMAKA ,
wa_et_imaka  LIKE LINE OF it_et_imaka,
ld_e_data_to_follow  TYPE IMIS_TYPE_FLG ,
it_et_imakpa  TYPE STANDARD TABLE OF IMAKPA ,
wa_et_imakpa  LIKE LINE OF it_et_imakpa,
ld_ir_charac_req  TYPE IMIS_TYPE_R_CHARAC_REQ ,
ld_ir_status_req  TYPE IMIS_TYPE_R_STATUS ,
it_et_imakpi  TYPE STANDARD TABLE OF IMAKPI ,
wa_et_imakpi  LIKE LINE OF it_et_imakpi,
ld_i_req_statsl  TYPE RIRASP-REQ_STATSL ,
it_et_imakps  TYPE STANDARD TABLE OF IMAKPS ,
wa_et_imakps  LIKE LINE OF it_et_imakps,
it_et_imakpu  TYPE STANDARD TABLE OF IMAKPU ,
wa_et_imakpu  LIKE LINE OF it_et_imakpu,
ld_i_restart_flg  TYPE IMIS_TYPE_FLG ,
ld_i_sel_req_tab_flg  TYPE IMIS_TYPE_FLG ,
it_et_imakpw  TYPE STANDARD TABLE OF IMAKPW ,
wa_et_imakpw  LIKE LINE OF it_et_imakpw,
ld_i_altern_incl_flg  TYPE IMIS_TYPE_FLG ,
it_et_imav  TYPE STANDARD TABLE OF IMAV ,
wa_et_imav  LIKE LINE OF it_et_imav,
it_et_imavz  TYPE STANDARD TABLE OF IMAVZ ,
wa_et_imavz  LIKE LINE OF it_et_imavz,
ld_i_imakzs_req_flg  TYPE IMIS_TYPE_FLG ,
it_et_ihpa  TYPE STANDARD TABLE OF IHPA ,
wa_et_ihpa  LIKE LINE OF it_et_ihpa,
ld_i_auth_check_flg  TYPE IMIS_TYPE_FLG ,
it_et_request_character  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_CHARACTER ,
wa_et_request_character  LIKE LINE OF it_et_request_character,
ld_i_auth_mes_stor_flg  TYPE IMIS_TYPE_FLG ,
it_et_request_status  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_STATUS ,
wa_et_request_status  LIKE LINE OF it_et_request_status,
ld_i_auth_activity  TYPE AUTHA-IM_ACTVT ,
ld_i_package_size  TYPE I ,
it_iet_request_set  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_POSNR ,
wa_iet_request_set  LIKE LINE OF it_iet_request_set,
ld_i_debug_flg  TYPE IMIS_TYPE_FLG ,
it_et_req_varnt  TYPE STANDARD TABLE OF IMIS_TYPE_T_REQ_VARNT ,
wa_et_req_varnt  LIKE LINE OF it_et_req_varnt,
ld_i_message_type  TYPE SY-MSGTY ,
it_et_imakzs  TYPE STANDARD TABLE OF IMAKZS ,
wa_et_imakzs  LIKE LINE OF it_et_imakzs.


"populate fields of struture and append to itab
append wa_et_imak to it_et_imak.
ld_it_field_list = 'some text here'.
ld_it_selection_table = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imaka to it_et_imaka.

"populate fields of struture and append to itab
append wa_et_imakpa to it_et_imakpa.
ld_ir_charac_req = 'some text here'.
ld_ir_status_req = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imakpi to it_et_imakpi.

ld_i_req_statsl = some text here

"populate fields of struture and append to itab
append wa_et_imakps to it_et_imakps.

"populate fields of struture and append to itab
append wa_et_imakpu to it_et_imakpu.
ld_i_restart_flg = 'some text here'.
ld_i_sel_req_tab_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imakpw to it_et_imakpw.
ld_i_altern_incl_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imav to it_et_imav.

"populate fields of struture and append to itab
append wa_et_imavz to it_et_imavz.
ld_i_imakzs_req_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_ihpa to it_et_ihpa.
ld_i_auth_check_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_request_character to it_et_request_character.
ld_i_auth_mes_stor_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_request_status to it_et_request_status.

ld_i_auth_activity = some text here
ld_i_package_size = 'some text here'.

"populate fields of struture and append to itab
append wa_iet_request_set to it_iet_request_set.
ld_i_debug_flg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_req_varnt to it_et_req_varnt.
ld_i_message_type = 'some text here'.

"populate fields of struture and append to itab
append wa_et_imakzs to it_et_imakzs.

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