double click on table control

Question: hai fans
when i double click the table control i want to display the other transaction screen.

is it possible .

can any one give the code example for this.

Answer:
You are better off putting a selection column for ur table control and another button wich takes you to the other transaction based upon the row of the table control that has been selected.

I have never tried to capture the double click event in a table control although It may be possible.

Answer:
Or change to an ALV grid and use the event.

Answer:
The below code is how to capture doble-click in Table Control. You can modify PERFORM GET_ITEM_FOR_DISPLAY and display something else.

** If user selects a header, get the items for the header..
    WHEN 'PICK'.
      CLEAR ok_code.
      IF wrk_screen = '0100'.
        GET CURSOR LINE selline.
        GET CURSOR FIELD wrk_field.
        IF wrk_field CS 'WA_HEADER-'.
          CLEAR: wa_text, wa_ctext, ctext_tab.
          tabix = header_control-top_line + selline - 1.
          READ TABLE header_tab INTO header_picked INDEX tabix.
          PERFORM get_items_for_display.
        ENDIF.
*     ELSEIF wrk_screen = '0102'.
*       IF wrk_field CS 'WA_ITEM-'.
*         tabix = item_control2-top_line + selline - 1.
*         READ TABLE item_tab INTO item_picked INDEX tabix.
*         PERFORM get_text_0100.
*       ENDIF.
      ENDIF.
      CLEAR wrk_screen.
Copyright ?2007 - 2008 www.jt77.com