Skip to Content
0
Former Member
Jul 31, 2009 at 09:28 AM

How to add Select event in dynamic ALV

56 Views

Hi,

I have created dynamic ALV and now i want to checked the selected row value.

If in the selected row contain 'A' value then i have to disable the Button given on the screen.

If in the selected row contain B' value then i have to enable the Button given on the screen.

How to add the event once I select the row.

I have done like this . but it is not

lw_api_2->do_dynamic_navigation(

source_window_name = 'ZWDCHHR_EX_TASK_DELE'

source_vusage_name = 'ZWDVHHR_EX_TASK_DELE_USAGE_1'

source_plug_name = 'TO_ALV'

target_component_name = 'SALV_WD_TABLE'

target_component_usage = 'ALV_USAGE1'

target_view_name = 'TABLE'

target_plug_name = 'DEFAULT'

target_embedding_position = 'ZWDVHHR_EX_TASK_DELE/VIEW_DELEG_MY_TASKS' ).

  • register event handler

lw_cmp_usage_2->add_event_handler(

listener = lw_api_2

handler_name = 'ONSELECT_TAB1'

controller_name = 'INTERFACECONTROLLER'

event_name = 'ON_SELECT' ).

Thanks and regards

Amita Gandhi