Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Double click event in Table Control

lijisusan_mathews
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Refer to the link.

Regards

Sumit Agarwal

3 REPLIES 3

Former Member
0 Kudos

HI,

Refer to the link.

Regards

Sumit Agarwal

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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.