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: 

Double Click

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.