Skip to Content

Trigger Double click event in Table Control

Hi,

I need to call a second screen with table control when i double click on a record in the table control in the first screen.. How s this possible...

Is theer a function code for double click?? or is there any other method.. PLs help

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 24, 2008 at 02:30 PM

    HI,

    Refer to the link.

    Table control- Respond to double click

    Regards

    Sumit Agarwal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 24, 2008 at 02:30 PM

    Do other way...Add checkbox to table control with single selection..Check one of the line item and add a button which when clicked takes to second screen using the data for which the check box line item is checked..

    (or)

    In your PF-STATUS enable F2 giving an okcode.

    ( You can find it in PF-STATUS -> Function keys -> Recommeneded function keys)

    Once you enable this and activate any doubleclick on the screen will create the ok code you assign and control comes to PAI.

    Where you write the statement

    if sy-ucomm eq 'CLICK'.

    GET CURSOR FIELD ws_field LINE ws_line.

    endif.

    If ws_field contains the field on which the user clicked and ws_line contains the line no. of ur table control.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 24, 2008 at 02:42 PM

    For Columns you can enable the option Respond to Double click option, in the PF-STATUS enable the F2 function with give the OK code as PICK.

    in the PAI you can check with the ok_code 'PICK' for doule click event.

    Add comment
    10|10000 characters needed characters exceeded