Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Tree Control: Drop without Drag

Former Member
0 Likes
571

Hello ABAP experts,

in my ALV tree control application I have a button "new node", which I would like to use to insert new nodes into the tree.

When I press the button, I want the pointer to change just like it does when doing drag and drop (except that there is no drag), until I double click one of the existing nodes. In that case the new node shall be inserted next to the selected node. What I do not want is that the user has to mark a node in advance.

Any idea if this drop without drag can be realised and how?

Eventuelly it suffices to change the pointer, Is that possible?

Thanks in advance,

Jürgen

Hello ABAP experts,

in my ALV tree control application I have a button "new node", which I would like to use to insert new nodes into the tree.

When I press the button, I want the pointer to change just like it does when doing drag and drop (except that there is no drag), until I double click one of the existing nodes. In that case the new node shall be inserted next to the selected node. What I do not want is that the user has to mark a node in advance.

Any idea if this drop without drag can be realised and how?

Eventuelly it suffices to change the pointer, Is that possible?

Thanks in advance,

Jürgen

2 REPLIES 2
Read only

Former Member
0 Likes
532

Changing pointer would mean communicating with operating system, probably activeX controls.

I think it would be easier to set a flag  and show information message in status bar when button is clicked.

Afterwards, you can handle double click event to get the location of double click, and insert new node.

New node insertion would happen only when flag is set. On every user command other than button click, flag value can be reset.

Read only

former_member209120
Active Contributor
0 Likes
532

Hi Juergen Bey,

See SAP DEMO Programs

BCALV_TREE_DND

BCALV_TREE_DND_MULTIPLE