SAP Function Modules

C102_LIST_DISPLAY SAP Function module







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

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


Pattern for FM C102_LIST_DISPLAY - C102 LIST DISPLAY





CALL FUNCTION 'C102_LIST_DISPLAY' "
* EXPORTING
*   i_pf_status_func = 'C102_SET_PF_STATUS'  " tfdir-funcname
*   i_user_command_func = 'C102_USER_COMMAND'  " tfdir-funcname
*   i_masterstruct_name = 'RCGSHITM'  " dcobjdef-name
*   i_slavestruct_name = 'RCGSHITS'  " dcobjdef-name
*   i_kkbl_param_user_exit = 'C102_PAR_USER_EXIT'  " esp1_func_name
  TABLES
    x_iotab =                   " rcgrhiot
    e_mastertab =               " rcgshitm
    e_slavetab =                " rcgshits
  EXCEPTIONS
    NO_SUBID = 1                "
    MASTER_SLAVE_ERROR = 2      "
    LIST_DISPL_ERROR = 3        "
    .  "  C102_LIST_DISPLAY

ABAP code example for Function Module C102_LIST_DISPLAY





The ABAP code below is a full code listing to execute function module C102_LIST_DISPLAY 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_x_iotab  TYPE STANDARD TABLE OF RCGRHIOT,"TABLES PARAM
wa_x_iotab  LIKE LINE OF it_x_iotab ,
it_e_mastertab  TYPE STANDARD TABLE OF RCGSHITM,"TABLES PARAM
wa_e_mastertab  LIKE LINE OF it_e_mastertab ,
it_e_slavetab  TYPE STANDARD TABLE OF RCGSHITS,"TABLES PARAM
wa_e_slavetab  LIKE LINE OF it_e_slavetab .


SELECT single FUNCNAME
FROM TFDIR
INTO @DATA(ld_i_pf_status_func).


SELECT single FUNCNAME
FROM TFDIR
INTO @DATA(ld_i_user_command_func).


DATA(ld_i_masterstruct_name) = some text here

DATA(ld_i_slavestruct_name) = some text here
DATA(ld_i_kkbl_param_user_exit) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_x_iotab to it_x_iotab.

"populate fields of struture and append to itab
append wa_e_mastertab to it_e_mastertab.

"populate fields of struture and append to itab
append wa_e_slavetab to it_e_slavetab. . CALL FUNCTION 'C102_LIST_DISPLAY' * EXPORTING * i_pf_status_func = ld_i_pf_status_func * i_user_command_func = ld_i_user_command_func * i_masterstruct_name = ld_i_masterstruct_name * i_slavestruct_name = ld_i_slavestruct_name * i_kkbl_param_user_exit = ld_i_kkbl_param_user_exit TABLES x_iotab = it_x_iotab e_mastertab = it_e_mastertab e_slavetab = it_e_slavetab EXCEPTIONS NO_SUBID = 1 MASTER_SLAVE_ERROR = 2 LIST_DISPL_ERROR = 3 . " C102_LIST_DISPLAY
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 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_pf_status_func  TYPE TFDIR-FUNCNAME ,
it_x_iotab  TYPE STANDARD TABLE OF RCGRHIOT ,
wa_x_iotab  LIKE LINE OF it_x_iotab,
ld_i_user_command_func  TYPE TFDIR-FUNCNAME ,
it_e_mastertab  TYPE STANDARD TABLE OF RCGSHITM ,
wa_e_mastertab  LIKE LINE OF it_e_mastertab,
ld_i_masterstruct_name  TYPE DCOBJDEF-NAME ,
it_e_slavetab  TYPE STANDARD TABLE OF RCGSHITS ,
wa_e_slavetab  LIKE LINE OF it_e_slavetab,
ld_i_slavestruct_name  TYPE DCOBJDEF-NAME ,
ld_i_kkbl_param_user_exit  TYPE ESP1_FUNC_NAME .


SELECT single FUNCNAME
FROM TFDIR
INTO ld_i_pf_status_func.


"populate fields of struture and append to itab
append wa_x_iotab to it_x_iotab.

SELECT single FUNCNAME
FROM TFDIR
INTO ld_i_user_command_func.


"populate fields of struture and append to itab
append wa_e_mastertab to it_e_mastertab.

ld_i_masterstruct_name = some text here

"populate fields of struture and append to itab
append wa_e_slavetab to it_e_slavetab.

ld_i_slavestruct_name = some text here
ld_i_kkbl_param_user_exit = '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 C102_LIST_DISPLAY or its description.