Double Click on Table control...

Question: Hello,

How can I implement a double click on a table control and how can I trigger the line number?

Thanks in advance.

Answer:
Use Get cursor field F line L offset O where F,L and O is of type I.

Answer:
Hi.........

When you double click in a table control, the function code generated is 'PIC'. So you can check that in your user command and then using GET CURSOR field, you can get the field contents....

I hope this solves your problem........

Answer:
u have to set the PF status ...
under the function keys there is a block called
'Recommended function key settings'
against F2 give ur function code that SY_UCOMM will return .usually its 'PICK'.now when u double click ,the control goes to the PAI...

hope this helps u.

Answer:
Thanks for you help. I have solved it this way:

In the GUI STAUS I ahve assigned the "CS" function code to the function key F2. This will simulate the double click. Then in the PAI when sy-ucomm is equal to "/CS" use the get cursor line.

Thanks.
POLOAB.

Answer:
Nice to see an enthustic rush to respond, but what did you all forget?

The line returned is only the current step loop line, so if you are on page >1 of the table control this does not work.

You have to get 'top_line' from the table control, subtract 1 and add it to your 'current line'. This will give the index for the table row displayed by the control.

actual_index = tablecontrol-top_line + picked_line - 1.

Ta-da!
Copyright ?2007 - 2008 www.jt77.com