Skip to Content
0
Former Member
Dec 01, 2006 at 09:07 AM

Double Click in an ALV Grid

42 Views

Hello,

I've got a custom control in my dynpro which is filled with a datastructure. Now i want to do a double click on a row and it should leave the dynpro to another dynpro.

My problem is that i don't know how i could do the double click. I am very new in ABAP.

Here are some passages of my code:

CLASS application DEFINITION.

PUBLIC SECTION.

METHODS: constructor,

fill_list,

on_double_click_100 FOR EVENT double_click OF

cl_gui_alv_grid.

ENDCLASS. "application DEFINITION

METHOD on_double_click_100.

  • IF e_row-rowtype IS INITIAL AND NOT e_row-index = 0.

  • l_index = e_row-index. "merken für Modify itab

  • PERFORM get_head_data USING e_row-index.

  • ENDIF.

  • Zurück zum Selektionsbild

  • LEAVE TO SCREEN 200.

CALL SCREEN 200.

ENDMETHOD.