Skip to Content
author's profile photo
Former Member

Double Click

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jun 09, 2004 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded