Skip to Content
avatar image
Former Member

Need sample code for drag and drop from one table cntrl1 to table cntrl2

Friends,

I am new to Webdynrpo Abap. I know basics. I want to implement the drag and drop feature

between two table controls. I searched the forum for sample code, but I could not find anything

related to it.

I would like to know if I can get sample code or what classes and functions I need

to use in order to implement the drag and drop feature between two table controls.

Thanks & Regards,

Sunny

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 24, 2009 at 04:21 PM

    The first thing to take important note of is that Drag and Drop in Web Dynpro is only available as of NetWeaver 7.0 Enhancement Package 1. If you are still on base 7.0, then you don't have the drag and drop features.

    That said, I recentely did an eLearning on the new Drag and Drop functionality. You can watch the video here:

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0760510-a2d5-2b10-de9f-d897679696e3

    And download the source from here:

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10e3efc0-0edb-2b10-2889-9406e17ff87c

    I don't do table to table, but the final exercise where I do Image to Table and Table to Image would be pretty easy to adapt to Table to Table drag and drop. Most of the heavy lifting in WD Drag and Drop is done via context manipulation anyway.

    There is also a test WD Components you can have a look at that should be there in your 7.01 systems - WDR_TEST_DRAG_AND_DROP.

    Here is also a link to the online help on the subject:

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2009 at 05:08 PM

    Hi Thomas,

    Thank you very much. I am trying to import those files. I will adapt your code

    to implement the drag and drop feature between two table controls.

    I will let you know if I am successful in doing it.

    Regards,

    Sunny

    Add comment
    10|10000 characters needed characters exceeded