cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to drop an image object onto an ALV.

Former Member
0 Kudos

Hi ,

I have created an Image with value 'OBJECT_IMAGE' for the tag in the Drag Source Info.

I have created an ALV and declared it as a drop target by calling the 'create_drop_row_target_info' using the ALV configuration model and passed in the value 'OBJECT_*' for the tag.

Im not able to drag the image onto the ALV and trigger my corresponding event.

I have also declared the event handler in the methods list.

Kindly help. I need to drag this image into the ALV and populate my ALV with data.

Warm regards,

Newton.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Newton ,

check out this article , you can get an clear idea .

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09cc9d7-5403-2d10-f6a1-8705ea280...

regards

chinnaiya P

Edited by: chinnaiya pandiyan on May 10, 2010 11:57 AM

Former Member
0 Kudos

Hi All,

Thanks for your replies.

Im able to drag my image source onto a table , but unable to do it on my ALV.

I have reused component SALV_WD_TABLE to display the ALV.

Warm regards,

Newton.

Former Member
0 Kudos

Have you check the method BUILD_ALV in the wiki code??

ChrisPaine
Active Contributor
0 Kudos

Hi Newton,

in this [thread:|;

>

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.

I guess you might just have to wait until EhP2.

ChrisPaine
Active Contributor
0 Kudos

@SANKET

You have to admire how much effort you put in to making suggestions - But in this case it is pretty clear that the OP does

not want to show a column with an image - he wants to enable the drag and drop functionality! What part of the Wiki deals with that?

Former Member
0 Kudos

HI Chris ,

Im working on Netweaver 7.02.

I have used the following code to enable the drop feature in my ALV.

*----


*

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv_scarr2( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

lo_cmp_usage->create_component( ).

ENDIF.

DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .

lo_interfacecontroller = wd_this->wd_cpifc_alv_scarr2( ).

DATA lv_value TYPE REF TO cl_salv_wd_config_table.

lv_value = lo_interfacecontroller->get_model(

).

DATA : LIF_DROP_TARGET_INFO TYPE REF TO IF_SALV_WD_DROP_TARGET_INFO.

DATA : LV_STRING TYPE STRING VALUE 'ALV_SCARR2'.

CALL METHOD lv_value->if_salv_wd_drag_and_drop~create_drop_row_target_info

EXPORTING

id = LV_STRING

name = 'IMAGE'

tags = 'OBJECT_*'

enabled = 'X'

receiving

value = LIF_DROP_TARGET_INFO.

*----


*

Regards,

Newton.

ChrisPaine
Active Contributor
0 Kudos

Hi Newton,

I'm afraid you're one enhancement pack ahead of the rest of us mere mortals - to quote a famous theme song "we want ramp-up but our company does not..." - but as you must be part of ramp-up do you not have special support from SAP for issues like this? - I think that's the whole point of ramp-up!

Otherwise - hopefully there are some other people out there - Thomas Jung???? who might have more experience with the 7.02 capabilities.

Sorry I can't help -

Chris

Former Member
0 Kudos

Thanks Chris ,

How do i direct this question to Thomas Jung ?

Regards,

Newton.

ChrisPaine
Active Contributor
0 Kudos

Hi - Thomas and also Manas who both would seem to have access to 7.02 systems often respond to questions in this forum - I would just wait and hope!

Former Member
0 Kudos

Have a look on this [Document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09cc9d7-5403-2d10-f6a1-8705ea280c4e?quicklink=index&overridelayout=true] by Anand Kotle. In this Doc. he provide the Drag & drop functionality in simple WD ABAP applications.

I don't have any idea on Drag & drop functionality with ALV. If someone have some idea on ALV Drag & drop functionality within WD ABAP. Please share it with Forum.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I created an example drag and drop with ALV in my system that also tries to drag an image onto the ALV. It fails as well and I receive a JavaScript error (oSegmentsVisibleRect is null or not an object) on mouse over to the ALV during the drag. I am running 7.02 SP3 with UR version 7.30.1.10.0.

You will most likely want to open an internal support ticket to report this problem to development.

Former Member
0 Kudos

Hi Thomas ,

Thanks for your reply.

I work in SAPLabs India and we have a CSS system for raising tickets.

Is there any standard component for raising internal error messages that would route this message to the appropriate development team ?

Regards,

Newton.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The component for Web Dynpro ABAP is BC-WD-ABA.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Newton,

Check the Method BUILD_ALV in this [Wiki|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-UsingUIelementsinALVcomponentcells] . In this method they set the Image in a Alv table column.

Hope it helps you.