cancel
Showing results for 
Search instead for 
Did you mean: 

Drag and Drop in ALV

Former Member
0 Kudos

Hi Experts,

I have two ALV tables. I want to drag the rows from one table to the other table. I am able to drag the row but some how the drop is not hapening.

The code in table 1:

  CALL METHOD lr_config->if_salv_wd_drag_and_drop~create_drag_source_info
    EXPORTING
      tags    = 'FROM_TABLE1'
      enabled = 'X'.


The code in table 2:


  CALL METHOD lr_config->if_salv_wd_drag_and_drop~create_drop_row_target_info
    EXPORTING
      id      = 'ALV_TABLE2'
      name    = 'FROM_TABLE1'
      tags    = 'FROM_TABLE1'
      enabled = 'X'.

I have created an event handler method for the drop but the method never gets called.

Pls help whats missing?

Thanks,

Pris.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Issue resolved. Had to add the following code:

  lr_config->if_salv_wd_drag_and_drop~set_drop_row_name( 'FROM_TABLE1' ).
  lr_config->if_salv_wd_drag_and_drop~set_drop_row_name_fieldname( '' ).

Thanks,

Pris.

Answers (0)