‎2011 Jan 20 9:52 AM
Hi,
I have created a custom screen in which there are two push button. I need to create keyboard shortcuts using F1 and F4 function keys.
F1 and F4 are standard shortcuts. In my program, I need to use the F1 to go next screen and F4 is to clear the input fields.
F4 is working fine. It is clearing the input fields. But F1 doesnt work. When I press F1, it says "function code cannot be assigned"
What could be the issue?
Thanks,
Ezhil
‎2011 Jan 20 10:00 AM
Hi,
try the below way..
process on value-request.
field <field-name> module f1_nextscreen.
module f1_nextscreen input.
leave to screen <screennumber>.
endmoduel.
Prabhudas
‎2011 Jan 20 1:23 PM
F1 is always SAP's HELP key....I wouldn't change that....use F2 or something else.
‎2011 Jan 20 1:49 PM
Hi,
You can use ON HELP REQUEST for F1 help and ON VALUE REQUEST for F4 help if it is a report.
If it is module pool use Process on Help Request and Process on Value Request respectively.
at selection-screen on help-request for s_vbeln-low.
message 'F1 hitted' type 'I'.
at selection-screen on value-request for s_vbeln-low.
message 'F4 hitted' type 'I'.
Thanks,
Anmol.