SAP UMB_HI_GET_TREE_DATA Function Module for









UMB_HI_GET_TREE_DATA is a standard umb hi get tree data 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 umb hi get tree data FM, simply by entering the name UMB_HI_GET_TREE_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function UMB_HI_GET_TREE_DATA 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 'UMB_HI_GET_TREE_DATA'"
EXPORTING
* NODEKEY_PREFIX = "
* I_SCNOD_ONLY = "
* NODE_TEMPLATE = "Column Tree Model: Attributes of a Node
* ITEM1_TEMPLATE = "Column Tree Model: Item with Node Key
* ITEM2_TEMPLATE = "Column Tree Model: Item with Node Key
* ACTIV_AUTH = "Activity
* IH_DND_HI = "Behavior for Drag and Drop
* IH_DND_HI_W_SC = "Behavior for Drag and Drop
* IH_DND_HI_O_SC = "Behavior for Drag and Drop
* COMPRESS = "Flag (X or Blank)

IMPORTING
E_MAX_SCNOD = "
ET_NODES = "Column Tree Model. Node Table
ET_ITEMS = "Column Tree Model: Table of Node Key Plus Item
ET_HINODES = "Interface for Hierarchy
ET_SCNODES = "Scorecard Node Table

EXCEPTIONS
SCNOD_NOT_FOUND = 1
.



IMPORTING Parameters details for UMB_HI_GET_TREE_DATA

NODEKEY_PREFIX -

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

I_SCNOD_ONLY -

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

NODE_TEMPLATE - Column Tree Model: Attributes of a Node

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

ITEM1_TEMPLATE - Column Tree Model: Item with Node Key

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

ITEM2_TEMPLATE - Column Tree Model: Item with Node Key

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

ACTIV_AUTH - Activity

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

IH_DND_HI - Behavior for Drag and Drop

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

IH_DND_HI_W_SC - Behavior for Drag and Drop

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

IH_DND_HI_O_SC - Behavior for Drag and Drop

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

COMPRESS - Flag (X or Blank)

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

EXPORTING Parameters details for UMB_HI_GET_TREE_DATA

E_MAX_SCNOD -

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

ET_NODES - Column Tree Model. Node Table

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

ET_ITEMS - Column Tree Model: Table of Node Key Plus Item

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

ET_HINODES - Interface for Hierarchy

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

ET_SCNODES - Scorecard Node Table

Data type: UMB_YT_SCNODE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

SCNOD_NOT_FOUND - Node not Found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for UMB_HI_GET_TREE_DATA 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_e_max_scnod  TYPE UMB_Y_SCNOD, "   
lv_nodekey_prefix  TYPE STRING, "   
lv_scnod_not_found  TYPE STRING, "   
lv_i_scnod_only  TYPE UMB_Y_SCNOD, "   
lv_et_nodes  TYPE TREEMCNOTA, "   
lv_node_template  TYPE TREEMCNODT, "   
lv_et_items  TYPE TREEMCITAC, "   
lv_item1_template  TYPE TREEMCITEN, "   
lv_et_hinodes  TYPE UMB_YT_HINODE, "   
lv_item2_template  TYPE TREEMCITEN, "   
lv_activ_auth  TYPE ACTIV_AUTH, "   
lv_et_scnodes  TYPE UMB_YT_SCNODE, "   
lv_ih_dnd_hi  TYPE I, "   
lv_ih_dnd_hi_w_sc  TYPE I, "   
lv_ih_dnd_hi_o_sc  TYPE I, "   
lv_compress  TYPE AS4FLAG. "   

  CALL FUNCTION 'UMB_HI_GET_TREE_DATA'  "
    EXPORTING
         NODEKEY_PREFIX = lv_nodekey_prefix
         I_SCNOD_ONLY = lv_i_scnod_only
         NODE_TEMPLATE = lv_node_template
         ITEM1_TEMPLATE = lv_item1_template
         ITEM2_TEMPLATE = lv_item2_template
         ACTIV_AUTH = lv_activ_auth
         IH_DND_HI = lv_ih_dnd_hi
         IH_DND_HI_W_SC = lv_ih_dnd_hi_w_sc
         IH_DND_HI_O_SC = lv_ih_dnd_hi_o_sc
         COMPRESS = lv_compress
    IMPORTING
         E_MAX_SCNOD = lv_e_max_scnod
         ET_NODES = lv_et_nodes
         ET_ITEMS = lv_et_items
         ET_HINODES = lv_et_hinodes
         ET_SCNODES = lv_et_scnodes
    EXCEPTIONS
        SCNOD_NOT_FOUND = 1
. " UMB_HI_GET_TREE_DATA




ABAP code using 7.40 inline data declarations to call FM UMB_HI_GET_TREE_DATA

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!