Application Development 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: 

how to suppress 'F1' regular functionality?

Former Member
0 Kudos

Hi All.

I don't know if it's possible but...

I build a normal screen with push buttons.

I need that every time the user is pressing 'F1' button -> one of the screen push buttons functionality is being activated.

If the user is pressing 'F2'... exc.

Is it possible to use 'F1' button for my own functionality?

Thanks, Barak.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, it is. Actually this type of thing is done for most every RF transaction which SAP delivers. The reason is that you wouldn't want the F1 screen to be fired when running the transaction from an RF terminal, since there will be no SAPgui. If you have a look at the gui status in program RLMENU, the F1 key is used not for the F1 functinoality, but it can be used to trigger the PAI.

Regards,

Rich Heilman

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

I don't think it's possible (extract from Using GUI Statuses )

+

Reserved Function Keys

The following function keys do not trigger the PAI event, but are reserved for other functions:

· F1 calls the field help

· F4 calls the input help

· F10 places the cursor in the menu bar+

You may try to "intercept" F1 and F4 in POV and POH coding (for each and every field if F1 or F4 pressed, memorize the event F1_pressed, F4_pressed) and then in PAI add a second "at command" module call and check if you come through theses cases. But you have to check every field on screen...)

Regards

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, it is. Actually this type of thing is done for most every RF transaction which SAP delivers. The reason is that you wouldn't want the F1 screen to be fired when running the transaction from an RF terminal, since there will be no SAPgui. If you have a look at the gui status in program RLMENU, the F1 key is used not for the F1 functinoality, but it can be used to trigger the PAI.

Regards,

Rich Heilman

Former Member
0 Kudos

Thank You for the quick replay.

I follow the way that you advice but I cann't enter any letter in the F1 icon for some reason. (all the other Icons are open for entering letters).

Do you know why?

Barak.