SAP C14T_STRUCT_PREP_FOR_ALVGRID Function Module for NOTRANSL: EHS: INTERN: Strukturen für ALV Grid aufbereiten









C14T_STRUCT_PREP_FOR_ALVGRID is a standard c14t struct prep for alvgrid 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: INTERN: Strukturen für ALV Grid aufbereiten 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 alvgrid FM, simply by entering the name C14T_STRUCT_PREP_FOR_ALVGRID 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_ALVGRID 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_ALVGRID'"NOTRANSL: EHS: INTERN: Strukturen für ALV Grid aufbereiten
EXPORTING
* I_STRUCT_NAME = 'RCGALVHIT' "Master Structure
* I_USER_EXIT_FUNC = "
* I_FLG_ADAPT_WIDTH = ESP1_FALSE "

CHANGING
* X_CONSISTENCY_CHECK = "Single-Character Indicator
* X_FILTER = "ALV Control: Table of Filter Conditions
* X_LAYOUT_WA = "Layout
* X_PRINT = "Print Settings for LVC
* X_FIELDCAT_TAB = "Field Catalog
* X_TOOLBAR_EXCLUDING = "
* X_SPECIAL_GROUPS_TAB = "
* X_SORT_TAB = "
* X_HYPERLINK = "ALV Control: Hyperlinks
* X_ALV_GRAPHICS = "Table of Structure DTC_S_TC

TABLES
* I_IOTAB = "

EXCEPTIONS
DDIC_ERROR = 1 USER_EXIT_ERROR = 2
.



IMPORTING Parameters details for C14T_STRUCT_PREP_FOR_ALVGRID

I_STRUCT_NAME - Master Structure

Data type: DD02L-TABNAME
Default: 'RCGALVHIT'
Optional: No
Call by Reference: No ( called with pass by value option)

I_USER_EXIT_FUNC -

Data type: TFDIR-FUNCNAME
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)

CHANGING Parameters details for C14T_STRUCT_PREP_FOR_ALVGRID

X_CONSISTENCY_CHECK - Single-Character Indicator

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

X_FILTER - ALV Control: Table of Filter Conditions

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

X_LAYOUT_WA - Layout

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

X_PRINT - Print Settings for LVC

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

X_FIELDCAT_TAB - Field Catalog

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

X_TOOLBAR_EXCLUDING -

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

X_SPECIAL_GROUPS_TAB -

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

X_SORT_TAB -

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

X_HYPERLINK - ALV Control: Hyperlinks

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

X_ALV_GRAPHICS - Table of Structure DTC_S_TC

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

TABLES Parameters details for C14T_STRUCT_PREP_FOR_ALVGRID

I_IOTAB -

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

DDIC_ERROR -

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)

Copy and paste ABAP code example for C14T_STRUCT_PREP_FOR_ALVGRID 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_i_iotab  TYPE STANDARD TABLE OF STRING, "   
lv_ddic_error  TYPE STRING, "   
lv_i_struct_name  TYPE DD02L-TABNAME, "   'RCGALVHIT'
lv_x_consistency_check  TYPE CHAR1, "   
lv_x_filter  TYPE LVC_T_FILT, "   
lv_x_layout_wa  TYPE LVC_S_LAYO, "   
lv_user_exit_error  TYPE LVC_S_LAYO, "   
lv_i_user_exit_func  TYPE TFDIR-FUNCNAME, "   
lv_x_print  TYPE LVC_S_PRNT, "   
lv_i_flg_adapt_width  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_x_fieldcat_tab  TYPE LVC_T_FCAT, "   
lv_x_toolbar_excluding  TYPE UI_FUNCTIONS, "   
lv_x_special_groups_tab  TYPE LVC_T_SGRP, "   
lv_x_sort_tab  TYPE LVC_T_SORT, "   
lv_x_hyperlink  TYPE LVC_T_HYPE, "   
lv_x_alv_graphics  TYPE DTC_T_TC. "   

  CALL FUNCTION 'C14T_STRUCT_PREP_FOR_ALVGRID'  "NOTRANSL: EHS: INTERN: Strukturen für ALV Grid aufbereiten
    EXPORTING
         I_STRUCT_NAME = lv_i_struct_name
         I_USER_EXIT_FUNC = lv_i_user_exit_func
         I_FLG_ADAPT_WIDTH = lv_i_flg_adapt_width
    CHANGING
         X_CONSISTENCY_CHECK = lv_x_consistency_check
         X_FILTER = lv_x_filter
         X_LAYOUT_WA = lv_x_layout_wa
         X_PRINT = lv_x_print
         X_FIELDCAT_TAB = lv_x_fieldcat_tab
         X_TOOLBAR_EXCLUDING = lv_x_toolbar_excluding
         X_SPECIAL_GROUPS_TAB = lv_x_special_groups_tab
         X_SORT_TAB = lv_x_sort_tab
         X_HYPERLINK = lv_x_hyperlink
         X_ALV_GRAPHICS = lv_x_alv_graphics
    TABLES
         I_IOTAB = lt_i_iotab
    EXCEPTIONS
        DDIC_ERROR = 1
        USER_EXIT_ERROR = 2
. " C14T_STRUCT_PREP_FOR_ALVGRID




ABAP code using 7.40 inline data declarations to call FM C14T_STRUCT_PREP_FOR_ALVGRID

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 TABNAME FROM DD02L INTO @DATA(ld_i_struct_name).
DATA(ld_i_struct_name) = 'RCGALVHIT'.
 
 
 
 
 
"SELECT single FUNCNAME FROM TFDIR INTO @DATA(ld_i_user_exit_func).
 
 
DATA(ld_i_flg_adapt_width) = 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!