Hi Experts,
I have a ALV table. I want to drag the rows from one standard table to the this alv table. I am able to drag the row but some how the drop is not hapening.
The code of the alv table written in method WDDOINIT in the view.
Data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = WD_THIS->wd_cpuse_ALV_TABLE( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
DATA:
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,
l_value TYPE REF TO cl_salv_wd_config_table,
lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_input_field type ref to cl_salv_wd_uie_input_field,
value TYPE REF TO IF_SALV_WD_DROP_TARGET_INFO.
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv_table( ).
l_value = lo_interfacecontroller->get_model( ).
CALL METHOD l_value->IF_SALV_WD_DRAG_AND_DROP~CREATE_DROP_ROW_TARGET_INFO
EXPORTING
id = 'ALV_TABLE'
name = 'from'
enabled = abap_true
tags = 'from'.
l_value->if_salv_wd_drag_and_drop~set_drop_row_name( 'from').
l_value->IF_SALV_WD_DRAG_AND_DROP~SET_DROP_ROW_NAME_FIELDNAME( 'fight_no').
I have created an event handler method for the drop but the method never gets called (the event handler on click also have same problem) .
Pls help whats missing?
Thanks,