2008 Jul 21 3:54 PM
Hello everyone,
How I can know what function key has user pressed on the standard parameters report screen? I want to distinguish between F8 and F9 (execute on background).
2008 Jul 21 3:58 PM
You can differnetiate the F8 & F9 with their function code
F8 have function code ONLI & F9 have function code SJOB
a®
2008 Jul 21 3:56 PM
The system field SY-UCOMM will have the command assigned to the function module so you can check that.
I'd suggest searching SDN before posting in future as most things (including this) have been asked and answered before.
2008 Jul 21 3:58 PM
You can differnetiate the F8 & F9 with their function code
F8 have function code ONLI & F9 have function code SJOB
a®
2008 Jul 21 4:05 PM
Hi,
if you want to check whether the program is run in online or in background..
Then you can use the system variable SY-BATCH.
If SY-BATCH = 'X'..Then background
If SY-BATCH = ' '.. Then online
Thanks
Naren
2008 Jul 21 4:22 PM
Thanks for the answers. Really, I've tried to search for the answer many times before sending a new question but I failed.