06-09-2004 5:07 PM
Hi I have two columns on my table control screen. One column I had specified to Respond on Double Click and the 2nd column is unchecked.
I am testing the sy-ucomm if = 'CHOS', if it is it goes to the second screen.
Now my problem is that even if I double click the 2nd column which should not respond to double click, it is still going to the second screen because the sy-ucomm = 'CHOS'.
How do I test the double click? How do I know the user had hit the double click and it is the correct field I want it to respond to?
Please help. Thanks in advance.
06-09-2004 6:02 PM
Hello,
You can check the field which is double-clicked by using
command GET CURSOR FIELD f.Here, f can be a string variable which holds the name of the field which is double-clicked.Your coding can be as below:
data: lv_fname type string.
if sy-ucomm = 'CHOS'.
get cursor field lv_fname.
check lv_fname = "name of the field which is relevant
for double-clicking"
....
endif.