SAP DRAG_DROP_EVENT_MOVE_NODE Function Module for









DRAG_DROP_EVENT_MOVE_NODE is a standard drag drop event move 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 move node FM, simply by entering the name DRAG_DROP_EVENT_MOVE_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_MOVE_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_MOVE_NODE'"
EXPORTING
OBJECT_ID = "
TARGET_ID = "
* ADD_AS_FIRST_NODE_IN_FOLDER = 'X' "
* MOVE_MODE = ' ' "

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



IMPORTING Parameters details for DRAG_DROP_EVENT_MOVE_NODE

OBJECT_ID -

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

TARGET_ID -

Data type: AGR_SHIER-OBJECT_ID
Optional: No
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)

MOVE_MODE -

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

TABLES Parameters details for DRAG_DROP_EVENT_MOVE_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)

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_MOVE_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_object_id  TYPE AGR_SHIER-OBJECT_ID, "   
lt_menu_hierarchy  TYPE STANDARD TABLE OF AGR_SHIER, "   
lv_target_id  TYPE AGR_SHIER-OBJECT_ID, "   
lt_menu_texts  TYPE STANDARD TABLE OF AGR_SHIERT, "   
lt_changed_nodes  TYPE STANDARD TABLE OF AGR_SHIER, "   
lv_add_as_first_node_in_folder  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lv_move_mode  TYPE SMENSAPNEW-CUSTOMIZED. "   SPACE

  CALL FUNCTION 'DRAG_DROP_EVENT_MOVE_NODE'  "
    EXPORTING
         OBJECT_ID = lv_object_id
         TARGET_ID = lv_target_id
         ADD_AS_FIRST_NODE_IN_FOLDER = lv_add_as_first_node_in_folder
         MOVE_MODE = lv_move_mode
    TABLES
         MENU_HIERARCHY = lt_menu_hierarchy
         MENU_TEXTS = lt_menu_texts
         CHANGED_NODES = lt_changed_nodes
. " DRAG_DROP_EVENT_MOVE_NODE




ABAP code using 7.40 inline data declarations to call FM DRAG_DROP_EVENT_MOVE_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_object_id).
 
 
"SELECT single OBJECT_ID FROM AGR_SHIER INTO @DATA(ld_target_id).
 
 
 
"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 CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_move_mode).
DATA(ld_move_mode) = ' '.
 


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!