Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.