SAP BM_EU_TREE_CONSTRUCT Function Module for









BM_EU_TREE_CONSTRUCT is a standard bm eu tree construct 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 bm eu tree construct FM, simply by entering the name BM_EU_TREE_CONSTRUCT into the relevant SAP transaction such as SE37 or SE38.

Function Group: SF06
Program Name: SAPLSF06
Main Program: SAPLSF06
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BM_EU_TREE_CONSTRUCT 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 'BM_EU_TREE_CONSTRUCT'"
EXPORTING
* ROOT_STRUCTURE = ' ' "GUID for Structure
* LANGUAGE = SY-LANGU "SAP R/3 System, Current Language
* COLORS = 'X' "
* WITH_FUNCTIONS = ' ' "Display functions
* WITH_PROCESS_VARIANTS = ' ' "
* WITH_OBJECT_COMPONENTS = ' ' "
* WITH_OBJECT_VARIANTS = ' ' "
* CURRENT_NODE = "Obsolete
* CONSTRUCT_TREE = ' ' "
* MODEL_TYP = 'HT' "Obsolete
* IGNORE_SFW_SWITCHES = ' ' "
* ROOT_NODE = "Top node
* LEVELS = 0 "Function hierarchy levels
* DISPLAY_NAME = ' ' "Display node number
* DISPLAY_TEXT = ' ' "Display application ID
* DISPLAY_TEXT1 = 'X' "Display 1st icon column
* DISPLAY_TEXT2 = ' ' "Display 2nd icon column
* DISPLAY_TEXT3 = ' ' "
* DISPLAY_TEXT4 = 'X' "

IMPORTING
PARAMS = "

TABLES
NODETAB = "Nodes with texts
.



IMPORTING Parameters details for BM_EU_TREE_CONSTRUCT

ROOT_STRUCTURE - GUID for Structure

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

LANGUAGE - SAP R/3 System, Current Language

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

COLORS -

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

WITH_FUNCTIONS - Display functions

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

WITH_PROCESS_VARIANTS -

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

WITH_OBJECT_COMPONENTS -

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

WITH_OBJECT_VARIANTS -

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

CURRENT_NODE - Obsolete

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

CONSTRUCT_TREE -

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

MODEL_TYP - Obsolete

Data type: DF41S-MODEL_TYP
Default: 'HT'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IGNORE_SFW_SWITCHES -

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

ROOT_NODE - Top node

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

LEVELS - Function hierarchy levels

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

DISPLAY_NAME - Display node number

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

DISPLAY_TEXT - Display application ID

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

DISPLAY_TEXT1 - Display 1st icon column

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

DISPLAY_TEXT2 - Display 2nd icon column

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

DISPLAY_TEXT3 -

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

DISPLAY_TEXT4 -

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

EXPORTING Parameters details for BM_EU_TREE_CONSTRUCT

PARAMS -

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

TABLES Parameters details for BM_EU_TREE_CONSTRUCT

NODETAB - Nodes with texts

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

Copy and paste ABAP code example for BM_EU_TREE_CONSTRUCT 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_params  TYPE DFPARAM, "   
lt_nodetab  TYPE STANDARD TABLE OF SNODETEXT, "   
lv_root_structure  TYPE TTREE-ID, "   SPACE
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_colors  TYPE UFFLAG, "   'X'
lv_with_functions  TYPE UFFLAG, "   SPACE
lv_with_process_variants  TYPE UFFLAG, "   SPACE
lv_with_object_components  TYPE UFFLAG, "   SPACE
lv_with_object_variants  TYPE UFFLAG, "   SPACE
lv_current_node  TYPE BMOBJECT-ID, "   
lv_construct_tree  TYPE UFFLAG, "   SPACE
lv_model_typ  TYPE DF41S-MODEL_TYP, "   'HT'
lv_ignore_sfw_switches  TYPE CHAR1, "   SPACE
lv_root_node  TYPE BMOBJECT-ID, "   
lv_levels  TYPE I, "   0
lv_display_name  TYPE UFFLAG, "   SPACE
lv_display_text  TYPE UFFLAG, "   SPACE
lv_display_text1  TYPE UFFLAG, "   'X'
lv_display_text2  TYPE UFFLAG, "   SPACE
lv_display_text3  TYPE UFFLAG, "   SPACE
lv_display_text4  TYPE UFFLAG. "   'X'

  CALL FUNCTION 'BM_EU_TREE_CONSTRUCT'  "
    EXPORTING
         ROOT_STRUCTURE = lv_root_structure
         LANGUAGE = lv_language
         COLORS = lv_colors
         WITH_FUNCTIONS = lv_with_functions
         WITH_PROCESS_VARIANTS = lv_with_process_variants
         WITH_OBJECT_COMPONENTS = lv_with_object_components
         WITH_OBJECT_VARIANTS = lv_with_object_variants
         CURRENT_NODE = lv_current_node
         CONSTRUCT_TREE = lv_construct_tree
         MODEL_TYP = lv_model_typ
         IGNORE_SFW_SWITCHES = lv_ignore_sfw_switches
         ROOT_NODE = lv_root_node
         LEVELS = lv_levels
         DISPLAY_NAME = lv_display_name
         DISPLAY_TEXT = lv_display_text
         DISPLAY_TEXT1 = lv_display_text1
         DISPLAY_TEXT2 = lv_display_text2
         DISPLAY_TEXT3 = lv_display_text3
         DISPLAY_TEXT4 = lv_display_text4
    IMPORTING
         PARAMS = lv_params
    TABLES
         NODETAB = lt_nodetab
. " BM_EU_TREE_CONSTRUCT




ABAP code using 7.40 inline data declarations to call FM BM_EU_TREE_CONSTRUCT

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 ID FROM TTREE INTO @DATA(ld_root_structure).
DATA(ld_root_structure) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
DATA(ld_colors) = 'X'.
 
DATA(ld_with_functions) = ' '.
 
DATA(ld_with_process_variants) = ' '.
 
DATA(ld_with_object_components) = ' '.
 
DATA(ld_with_object_variants) = ' '.
 
"SELECT single ID FROM BMOBJECT INTO @DATA(ld_current_node).
 
DATA(ld_construct_tree) = ' '.
 
"SELECT single MODEL_TYP FROM DF41S INTO @DATA(ld_model_typ).
DATA(ld_model_typ) = 'HT'.
 
DATA(ld_ignore_sfw_switches) = ' '.
 
"SELECT single ID FROM BMOBJECT INTO @DATA(ld_root_node).
 
 
DATA(ld_display_name) = ' '.
 
DATA(ld_display_text) = ' '.
 
DATA(ld_display_text1) = 'X'.
 
DATA(ld_display_text2) = ' '.
 
DATA(ld_display_text3) = ' '.
 
DATA(ld_display_text4) = 'X'.
 


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!