cancel
Showing results for 
Search instead for 
Did you mean: 

How to Drag and Drop between two ALV Tree controls

Former Member
0 Kudos
585

Hi friends,

i am trying to do a drag nodes from one tree control ( say Tree1) onto the nodes of a second tree control ( say Tree2).

The trees are getting displayed properly. I can drag the nodes of Tree1 onto Tree2. But the problem I am facing is -

Drag event of first tree is not getting invoked...

I have tried with the samples ALVDND* , but without results. Though examples do exist for dragging from a ALV Grid to a tree and vice versa, all these sample codes have failed while doing this drag n drop between two CL_GUI_ALV_TREEs.

How to Drag and Drop between two ALV Tree controls

I have -

- created the two tree controls,

- created the CL_DRAGDROP objects, assigned them to the nodes accordingly ( so i can drag from first n drop onto the second)

Any guesses/clues what else do i need to do ?

Thanks in adv

Steinn

View Entire Topic
anilsonesar
Explorer
0 Kudos

Hi,

Check these Reports

For Tree to Text editor : "RSDEMO_DRAG_DROP_EDIT_TREE"

For Tree to Tree : "SAPSIMPLE_TREE_DRAG_DROP_DEMO"

For Tree to Grid : "BCALV_GRID_DND_TREE"

for Drag and Drop on Grid

Check following reports :

" BCALV_DND_01"

" BCALV_DND_02 "

" BCALV_DND_03 "

" BCALV_DND_03 "

Regards,

Anil Sonesar