SAP C1D2_LIST_DISPLAY Function Module for









C1D2_LIST_DISPLAY is a standard c1d2 list display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for c1d2 list display FM, simply by entering the name C1D2_LIST_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

Function Group: C1D2
Program Name: SAPLC1D2
Main Program: SAPLC1D2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C1D2_LIST_DISPLAY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'C1D2_LIST_DISPLAY'"
EXPORTING
* I_PF_STATUS_FUNC = 'C1D2_SET_PF_STATUS' "
* I_USER_COMMAND_FUNC = 'C1D2_USER_COMMAND' "
* I_LAYOUT_CHANGE_FUNC = 'C1D2_LAYOUT_SET' "
* I_MASTERSTRUCT_NAME = 'RCGLHITM' "
* I_SLAVESTRUCT_NAME = 'RCGLHITS' "

TABLES
X_IOTAB = "
E_MASTERTAB = "
* E_SLAVETAB = "

EXCEPTIONS
NO_SBVID = 1 MASTER_SLAVE_ERROR = 2 LIST_DISPL_ERROR = 3
.



IMPORTING Parameters details for C1D2_LIST_DISPLAY

I_PF_STATUS_FUNC -

Data type: TFDIR-FUNCNAME
Default: 'C1D2_SET_PF_STATUS'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USER_COMMAND_FUNC -

Data type: TFDIR-FUNCNAME
Default: 'C1D2_USER_COMMAND'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LAYOUT_CHANGE_FUNC -

Data type: TFDIR-FUNCNAME
Default: 'C1D2_LAYOUT_SET'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MASTERSTRUCT_NAME -

Data type: DCOBJDEF-NAME
Default: 'RCGLHITM'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SLAVESTRUCT_NAME -

Data type: DCOBJDEF-NAME
Default: 'RCGLHITS'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for C1D2_LIST_DISPLAY

X_IOTAB -

Data type: RCGSBVIOT
Optional: No
Call by Reference: No ( called with pass by value option)

E_MASTERTAB -

Data type: RCGLHITM
Optional: No
Call by Reference: No ( called with pass by value option)

E_SLAVETAB -

Data type: RCGLHITS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_SBVID -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MASTER_SLAVE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LIST_DISPL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for C1D2_LIST_DISPLAY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_x_iotab  TYPE STANDARD TABLE OF RCGSBVIOT, "   
lv_no_sbvid  TYPE RCGSBVIOT, "   
lv_i_pf_status_func  TYPE TFDIR-FUNCNAME, "   'C1D2_SET_PF_STATUS'
lt_e_mastertab  TYPE STANDARD TABLE OF RCGLHITM, "   
lv_master_slave_error  TYPE RCGLHITM, "   
lv_i_user_command_func  TYPE TFDIR-FUNCNAME, "   'C1D2_USER_COMMAND'
lt_e_slavetab  TYPE STANDARD TABLE OF RCGLHITS, "   
lv_list_displ_error  TYPE RCGLHITS, "   
lv_i_layout_change_func  TYPE TFDIR-FUNCNAME, "   'C1D2_LAYOUT_SET'
lv_i_masterstruct_name  TYPE DCOBJDEF-NAME, "   'RCGLHITM'
lv_i_slavestruct_name  TYPE DCOBJDEF-NAME. "   'RCGLHITS'

  CALL FUNCTION 'C1D2_LIST_DISPLAY'  "
    EXPORTING
         I_PF_STATUS_FUNC = lv_i_pf_status_func
         I_USER_COMMAND_FUNC = lv_i_user_command_func
         I_LAYOUT_CHANGE_FUNC = lv_i_layout_change_func
         I_MASTERSTRUCT_NAME = lv_i_masterstruct_name
         I_SLAVESTRUCT_NAME = lv_i_slavestruct_name
    TABLES
         X_IOTAB = lt_x_iotab
         E_MASTERTAB = lt_e_mastertab
         E_SLAVETAB = lt_e_slavetab
    EXCEPTIONS
        NO_SBVID = 1
        MASTER_SLAVE_ERROR = 2
        LIST_DISPL_ERROR = 3
. " C1D2_LIST_DISPLAY




ABAP code using 7.40 inline data declarations to call FM C1D2_LIST_DISPLAY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_pf_status_func).
DATA(ld_i_pf_status_func) = 'C1D2_SET_PF_STATUS'.
 
 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_user_command_func).
DATA(ld_i_user_command_func) = 'C1D2_USER_COMMAND'.
 
 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_layout_change_func).
DATA(ld_i_layout_change_func) = 'C1D2_LAYOUT_SET'.
 
"SELECT single NAME FROM DCOBJDEF INTO @DATA(ld_i_masterstruct_name).
DATA(ld_i_masterstruct_name) = 'RCGLHITM'.
 
"SELECT single NAME FROM DCOBJDEF INTO @DATA(ld_i_slavestruct_name).
DATA(ld_i_slavestruct_name) = 'RCGLHITS'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!