Application Development and Automation 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: 
Read only

Gui status (AT USER-COMMAND) trigger at first

Former Member
0 Likes
363

Hello all,

I wrote a basic list shown below.

In it , AT USER-COMMAND and AT LINE-SELECTION events are used all.

when i double click on line in the list, I think the at line-selection should be trigger at first. but in fact ,the AT USER-COMMAND trigger.

and the sy-ucomm get the first button value in the GUI-STATUS BAR(There's only one button on it).

how can i solve it .

any answers should be appreciated.

START-OF-SELECTION.

SET PF-STATUS 'ZSATMM24F1'.

write : \ 'aaaaaaaaaaaa'

write : \ 'aaaaaaaaaaaa'

write : \ 'aaaaaaaaaaaa'

write : \ 'aaaaaaaaaaaa'

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'TO_a'.

PERFORM to_a.

ENDCASE.

AT LINE-SELECTION.

write : 'test'.

best regards,

daniel.

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
269

Please make sure to add the fcode PICK to the F2 function code in your gui status and try again.

Regards,

Rich Heilman