Hi all
I am facing this problem: I have a function module with a selection screen declared in top include. Code of function is simple:
CALL SELECTION SCREEN 13. PERFORM query.
But user on selection screen can press F8 or ESC. How can I know which command has been sent?
I try to debug sy-ucomm, but it's empty both pressing F8 and ESC.
Can anyone help me please?
regards
Gabriele
Have you coded for them in your PF-STATUS?
For example F8 could be coded as the execute button and ESC as the exit button.
Hi,
Please refere below code :
<Copy & paste content removed by moderator>
Moderator message : Warning! Copy & paste from other sources not allowed, this will lead to deletion of user-id
I hope this will help you.
Regards,
Rahul Mahajan
Edited by: Vinod Kumar on Nov 7, 2011 4:53 PM
Have you included the event AT SELECTION-SCREEN to control the sy-ucomm? As far as I know the corresponding sy-ucomm for F8 is CRET and when you press ESC it comes empty.
Regards
Hi,
You can write PERFORM query in Start-of-selection Event which executes when u press F8.
Or Check sy-ucomm = 'ONLI' for F8.
hope this helps u.,
Thanks & Regards,
Kiran
As I said, I am in a FUNCTION MODULE so I cannot use AT SELECTION SCREEN statement.
And I already tested value of sy-ucomm.
thanks
Gabriele
I am in a FUNCTION MODULE so I cannot use AT SELECTION SCREEN statement.
Yes, you can.
Just place the event in a new include of the Function Group and it will be fired as usual.
GREAT
I was sure I tried to put it an include and it was not working, but probably I made a mistake and put it in function source. I put it in an include and it works: from sy-ucomm in AT-SELECTION SCREEN event I can see CRET when pressin F8.
Thank you very much
Regards
Gabriele