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

Handling function keys

Former Member
0 Likes
726

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).

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
610

You can differnetiate the F8 & F9 with their function code

F8 have function code ONLI & F9 have function code SJOB

a®

4 REPLIES 4
Read only

Former Member
0 Likes
610

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.

Read only

former_member194669
Active Contributor
0 Likes
611

You can differnetiate the F8 & F9 with their function code

F8 have function code ONLI & F9 have function code SJOB

a®

Read only

Former Member
0 Likes
610

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

Read only

Former Member
0 Likes
610

Thanks for the answers. Really, I've tried to search for the answer many times before sending a new question but I failed.