SAP UC_TREE_DISPLAY Function Module for Tree Display
UC_TREE_DISPLAY is a standard uc tree display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Tree Display 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 uc tree display FM, simply by entering the name UC_TREE_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: UCL0
Program Name: SAPLUCL0
Main Program: SAPLUCL0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function UC_TREE_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 'UC_TREE_DISPLAY'"Tree Display.
EXPORTING
E_TITLE = "
* ET_MDATA = "List Processor: Messages for List
* ET_RCALL = "
* EO_CALLBACK = "List Processor: Interface for Callback Definition
* ET_OPT_FCODE = "List Processor: Display of Optional Menu Entries
* E_CALLBACK_USER_COMMAND = "Form
* E_CALLBACK_RECURSE = "General Indicator for SAP Consolidation
* E_CALLBACK_STATUS = "Form
* EO_MODEL = "Model (Metadata)
* ET_VAL_DERIV = "List Processor: Value Derivation for Control Fields
* E_CONSIST_CHECK = ' ' "
* E_TAB_STRUCT = "Table Name
* ET_CONTEXT = "Table: Selection Condition (Range per Field)
* ET_LAYOUT_OTHER = "Another active log layouts
* EO_LOG = "
* ET_LOG_OTHER = "Log: Information
* E_HLP_STRUCT = "Table Name
* ET_DATA = "
* ET_LIST = "List Properties
* ET_FDISP = "Fields contained in the list
* ET_KDISP = "
* ET_KCORR = "
* ET_BLIST = "Connection between lists and their sublists
CHANGING
* CT_WORK = "
* CT_FFIX = "
* CT_FUSED = "Fields used in listprocessor data table
IMPORTING Parameters details for UC_TREE_DISPLAY
E_TITLE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
ET_MDATA - List Processor: Messages for List
Data type: UCL_T_LP_MESSAGEOptional: Yes
Call by Reference: Yes
ET_RCALL -
Data type: UCL_T_LP_RCALLOptional: Yes
Call by Reference: Yes
EO_CALLBACK - List Processor: Interface for Callback Definition
Data type: IF_UC_LP_CALLBACKOptional: Yes
Call by Reference: Yes
ET_OPT_FCODE - List Processor: Display of Optional Menu Entries
Data type: UCL_TS_LP_OPT_FCODEOptional: Yes
Call by Reference: Yes
E_CALLBACK_USER_COMMAND - Form
Data type: UC_LP_FORMOptional: Yes
Call by Reference: Yes
E_CALLBACK_RECURSE - General Indicator for SAP Consolidation
Data type: UC_FLGOptional: Yes
Call by Reference: Yes
E_CALLBACK_STATUS - Form
Data type: UC_LP_FORMOptional: Yes
Call by Reference: Yes
EO_MODEL - Model (Metadata)
Data type: IF_UC_MODELOptional: Yes
Call by Reference: Yes
ET_VAL_DERIV - List Processor: Value Derivation for Control Fields
Data type: UCL_TS_LP_VAL_DERIVOptional: Yes
Call by Reference: Yes
E_CONSIST_CHECK -
Data type: UC_LP_FLGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
E_TAB_STRUCT - Table Name
Data type: UC_LP_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_CONTEXT - Table: Selection Condition (Range per Field)
Data type: UC0_TS_VALUEOptional: Yes
Call by Reference: Yes
ET_LAYOUT_OTHER - Another active log layouts
Data type: UCL_T_LOG_LAYOUT_OTHEROptional: Yes
Call by Reference: Yes
EO_LOG -
Data type: CL_UC_LOGOptional: Yes
Call by Reference: Yes
ET_LOG_OTHER - Log: Information
Data type: UCL_TS_LOG_INFOOptional: Yes
Call by Reference: Yes
E_HLP_STRUCT - Table Name
Data type: UC_LP_TABLEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_DATA -
Data type: TABLEOptional: Yes
Call by Reference: Yes
ET_LIST - List Properties
Data type: UCL_TS_LP_LISTOptional: Yes
Call by Reference: Yes
ET_FDISP - Fields contained in the list
Data type: UCL_TS_LP_FDISPOptional: Yes
Call by Reference: Yes
ET_KDISP -
Data type: UCL_TS_LP_KDISPOptional: Yes
Call by Reference: Yes
ET_KCORR -
Data type: UCL_TS_LP_KCORROptional: Yes
Call by Reference: Yes
ET_BLIST - Connection between lists and their sublists
Data type: UCL_TS_LP_BLISTOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for UC_TREE_DISPLAY
CT_WORK -
Data type: TABLEOptional: Yes
Call by Reference: Yes
CT_FFIX -
Data type: UCL_T_LP_FFIXOptional: Yes
Call by Reference: Yes
CT_FUSED - Fields used in listprocessor data table
Data type: UCL_TS_LP_FUSEDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for UC_TREE_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: | ||||
lv_ct_work | TYPE TABLE, " | |||
lv_e_title | TYPE C, " | |||
lv_et_mdata | TYPE UCL_T_LP_MESSAGE, " | |||
lv_et_rcall | TYPE UCL_T_LP_RCALL, " | |||
lv_eo_callback | TYPE IF_UC_LP_CALLBACK, " | |||
lv_et_opt_fcode | TYPE UCL_TS_LP_OPT_FCODE, " | |||
lv_e_callback_user_command | TYPE UC_LP_FORM, " | |||
lv_e_callback_recurse | TYPE UC_FLG, " | |||
lv_e_callback_status | TYPE UC_LP_FORM, " | |||
lv_eo_model | TYPE IF_UC_MODEL, " | |||
lv_et_val_deriv | TYPE UCL_TS_LP_VAL_DERIV, " | |||
lv_e_consist_check | TYPE UC_LP_FLG, " SPACE | |||
lv_ct_ffix | TYPE UCL_T_LP_FFIX, " | |||
lv_e_tab_struct | TYPE UC_LP_TABLE, " | |||
lv_et_context | TYPE UC0_TS_VALUE, " | |||
lv_et_layout_other | TYPE UCL_T_LOG_LAYOUT_OTHER, " | |||
lv_eo_log | TYPE CL_UC_LOG, " | |||
lv_et_log_other | TYPE UCL_TS_LOG_INFO, " | |||
lv_ct_fused | TYPE UCL_TS_LP_FUSED, " | |||
lv_e_hlp_struct | TYPE UC_LP_TABLE, " | |||
lv_et_data | TYPE TABLE, " | |||
lv_et_list | TYPE UCL_TS_LP_LIST, " | |||
lv_et_fdisp | TYPE UCL_TS_LP_FDISP, " | |||
lv_et_kdisp | TYPE UCL_TS_LP_KDISP, " | |||
lv_et_kcorr | TYPE UCL_TS_LP_KCORR, " | |||
lv_et_blist | TYPE UCL_TS_LP_BLIST. " |
  CALL FUNCTION 'UC_TREE_DISPLAY' "Tree Display |
EXPORTING | ||
E_TITLE | = lv_e_title | |
ET_MDATA | = lv_et_mdata | |
ET_RCALL | = lv_et_rcall | |
EO_CALLBACK | = lv_eo_callback | |
ET_OPT_FCODE | = lv_et_opt_fcode | |
E_CALLBACK_USER_COMMAND | = lv_e_callback_user_command | |
E_CALLBACK_RECURSE | = lv_e_callback_recurse | |
E_CALLBACK_STATUS | = lv_e_callback_status | |
EO_MODEL | = lv_eo_model | |
ET_VAL_DERIV | = lv_et_val_deriv | |
E_CONSIST_CHECK | = lv_e_consist_check | |
E_TAB_STRUCT | = lv_e_tab_struct | |
ET_CONTEXT | = lv_et_context | |
ET_LAYOUT_OTHER | = lv_et_layout_other | |
EO_LOG | = lv_eo_log | |
ET_LOG_OTHER | = lv_et_log_other | |
E_HLP_STRUCT | = lv_e_hlp_struct | |
ET_DATA | = lv_et_data | |
ET_LIST | = lv_et_list | |
ET_FDISP | = lv_et_fdisp | |
ET_KDISP | = lv_et_kdisp | |
ET_KCORR | = lv_et_kcorr | |
ET_BLIST | = lv_et_blist | |
CHANGING | ||
CT_WORK | = lv_ct_work | |
CT_FFIX | = lv_ct_ffix | |
CT_FUSED | = lv_ct_fused | |
. " UC_TREE_DISPLAY |
ABAP code using 7.40 inline data declarations to call FM UC_TREE_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.DATA(ld_e_consist_check) | = ' '. | |||
Search for further information about these or an SAP related objects