04-12-2010 7:28 AM
Hi All,
i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
thanks,
Rajeev.
04-12-2010 10:36 AM
Hi rajeev bikkani ,
you can use the events 'Double_click' in alv. below given the code, try out.
class lcl_list_event_handler definition.
PUBLIC SECTION.
methods on_double_click
for event double_click of cl_gui_alv_grid
importing e_row .
endclass.
class lcl_list_event_handler implementation.
method on_double_click.
call transaction 'ME21N'.
ENDMETHOD.
ENDCLASS.
before executing the method SALV.
write code
set handler obj2(reference for lcl_list_event_handler) ->on_double_click
for obj1(referenece for cl_gui_alv_grid).