SAP C14T_STRUCT_PREP_FOR_LISTTOOL Function Module for NOTRANSL: EHS: !!!OBSOLETE!!! INTERN: Strukturen für die KKBL-Parameter au









C14T_STRUCT_PREP_FOR_LISTTOOL is a standard c14t struct prep for listtool SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: !!!OBSOLETE!!! INTERN: Strukturen für die KKBL-Parameter au processing and below is the pattern details for this FM, 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 c14t struct prep for listtool FM, simply by entering the name C14T_STRUCT_PREP_FOR_LISTTOOL into the relevant SAP transaction such as SE37 or SE38.

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



Function C14T_STRUCT_PREP_FOR_LISTTOOL 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 'C14T_STRUCT_PREP_FOR_LISTTOOL'"NOTRANSL: EHS: !!!OBSOLETE!!! INTERN: Strukturen für die KKBL-Parameter au
EXPORTING
* I_MASTERSTRUCT_NAME = "Master Structure
* I_SLAVESTRUCT_NAME = ' ' "
* I_TECHSTRUCT_NAME = ' ' "
* I_USER_EXIT_FUNC = ' ' "
* I_FLG_ADAPT_WIDTH = ESP1_FALSE "
* I_FLG_ADAPT_LST_WDTH = ESP1_FALSE "

IMPORTING
E_IS_KEYINFO = "
E_IT_SORT = "
E_IS_SEL_HIDE = "
E_I_SCREEN_START_COLUMN = "
E_I_SCREEN_START_LINE = "
E_I_SCREEN_END_COLUMN = "
E_I_SCREEN_END_LINE = "
E_IS_PRINT = "Print Options
E_KEYINFO = "Key Information
E_IS_LAYOUT = "Layout
E_LAYOUT = "
E_IT_FIELDCAT = "Field Catalog
E_FIELDCAT = "Field Catalog
E_I_FCTYPE = "
E_IT_EXCLUDING = "
E_IT_SPECIAL_GROUPS = "

TABLES
* I_MASTERTAB = "Master Table
* I_SLAVETAB = "

EXCEPTIONS
DDIC_ERROR = 1 OTHER_ERROR = 10 ILLEGAL_MASTER_INPUT = 2 ILLEGAL_SLAVE_INPUT = 3 MASTER_FIELD_PREP_ERROR = 4 SLAVE_FIELD_PREP_ERROR = 5 ILLEGAL_TECH_INPUT = 6 KEYFIELD_AS_CHECKBOX = 7 USER_EXIT_ERROR = 8 MASTER_SLAVE_CONFLICT = 9
.



IMPORTING Parameters details for C14T_STRUCT_PREP_FOR_LISTTOOL

I_MASTERSTRUCT_NAME - Master Structure

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

I_SLAVESTRUCT_NAME -

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

I_TECHSTRUCT_NAME -

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

I_USER_EXIT_FUNC -

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

I_FLG_ADAPT_WIDTH -

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

I_FLG_ADAPT_LST_WDTH -

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

EXPORTING Parameters details for C14T_STRUCT_PREP_FOR_LISTTOOL

E_IS_KEYINFO -

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

E_IT_SORT -

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

E_IS_SEL_HIDE -

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

E_I_SCREEN_START_COLUMN -

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

E_I_SCREEN_START_LINE -

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

E_I_SCREEN_END_COLUMN -

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

E_I_SCREEN_END_LINE -

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

E_IS_PRINT - Print Options

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

E_KEYINFO - Key Information

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

E_IS_LAYOUT - Layout

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

E_LAYOUT -

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

E_IT_FIELDCAT - Field Catalog

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

E_FIELDCAT - Field Catalog

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

E_I_FCTYPE -

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

E_IT_EXCLUDING -

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

E_IT_SPECIAL_GROUPS -

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

TABLES Parameters details for C14T_STRUCT_PREP_FOR_LISTTOOL

I_MASTERTAB - Master Table

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

I_SLAVETAB -

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

EXCEPTIONS details

DDIC_ERROR -

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

OTHER_ERROR - Other error

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

ILLEGAL_MASTER_INPUT -

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

ILLEGAL_SLAVE_INPUT -

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

MASTER_FIELD_PREP_ERROR -

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

SLAVE_FIELD_PREP_ERROR -

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

ILLEGAL_TECH_INPUT -

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

KEYFIELD_AS_CHECKBOX -

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

USER_EXIT_ERROR -

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

MASTER_SLAVE_CONFLICT -

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

Copy and paste ABAP code example for C14T_STRUCT_PREP_FOR_LISTTOOL 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:
lv_ddic_error  TYPE STRING, "   
lt_i_mastertab  TYPE STANDARD TABLE OF STRING, "   
lv_e_is_keyinfo  TYPE KKBLO_KEYINFO, "   
lv_i_masterstruct_name  TYPE DCOBJDEF-NAME, "   
lv_e_it_sort  TYPE KKBLO_T_SORTINFO, "   
lv_other_error  TYPE KKBLO_T_SORTINFO, "   
lv_e_is_sel_hide  TYPE KKBLO_SEL_HIDE, "   
lv_e_i_screen_start_column  TYPE KKBLO_SEL_HIDE, "   
lv_e_i_screen_start_line  TYPE KKBLO_SEL_HIDE, "   
lv_e_i_screen_end_column  TYPE KKBLO_SEL_HIDE, "   
lv_e_i_screen_end_line  TYPE KKBLO_SEL_HIDE, "   
lv_e_is_print  TYPE SLIS_PRINT_ALV, "   
lv_e_keyinfo  TYPE KKBLO_KEYINFO, "   
lt_i_slavetab  TYPE STANDARD TABLE OF KKBLO_KEYINFO, "   
lv_i_slavestruct_name  TYPE DCOBJDEF-NAME, "   SPACE
lv_illegal_master_input  TYPE DCOBJDEF, "   
lv_e_is_layout  TYPE KKBLO_LAYOUT, "   
lv_i_techstruct_name  TYPE DCOBJDEF-NAME, "   SPACE
lv_illegal_slave_input  TYPE DCOBJDEF, "   
lv_e_layout  TYPE KKBLO_LAYOUT, "   
lv_i_user_exit_func  TYPE TFDIR-FUNCNAME, "   SPACE
lv_master_field_prep_error  TYPE TFDIR, "   
lv_e_it_fieldcat  TYPE KKBLO_T_FIELDCAT, "   
lv_i_flg_adapt_width  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_slave_field_prep_error  TYPE ESP1_BOOLEAN, "   
lv_e_fieldcat  TYPE KKBLO_T_FIELDCAT, "   
lv_illegal_tech_input  TYPE KKBLO_T_FIELDCAT, "   
lv_i_flg_adapt_lst_wdth  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_e_i_fctype  TYPE ESP1_BOOLEAN, "   
lv_keyfield_as_checkbox  TYPE ESP1_BOOLEAN, "   
lv_e_it_excluding  TYPE KKBLO_T_EXTAB, "   
lv_user_exit_error  TYPE KKBLO_T_EXTAB, "   
lv_e_it_special_groups  TYPE KKBLO_T_SP_GROUP, "   
lv_master_slave_conflict  TYPE KKBLO_T_SP_GROUP. "   

  CALL FUNCTION 'C14T_STRUCT_PREP_FOR_LISTTOOL'  "NOTRANSL: EHS: !!!OBSOLETE!!! INTERN: Strukturen für die KKBL-Parameter au
    EXPORTING
         I_MASTERSTRUCT_NAME = lv_i_masterstruct_name
         I_SLAVESTRUCT_NAME = lv_i_slavestruct_name
         I_TECHSTRUCT_NAME = lv_i_techstruct_name
         I_USER_EXIT_FUNC = lv_i_user_exit_func
         I_FLG_ADAPT_WIDTH = lv_i_flg_adapt_width
         I_FLG_ADAPT_LST_WDTH = lv_i_flg_adapt_lst_wdth
    IMPORTING
         E_IS_KEYINFO = lv_e_is_keyinfo
         E_IT_SORT = lv_e_it_sort
         E_IS_SEL_HIDE = lv_e_is_sel_hide
         E_I_SCREEN_START_COLUMN = lv_e_i_screen_start_column
         E_I_SCREEN_START_LINE = lv_e_i_screen_start_line
         E_I_SCREEN_END_COLUMN = lv_e_i_screen_end_column
         E_I_SCREEN_END_LINE = lv_e_i_screen_end_line
         E_IS_PRINT = lv_e_is_print
         E_KEYINFO = lv_e_keyinfo
         E_IS_LAYOUT = lv_e_is_layout
         E_LAYOUT = lv_e_layout
         E_IT_FIELDCAT = lv_e_it_fieldcat
         E_FIELDCAT = lv_e_fieldcat
         E_I_FCTYPE = lv_e_i_fctype
         E_IT_EXCLUDING = lv_e_it_excluding
         E_IT_SPECIAL_GROUPS = lv_e_it_special_groups
    TABLES
         I_MASTERTAB = lt_i_mastertab
         I_SLAVETAB = lt_i_slavetab
    EXCEPTIONS
        DDIC_ERROR = 1
        OTHER_ERROR = 10
        ILLEGAL_MASTER_INPUT = 2
        ILLEGAL_SLAVE_INPUT = 3
        MASTER_FIELD_PREP_ERROR = 4
        SLAVE_FIELD_PREP_ERROR = 5
        ILLEGAL_TECH_INPUT = 6
        KEYFIELD_AS_CHECKBOX = 7
        USER_EXIT_ERROR = 8
        MASTER_SLAVE_CONFLICT = 9
. " C14T_STRUCT_PREP_FOR_LISTTOOL




ABAP code using 7.40 inline data declarations to call FM C14T_STRUCT_PREP_FOR_LISTTOOL

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 NAME FROM DCOBJDEF INTO @DATA(ld_i_masterstruct_name).
 
 
 
 
 
 
 
 
 
 
 
"SELECT single NAME FROM DCOBJDEF INTO @DATA(ld_i_slavestruct_name).
DATA(ld_i_slavestruct_name) = ' '.
 
 
 
"SELECT single NAME FROM DCOBJDEF INTO @DATA(ld_i_techstruct_name).
DATA(ld_i_techstruct_name) = ' '.
 
 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_user_exit_func).
DATA(ld_i_user_exit_func) = ' '.
 
 
 
DATA(ld_i_flg_adapt_width) = ESP1_FALSE.
 
 
 
 
DATA(ld_i_flg_adapt_lst_wdth) = ESP1_FALSE.
 
 
 
 
 
 
 


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!