SAP DRAG_DROP_EVENT_ADD_NODE Function Module for









DRAG_DROP_EVENT_ADD_NODE is a standard drag drop event add 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 drag drop event add node FM, simply by entering the name DRAG_DROP_EVENT_ADD_NODE into the relevant SAP transaction such as SE37 or SE38.

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



Function DRAG_DROP_EVENT_ADD_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 'DRAG_DROP_EVENT_ADD_NODE'"
EXPORTING
TARGET_ID = "
* DESCRIPTION = ' ' "
* NODE_INFORMATION = ' ' "
* TEXT = ' ' "
* LANGUAGE = SY-LANGU "
* ADD_AS_FIRST_NODE_IN_FOLDER = 'X' "
* NODE_IS_FOLDER = ' ' "
* ICON = ' ' "
* FLAGS = ' ' "
* APPL_ALIAS = "

IMPORTING
NEW_ID = "

TABLES
MENU_HIERARCHY = "
MENU_TEXTS = "
* TEXTS_TO_CHANGE = "
* CHANGED_NODES = "
.



IMPORTING Parameters details for DRAG_DROP_EVENT_ADD_NODE

TARGET_ID -

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

DESCRIPTION -

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

NODE_INFORMATION -

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

TEXT -

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

LANGUAGE -

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

ADD_AS_FIRST_NODE_IN_FOLDER -

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

NODE_IS_FOLDER -

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

ICON -

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

FLAGS -

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

APPL_ALIAS -

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

EXPORTING Parameters details for DRAG_DROP_EVENT_ADD_NODE

NEW_ID -

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

TABLES Parameters details for DRAG_DROP_EVENT_ADD_NODE

MENU_HIERARCHY -

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

MENU_TEXTS -

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

TEXTS_TO_CHANGE -

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

CHANGED_NODES -

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

Copy and paste ABAP code example for DRAG_DROP_EVENT_ADD_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_new_id  TYPE AGR_SHIER-OBJECT_ID, "   
lv_target_id  TYPE AGR_SHIER-OBJECT_ID, "   
lt_menu_hierarchy  TYPE STANDARD TABLE OF AGR_SHIER, "   
lv_description  TYPE AGR_SHIERT-DESCRIPTION, "   SPACE
lt_menu_texts  TYPE STANDARD TABLE OF AGR_SHIERT, "   
lv_node_information  TYPE AGR_STRING, "   SPACE
lv_text  TYPE AGR_SHIERT-TEXT, "   SPACE
lt_texts_to_change  TYPE STANDARD TABLE OF AGR_SPRTXT, "   
lv_language  TYPE AGR_SHIERT-SPRAS, "   SY-LANGU
lt_changed_nodes  TYPE STANDARD TABLE OF AGR_SHIER, "   
lv_add_as_first_node_in_folder  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lv_node_is_folder  TYPE AGR_SHIER-FOLDER, "   SPACE
lv_icon  TYPE AGR_SHIER-ICON, "   SPACE
lv_flags  TYPE AGR_SHIER-FLAGS, "   SPACE
lv_appl_alias  TYPE AGR_SHIER-APPL_ALIAS. "   

  CALL FUNCTION 'DRAG_DROP_EVENT_ADD_NODE'  "
    EXPORTING
         TARGET_ID = lv_target_id
         DESCRIPTION = lv_description
         NODE_INFORMATION = lv_node_information
         TEXT = lv_text
         LANGUAGE = lv_language
         ADD_AS_FIRST_NODE_IN_FOLDER = lv_add_as_first_node_in_folder
         NODE_IS_FOLDER = lv_node_is_folder
         ICON = lv_icon
         FLAGS = lv_flags
         APPL_ALIAS = lv_appl_alias
    IMPORTING
         NEW_ID = lv_new_id
    TABLES
         MENU_HIERARCHY = lt_menu_hierarchy
         MENU_TEXTS = lt_menu_texts
         TEXTS_TO_CHANGE = lt_texts_to_change
         CHANGED_NODES = lt_changed_nodes
. " DRAG_DROP_EVENT_ADD_NODE




ABAP code using 7.40 inline data declarations to call FM DRAG_DROP_EVENT_ADD_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 OBJECT_ID FROM AGR_SHIER INTO @DATA(ld_new_id).
 
"SELECT single OBJECT_ID FROM AGR_SHIER INTO @DATA(ld_target_id).
 
 
"SELECT single DESCRIPTION FROM AGR_SHIERT INTO @DATA(ld_description).
DATA(ld_description) = ' '.
 
 
DATA(ld_node_information) = ' '.
 
"SELECT single TEXT FROM AGR_SHIERT INTO @DATA(ld_text).
DATA(ld_text) = ' '.
 
 
"SELECT single SPRAS FROM AGR_SHIERT INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_add_as_first_node_in_folder).
DATA(ld_add_as_first_node_in_folder) = 'X'.
 
"SELECT single FOLDER FROM AGR_SHIER INTO @DATA(ld_node_is_folder).
DATA(ld_node_is_folder) = ' '.
 
"SELECT single ICON FROM AGR_SHIER INTO @DATA(ld_icon).
DATA(ld_icon) = ' '.
 
"SELECT single FLAGS FROM AGR_SHIER INTO @DATA(ld_flags).
DATA(ld_flags) = ' '.
 
"SELECT single APPL_ALIAS FROM AGR_SHIER INTO @DATA(ld_appl_alias).
 


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!