Hi all,
I'm struggling with Drag&Drop right now.
I want to use Drag&Drop within the same ALV. (Is this possible? I think so.)
The ALV2 is set as a drag source (following Drag and Drop in Web Dynpro ABAP ALV) , which works fine (I can select a row and start moving it)
lr_avl_drag->create_drag_source_info(
EXPORTING
data = 'ALV2'
tags = 'alv1'
enabled = abap_true ).
The drop_row_fieldname is also set:
lr_avl_drop->set_drop_row_name_fieldname( 'NODEID' ). " Column name
lr_avl_drop->set_drop_row_name( '' ).
and the target info set on ALV2:
lr_avl_drop->create_drop_row_target_info(
EXPORTING
id = 'ALV2'
name = '00000001' "Value
tags = 'alv1'
enabled = abap_true ).
The Source-ALV is filled with values:
00000001
00000002
00000003
00000004
But I always get an error "Error in TABLE "SALV_WD_UIE_TABLE" of view "SALV_WD_TABLE.VIEW_TABLE": Property "dropOnRowName" contains value "0000002". But there is no DropTargetInfo in DropOnRowTarget-aggregation with this ID".
I know the error source is the line name = '00000001', but I have no idea how to fix it. What is this "name" for? Which value do I have to set to "name" to make the drag&drop work?
Do you have any advice?
Many thanks!
Best regards
Moritz