SAP Function Modules

GMIA_LIST_PROCESS SAP Function module - GMIA LINE ITEMS DISPLAY AND PROCESS







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

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


Pattern for FM GMIA_LIST_PROCESS - GMIA LIST PROCESS





CALL FUNCTION 'GMIA_LIST_PROCESS' "GMIA LINE ITEMS DISPLAY AND PROCESS
* EXPORTING
*   i_callback_program =        " sy-repid
*   i_callback_pf_status_set =   " slis_formname
*   i_callback_user_command =   " slis_formname
*   i_fieldcat_program =        " sy-repid
*   i_fieldcat_tabname =        " slis_tabname
*   i_fieldcat_inclname =       " trdir-name    ABAP program name
*   i_fieldcat_strucnam =       " dd02l-tabname  Table Name
*   i_variant =                 " disvariant    Layout (External Use)
* TABLES
*   it_gmia_list =              " gmia_list     LIST OUTPUT of GMIA LINE ITEMS
*   it_gmia =                   " gmia          Actual line item table
*   it_message =                " gmbpl_t_messlog
    .  "  GMIA_LIST_PROCESS

ABAP code example for Function Module GMIA_LIST_PROCESS





The ABAP code below is a full code listing to execute function module GMIA_LIST_PROCESS 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_it_gmia_list  TYPE STANDARD TABLE OF GMIA_LIST,"TABLES PARAM
wa_it_gmia_list  LIKE LINE OF it_it_gmia_list ,
it_it_gmia  TYPE STANDARD TABLE OF GMIA,"TABLES PARAM
wa_it_gmia  LIKE LINE OF it_it_gmia ,
it_it_message  TYPE STANDARD TABLE OF GMBPL_T_MESSLOG,"TABLES PARAM
wa_it_message  LIKE LINE OF it_it_message .

DATA(ld_i_callback_program) = '123 '.
DATA(ld_i_callback_pf_status_set) = 'some text here'.
DATA(ld_i_callback_user_command) = 'some text here'.
DATA(ld_i_fieldcat_program) = '123 '.
DATA(ld_i_fieldcat_tabname) = 'some text here'.

SELECT single NAME
FROM TRDIR
INTO @DATA(ld_i_fieldcat_inclname).


SELECT single TABNAME
FROM DD02L
INTO @DATA(ld_i_fieldcat_strucnam).

DATA(ld_i_variant) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_gmia_list to it_it_gmia_list.

"populate fields of struture and append to itab
append wa_it_gmia to it_it_gmia.

"populate fields of struture and append to itab
append wa_it_message to it_it_message. . CALL FUNCTION 'GMIA_LIST_PROCESS' * EXPORTING * i_callback_program = ld_i_callback_program * i_callback_pf_status_set = ld_i_callback_pf_status_set * i_callback_user_command = ld_i_callback_user_command * i_fieldcat_program = ld_i_fieldcat_program * i_fieldcat_tabname = ld_i_fieldcat_tabname * i_fieldcat_inclname = ld_i_fieldcat_inclname * i_fieldcat_strucnam = ld_i_fieldcat_strucnam * i_variant = ld_i_variant * TABLES * it_gmia_list = it_it_gmia_list * it_gmia = it_it_gmia * it_message = it_it_message . " GMIA_LIST_PROCESS
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_callback_program  TYPE SY-REPID ,
it_it_gmia_list  TYPE STANDARD TABLE OF GMIA_LIST ,
wa_it_gmia_list  LIKE LINE OF it_it_gmia_list,
ld_i_callback_pf_status_set  TYPE SLIS_FORMNAME ,
it_it_gmia  TYPE STANDARD TABLE OF GMIA ,
wa_it_gmia  LIKE LINE OF it_it_gmia,
ld_i_callback_user_command  TYPE SLIS_FORMNAME ,
it_it_message  TYPE STANDARD TABLE OF GMBPL_T_MESSLOG ,
wa_it_message  LIKE LINE OF it_it_message,
ld_i_fieldcat_program  TYPE SY-REPID ,
ld_i_fieldcat_tabname  TYPE SLIS_TABNAME ,
ld_i_fieldcat_inclname  TYPE TRDIR-NAME ,
ld_i_fieldcat_strucnam  TYPE DD02L-TABNAME ,
ld_i_variant  TYPE DISVARIANT .

ld_i_callback_program = '123 '.

"populate fields of struture and append to itab
append wa_it_gmia_list to it_it_gmia_list.
ld_i_callback_pf_status_set = 'some text here'.

"populate fields of struture and append to itab
append wa_it_gmia to it_it_gmia.
ld_i_callback_user_command = 'some text here'.

"populate fields of struture and append to itab
append wa_it_message to it_it_message.
ld_i_fieldcat_program = '123 '.
ld_i_fieldcat_tabname = 'some text here'.

SELECT single NAME
FROM TRDIR
INTO ld_i_fieldcat_inclname.


SELECT single TABNAME
FROM DD02L
INTO ld_i_fieldcat_strucnam.

ld_i_variant = 'some text here'.

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