cancel
Showing results for 
Search instead for 
Did you mean: 

How to Drag and drop Between ALVs

Former Member
0 Kudos

Hello Experts,

How to drog and drop from one alv to another alv. Is it possible? Please suggest me..

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Drag and Drop with ALV is not possible until NetWeaver 7.02. If you are on NetWeaver 7.01 you can do drag and drop with the regular table UI element, but not with the ALV.

Former Member
0 Kudos

Hi Thomas,

In case of simple table how can we do that.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can read about Drag and Drop in WDA 7.01 in the online help:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a5/bf47414eca430794189fbb5919cc2f/frameset.htm

There is also a test/example application that you can study:

WDR_TEST_DRAG_AND_DROP

Former Member
0 Kudos

Hi Thomas ,

Im working on using a Drag & Drop in a Web Dynpro ALV Tree. I have declared my target alv as a Drop Source , but now im unable to figure out how to trigger an event on the drop to change the contents of my target table.

Warm regards,

Newton.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

In NetWeaver 7.01 the table has onDrop events, but these events are not exposed via the ALV. It is not until NetWeaver 7.02 that drag and drop is extended to the ALV.

Former Member
0 Kudos

Hi Thomas ,

Thanks for your reply.

Im sorry , i forgot to mention that im working n NetWeaver 7.02.

Im not able to figure out where to implement the handler for the ON_DROP event in the ALV.

Is there no such event handler in the ALV Configuration Model ?

How do i code the event handler implementation for a drop event on my ALV ?

Thanks.

Newton.

Edited by: Newton Bruno Barretto on May 8, 2010 1:34 PM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Here is the online help for ALV Drag and Drop in 7.02:

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/d7/489fc6b04d43058ff971557b7955b8/frameset.htm

>Im not able to figure out where to implement the handler for the ON_DROP event in the ALV.

ON_DROP is a standard event exposed by the ALV like any other event. If you don't see it in the list, then you probably aren't on a 7.02 system.

http://www.flickr.com/photos/tjung/4588345949/

Former Member
0 Kudos

Hi Thomas,

Thanks for the screenshot.

Im a little new to this .

Could you please provide a few steps to describe how you got the screen which you have showed in the screenshot.

Warm regards,

Newton.

Former Member
0 Kudos

Hi Thomas,

Thanks for all the help.

I managed to find a way to the screenshot.

Warm regards,

Newton.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Go to your Web Dynpro component that is hosting the ALV component. Go to one of the controllers - probably the component controller. On the properties tab Used Component/Controller reference for the ALV component. Now go to the methods tab. Create a method of type Event Handler. Choose the value help on the event column and all events of all referenced Components/Controllers will be displayed (this is the screen I shared before). Chose the event that you want to associate with your event handler method.

Former Member
0 Kudos

Thanks a lot Thomas

Former Member
0 Kudos

HI,

please clarify ur requirement in more detail.

what u want to drag and drop in one alv to another?

Former Member
0 Kudos

Hi Pankaj,

Thanks for ur reply.I have two grids.The first grid have set of values.I want to drag selected entry in first grid to second grid. For example


First grid             Second grid
Value1
Value2
Value3


First grid              Second grid
Value1                     Value2
Value3

Is it possible?

Thanks.

Former Member
0 Kudos

Hi,

as per my knowledge drag and drop is not possible.

but on click of a button u can do it.