SAP CMS_ANL_UI_BUILD_NODE Function Module for Build Nodes of the Overview List tree
CMS_ANL_UI_BUILD_NODE is a standard cms anl ui build node SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Build Nodes of the Overview List tree 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 cms anl ui build node FM, simply by entering the name CMS_ANL_UI_BUILD_NODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMS_ANL_UI_OVR
Program Name: SAPLCMS_ANL_UI_OVR
Main Program: SAPLCMS_ANL_UI_OVR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CMS_ANL_UI_BUILD_NODE 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 'CMS_ANL_UI_BUILD_NODE'"Build Nodes of the Overview List tree.
EXPORTING
* I_ITEM_IMAGE = "Tree Control: Icon / Image
* I_ITEM9 = "
* I_ITEM10 = "
* I_ITEM11 = "
* I_ITEM12 = "
* I_ITEM13 = "Text for tooltips
I_PARENT_NODEKEY = "Tree Model: Key of a node
* I_CHILD_NODEKEY = "Tree Model: Key of a node
* I_FOLDER = ' ' "Indicator
* I_EXPANDER = ' ' "Indicator
* I_FLD1_LENGTH = "Natural number
* I_ITEM1 = "
* I_FLD2_LENGTH = "Natural number
* I_FLD3_LENGTH = "Natural number
* I_FLD4_LENGTH = "Natural number
* I_FLD5_LENGTH = "Natural number
* I_FLD6_LENGTH = "Natural number
* I_FLD7_LENGTH = "Natural number
* I_FLD8_LENGTH = "Natural number
* I_ITEM2 = "
* I_ITEM3 = "
* I_ITEM4 = "Calculations Result Amount
* I_ITEM5 = "
* I_ITEM6 = "
* I_ITEM7 = "
* I_ITEM8 = "
IMPORTING
E_TAB_RC = "Return Code and corresponding Message
IMPORTING Parameters details for CMS_ANL_UI_BUILD_NODE
I_ITEM_IMAGE - Tree Control: Icon / Image
Data type: TREEMLITEM-T_IMAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM9 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM10 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM11 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM12 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM13 - Text for tooltips
Data type: TREEMLITEM-TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARENT_NODEKEY - Tree Model: Key of a node
Data type: TM_NODEKEYOptional: No
Call by Reference: No ( called with pass by value option)
I_CHILD_NODEKEY - Tree Model: Key of a node
Data type: TM_NODEKEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FOLDER - Indicator
Data type: CMS_DTE_FLGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EXPANDER - Indicator
Data type: CMS_DTE_FLGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD1_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM1 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD2_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD3_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD4_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD5_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD6_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD7_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLD8_LENGTH - Natural number
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM2 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM3 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM4 - Calculations Result Amount
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM5 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM6 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM7 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITEM8 -
Data type: ANYOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMS_ANL_UI_BUILD_NODE
E_TAB_RC - Return Code and corresponding Message
Data type: CMS_TAB_MSG_COL_MESSAGEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMS_ANL_UI_BUILD_NODE 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_tab_rc | TYPE CMS_TAB_MSG_COL_MESSAGE, " | |||
| lv_i_item_image | TYPE TREEMLITEM-T_IMAGE, " | |||
| lv_i_item9 | TYPE ANY, " | |||
| lv_i_item10 | TYPE ANY, " | |||
| lv_i_item11 | TYPE ANY, " | |||
| lv_i_item12 | TYPE ANY, " | |||
| lv_i_item13 | TYPE TREEMLITEM-TEXT, " | |||
| lv_i_parent_nodekey | TYPE TM_NODEKEY, " | |||
| lv_i_child_nodekey | TYPE TM_NODEKEY, " | |||
| lv_i_folder | TYPE CMS_DTE_FLG, " ' ' | |||
| lv_i_expander | TYPE CMS_DTE_FLG, " ' ' | |||
| lv_i_fld1_length | TYPE INT4, " | |||
| lv_i_item1 | TYPE ANY, " | |||
| lv_i_fld2_length | TYPE INT4, " | |||
| lv_i_fld3_length | TYPE INT4, " | |||
| lv_i_fld4_length | TYPE INT4, " | |||
| lv_i_fld5_length | TYPE INT4, " | |||
| lv_i_fld6_length | TYPE INT4, " | |||
| lv_i_fld7_length | TYPE INT4, " | |||
| lv_i_fld8_length | TYPE INT4, " | |||
| lv_i_item2 | TYPE ANY, " | |||
| lv_i_item3 | TYPE ANY, " | |||
| lv_i_item4 | TYPE ANY, " | |||
| lv_i_item5 | TYPE ANY, " | |||
| lv_i_item6 | TYPE ANY, " | |||
| lv_i_item7 | TYPE ANY, " | |||
| lv_i_item8 | TYPE ANY. " |
|   CALL FUNCTION 'CMS_ANL_UI_BUILD_NODE' "Build Nodes of the Overview List tree |
| EXPORTING | ||
| I_ITEM_IMAGE | = lv_i_item_image | |
| I_ITEM9 | = lv_i_item9 | |
| I_ITEM10 | = lv_i_item10 | |
| I_ITEM11 | = lv_i_item11 | |
| I_ITEM12 | = lv_i_item12 | |
| I_ITEM13 | = lv_i_item13 | |
| I_PARENT_NODEKEY | = lv_i_parent_nodekey | |
| I_CHILD_NODEKEY | = lv_i_child_nodekey | |
| I_FOLDER | = lv_i_folder | |
| I_EXPANDER | = lv_i_expander | |
| I_FLD1_LENGTH | = lv_i_fld1_length | |
| I_ITEM1 | = lv_i_item1 | |
| I_FLD2_LENGTH | = lv_i_fld2_length | |
| I_FLD3_LENGTH | = lv_i_fld3_length | |
| I_FLD4_LENGTH | = lv_i_fld4_length | |
| I_FLD5_LENGTH | = lv_i_fld5_length | |
| I_FLD6_LENGTH | = lv_i_fld6_length | |
| I_FLD7_LENGTH | = lv_i_fld7_length | |
| I_FLD8_LENGTH | = lv_i_fld8_length | |
| I_ITEM2 | = lv_i_item2 | |
| I_ITEM3 | = lv_i_item3 | |
| I_ITEM4 | = lv_i_item4 | |
| I_ITEM5 | = lv_i_item5 | |
| I_ITEM6 | = lv_i_item6 | |
| I_ITEM7 | = lv_i_item7 | |
| I_ITEM8 | = lv_i_item8 | |
| IMPORTING | ||
| E_TAB_RC | = lv_e_tab_rc | |
| . " CMS_ANL_UI_BUILD_NODE | ||
ABAP code using 7.40 inline data declarations to call FM CMS_ANL_UI_BUILD_NODE
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 T_IMAGE FROM TREEMLITEM INTO @DATA(ld_i_item_image). | ||||
| "SELECT single TEXT FROM TREEMLITEM INTO @DATA(ld_i_item13). | ||||
| DATA(ld_i_folder) | = ' '. | |||
| DATA(ld_i_expander) | = ' '. | |||
Search for further information about these or an SAP related objects