SAP TWBM_CONVERT_NODES Function Module for









TWBM_CONVERT_NODES is a standard twbm convert nodes 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 twbm convert nodes FM, simply by entering the name TWBM_CONVERT_NODES into the relevant SAP transaction such as SE37 or SE38.

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



Function TWBM_CONVERT_NODES 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 'TWBM_CONVERT_NODES'"
EXPORTING
* NODE_TABLE_TEXT = "Hierarchy Maintenance Text Interface Table
* CHECKBOX = ' ' "Single-Character Flag
* DEFAULT_TRANSACTION = ' ' "Single-Character Flag
* DISPLAY_MODE = 'D' "Display mode
NODE_TABLE = "Table with Nodes
DROP_HANDLE = "
DRAG_HANDLE = "

IMPORTING
ITEM_TABLE = "Column Tree Model: Table of Node Key Plus Item

CHANGING
NODE_TABLE_CT = "Column Tree Model. Node Table

TABLES
* SELECTED_NODES = "
* LIST_OF_REFERENCES = "List of References to Structure Items
DISPLAY_TEST_OBJECTS = "TWBM: Test Objects
* TYPES_AND_GUIDS = "TWBM: Types and GUIDs of Browser Hierarchy

EXCEPTIONS
ERROR_OCCURED = 1
.



IMPORTING Parameters details for TWBM_CONVERT_NODES

NODE_TABLE_TEXT - Hierarchy Maintenance Text Interface Table

Data type: HIER_TEXTS_T
Optional: Yes
Call by Reference: Yes

CHECKBOX - Single-Character Flag

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

DEFAULT_TRANSACTION - Single-Character Flag

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

DISPLAY_MODE - Display mode

Data type: CHAR1
Default: 'D'
Optional: Yes
Call by Reference: Yes

NODE_TABLE - Table with Nodes

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

DROP_HANDLE -

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

DRAG_HANDLE -

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

EXPORTING Parameters details for TWBM_CONVERT_NODES

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

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

CHANGING Parameters details for TWBM_CONVERT_NODES

NODE_TABLE_CT - Column Tree Model. Node Table

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

TABLES Parameters details for TWBM_CONVERT_NODES

SELECTED_NODES -

Data type: TTREEI
Optional: Yes
Call by Reference: Yes

LIST_OF_REFERENCES - List of References to Structure Items

Data type: HIER_REF
Optional: Yes
Call by Reference: Yes

DISPLAY_TEST_OBJECTS - TWBM: Test Objects

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

TYPES_AND_GUIDS - TWBM: Types and GUIDs of Browser Hierarchy

Data type: TWBMAN_TYPES_AND_GUIDS_TABTYP
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

ERROR_OCCURED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TWBM_CONVERT_NODES 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_item_table  TYPE TREEMCITAC, "   
lv_error_occured  TYPE TREEMCITAC, "   
lv_node_table_ct  TYPE TREEMCNOTA, "   
lt_selected_nodes  TYPE STANDARD TABLE OF TTREEI, "   
lv_node_table_text  TYPE HIER_TEXTS_T, "   
lv_checkbox  TYPE CHAR1, "   SPACE
lt_list_of_references  TYPE STANDARD TABLE OF HIER_REF, "   
lv_default_transaction  TYPE CHAR1, "   SPACE
lt_display_test_objects  TYPE STANDARD TABLE OF TWBMAN_TEST_OBJ_CHECKB_TABTYP, "   
lv_display_mode  TYPE CHAR1, "   'D'
lt_types_and_guids  TYPE STANDARD TABLE OF TWBMAN_TYPES_AND_GUIDS_TABTYP, "   
lv_node_table  TYPE HIER_IFACE_TAB, "   
lv_drop_handle  TYPE I, "   
lv_drag_handle  TYPE I. "   

  CALL FUNCTION 'TWBM_CONVERT_NODES'  "
    EXPORTING
         NODE_TABLE_TEXT = lv_node_table_text
         CHECKBOX = lv_checkbox
         DEFAULT_TRANSACTION = lv_default_transaction
         DISPLAY_MODE = lv_display_mode
         NODE_TABLE = lv_node_table
         DROP_HANDLE = lv_drop_handle
         DRAG_HANDLE = lv_drag_handle
    IMPORTING
         ITEM_TABLE = lv_item_table
    CHANGING
         NODE_TABLE_CT = lv_node_table_ct
    TABLES
         SELECTED_NODES = lt_selected_nodes
         LIST_OF_REFERENCES = lt_list_of_references
         DISPLAY_TEST_OBJECTS = lt_display_test_objects
         TYPES_AND_GUIDS = lt_types_and_guids
    EXCEPTIONS
        ERROR_OCCURED = 1
. " TWBM_CONVERT_NODES




ABAP code using 7.40 inline data declarations to call FM TWBM_CONVERT_NODES

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_checkbox) = ' '.
 
 
DATA(ld_default_transaction) = ' '.
 
 
DATA(ld_display_mode) = 'D'.
 
 
 
 
 


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!