double click in table control
Hello guys, I have inserted a table control on the screen. When I would double click on one particular row of that column I want to display more details about that row on next screen. I understand the process is like below:
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.
If ws_field contains the field on which the user clicked and ws_line contains the line no. of ur table control.
I only have one question, how can I define the double click in my PF Status??? for example in image below I added DBLCLICK in F2 function key, My question is if this is correct? I not understand how SAP related this with my control table to give double click, please explain me
Yes, you are correct, F2 is double click. Actual seems you do not need define double click in PF status, directly response '&IC1' function code in user_command form. that`s same ok.