SAP RS_TREE_MODIFY_NODE Function Module for









RS_TREE_MODIFY_NODE is a standard rs tree modify node 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 rs tree modify node FM, simply by entering the name RS_TREE_MODIFY_NODE into the relevant SAP transaction such as SE37 or SE38.

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



Function RS_TREE_MODIFY_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 'RS_TREE_MODIFY_NODE'"
EXPORTING
NODE_ID = "
* TEXT1 = 'NONE' "
* TLENGTH1 = '99' "
* TCOLOR1 = '9' "
* TEXT2 = 'NONE' "
* TLENGTH2 = '99' "
* TCOLOR2 = '9' "
* FORCE_PLUS = '9' "
* HIDE = '9' "
* NAME = 'NONE' "
* TYPE = 'NONE' "
* LINK = 'N' "
* NLENGTH = '99' "
* COLOR = '9' "
* TEXT = 'NONE' "
* TLENGTH = '99' "
* TCOLOR = '9' "

EXCEPTIONS
ID_NOT_FOUND = 1
.



IMPORTING Parameters details for RS_TREE_MODIFY_NODE

NODE_ID -

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

TEXT1 -

Data type: SNODETEXT-TEXT1
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TLENGTH1 -

Data type: SNODETEXT-TLENGTH1
Default: '99'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCOLOR1 -

Data type: SNODETEXT-TCOLOR1
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXT2 -

Data type: SNODETEXT-TEXT2
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TLENGTH2 -

Data type: SNODETEXT-TLENGTH2
Default: '99'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCOLOR2 -

Data type: SNODETEXT-TCOLOR2
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORCE_PLUS -

Data type: SNODETEXT-FORCE_PLUS
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

HIDE -

Data type: SNODETEXT-HIDE
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NAME -

Data type: SNODE-NAME
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TYPE -

Data type: SNODE-TYPE
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LINK -

Data type: SNODE-LINK
Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NLENGTH -

Data type: SNODETEXT-NLENGTH
Default: '99'
Optional: Yes
Call by Reference: No ( called with pass by value option)

COLOR -

Data type: SNODETEXT-COLOR
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXT -

Data type: SNODETEXT-TEXT
Default: 'NONE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TLENGTH -

Data type: SNODETEXT-TLENGTH
Default: '99'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCOLOR -

Data type: SNODETEXT-TCOLOR
Default: '9'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ID_NOT_FOUND -

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

Copy and paste ABAP code example for RS_TREE_MODIFY_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_node_id  TYPE SNODE-ID, "   
lv_id_not_found  TYPE SNODE, "   
lv_text1  TYPE SNODETEXT-TEXT1, "   'NONE'
lv_tlength1  TYPE SNODETEXT-TLENGTH1, "   '99'
lv_tcolor1  TYPE SNODETEXT-TCOLOR1, "   '9'
lv_text2  TYPE SNODETEXT-TEXT2, "   'NONE'
lv_tlength2  TYPE SNODETEXT-TLENGTH2, "   '99'
lv_tcolor2  TYPE SNODETEXT-TCOLOR2, "   '9'
lv_force_plus  TYPE SNODETEXT-FORCE_PLUS, "   '9'
lv_hide  TYPE SNODETEXT-HIDE, "   '9'
lv_name  TYPE SNODE-NAME, "   'NONE'
lv_type  TYPE SNODE-TYPE, "   'NONE'
lv_link  TYPE SNODE-LINK, "   'N'
lv_nlength  TYPE SNODETEXT-NLENGTH, "   '99'
lv_color  TYPE SNODETEXT-COLOR, "   '9'
lv_text  TYPE SNODETEXT-TEXT, "   'NONE'
lv_tlength  TYPE SNODETEXT-TLENGTH, "   '99'
lv_tcolor  TYPE SNODETEXT-TCOLOR. "   '9'

  CALL FUNCTION 'RS_TREE_MODIFY_NODE'  "
    EXPORTING
         NODE_ID = lv_node_id
         TEXT1 = lv_text1
         TLENGTH1 = lv_tlength1
         TCOLOR1 = lv_tcolor1
         TEXT2 = lv_text2
         TLENGTH2 = lv_tlength2
         TCOLOR2 = lv_tcolor2
         FORCE_PLUS = lv_force_plus
         HIDE = lv_hide
         NAME = lv_name
         TYPE = lv_type
         LINK = lv_link
         NLENGTH = lv_nlength
         COLOR = lv_color
         TEXT = lv_text
         TLENGTH = lv_tlength
         TCOLOR = lv_tcolor
    EXCEPTIONS
        ID_NOT_FOUND = 1
. " RS_TREE_MODIFY_NODE




ABAP code using 7.40 inline data declarations to call FM RS_TREE_MODIFY_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 ID FROM SNODE INTO @DATA(ld_node_id).
 
 
"SELECT single TEXT1 FROM SNODETEXT INTO @DATA(ld_text1).
DATA(ld_text1) = 'NONE'.
 
"SELECT single TLENGTH1 FROM SNODETEXT INTO @DATA(ld_tlength1).
DATA(ld_tlength1) = '99'.
 
"SELECT single TCOLOR1 FROM SNODETEXT INTO @DATA(ld_tcolor1).
DATA(ld_tcolor1) = '9'.
 
"SELECT single TEXT2 FROM SNODETEXT INTO @DATA(ld_text2).
DATA(ld_text2) = 'NONE'.
 
"SELECT single TLENGTH2 FROM SNODETEXT INTO @DATA(ld_tlength2).
DATA(ld_tlength2) = '99'.
 
"SELECT single TCOLOR2 FROM SNODETEXT INTO @DATA(ld_tcolor2).
DATA(ld_tcolor2) = '9'.
 
"SELECT single FORCE_PLUS FROM SNODETEXT INTO @DATA(ld_force_plus).
DATA(ld_force_plus) = '9'.
 
"SELECT single HIDE FROM SNODETEXT INTO @DATA(ld_hide).
DATA(ld_hide) = '9'.
 
"SELECT single NAME FROM SNODE INTO @DATA(ld_name).
DATA(ld_name) = 'NONE'.
 
"SELECT single TYPE FROM SNODE INTO @DATA(ld_type).
DATA(ld_type) = 'NONE'.
 
"SELECT single LINK FROM SNODE INTO @DATA(ld_link).
DATA(ld_link) = 'N'.
 
"SELECT single NLENGTH FROM SNODETEXT INTO @DATA(ld_nlength).
DATA(ld_nlength) = '99'.
 
"SELECT single COLOR FROM SNODETEXT INTO @DATA(ld_color).
DATA(ld_color) = '9'.
 
"SELECT single TEXT FROM SNODETEXT INTO @DATA(ld_text).
DATA(ld_text) = 'NONE'.
 
"SELECT single TLENGTH FROM SNODETEXT INTO @DATA(ld_tlength).
DATA(ld_tlength) = '99'.
 
"SELECT single TCOLOR FROM SNODETEXT INTO @DATA(ld_tcolor).
DATA(ld_tcolor) = '9'.
 


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!