09-24-2008 3:21 PM
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
09-24-2008 3:30 PM
09-24-2008 3:30 PM
09-24-2008 3: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.
09-24-2008 3: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.