‎2009 Mar 03 11:55 AM
Hi All,
I have one query in module-pool program,I need to assign Function keys to Push buttons in my programe,like for create(F7),dispaly(F6) and also I need to overwrite few standard function keys,
any one please guide me.
Thanks n regds,
Sree.
‎2009 Mar 03 12:26 PM
Hi,
assign Fcode to the Pushbuttons ...say for Pusbutton "CREATE" assign func code "NEW".
now go to PF-Status of that screen--> UTILITIES> F Key consistency--> here you can assign Fcode "NEW" to Func Key F6 .
similarly you can do for others.
regards,
Neha
‎2009 Mar 03 11:58 AM
‎2009 Mar 03 11:59 AM
Copy the PF status into Z and in SE41 add the function keys.
‎2009 Mar 03 12:00 PM
‎2009 Mar 03 12:01 PM
hi,
standard function keys cannot be overwritten u can do only on F6 and F7
regards
Ritesh J
‎2009 Mar 03 12:03 PM
Hi,
You can assign the shortcut keys while creating pf-status.
You can assign shortcut keys as F6 and F7 over there.
But i dnt think that we can overwrite standard shortcut keys functionality.
For Eg: for F3 we use BACK, F12 we use CANCEL
I dnt think this can be reassigned.
Also when you assign a shorcut key to a button in pf-status, then you are shown only those shortcut options that are still not assigned in the pf-status. So you cant use those used shortcut keys.
Hope this helps you.
Regards,
Tarun
‎2009 Mar 03 12:26 PM
Hi,
assign Fcode to the Pushbuttons ...say for Pusbutton "CREATE" assign func code "NEW".
now go to PF-Status of that screen--> UTILITIES> F Key consistency--> here you can assign Fcode "NEW" to Func Key F6 .
similarly you can do for others.
regards,
Neha
‎2009 Mar 04 2:55 PM
Hi,
Thank you very much for reply,
but how I tried its not working can you explian in brief.
‎2009 Mar 05 5:04 AM
Hi,
you want in more detail.....ok
(1)u've created a screen -
> added push buttons etc. -
> given name to screen elements i.e pushbuttons etc.and also declared them in program
(2) create its GUI status ,say STATUS_100---->here you have to assign Function codes ->like if in standard toolbar you want BACK,EXIT,CANC or whatever you want,for ex. for BACK u'll find its icon -> double click on it>give the Func code say F3,now u also wnt to enable Func Key F3 for this--> go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys-> so to F3 give the same func code as u gave to BACK icon button.
similar approach u can use for pussbuttons:
double click on push button> in screen painter attributes-> give the Func code to it ,say for CREATE button u give Func code NEW->come back to GUI status->similarly go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys---> so to F7 give the same func code (NEW) as u gave to CREATE push button.
(3) In PBO of this screen create a module to set its PF status:
In screen flow logic:
PROCESS BEFORE OUTPUT.
* To set pf-status and title
MODULE status_0100.In Program:
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_100'.
SET TITLEBAR 'TITLE_100'.
ENDMODULE.
Hope this much detail is quite clear!!!
Regards,
Neha
Edited by: Neha Shukla on Mar 5, 2009 10:35 AM
‎2009 Mar 03 12:31 PM
Hi,
F1 for SAVE.
F2 for CLR.
F3 for REPRINT.
F4 for BACK.
Remaining can be get thr link:http://www.wilsonmar.com/sap_abap.htmc
Thanks
Smita
‎2009 Mar 04 2:53 PM
Hi,
Thank you for reply but The document requested was not found.
‎2009 Mar 05 5:19 AM
Hi
You can use function keys for push buttons:
Set pf-status 'TEST'
You can get them by utilities-->function keys(you can assign your new function ).
Regards,
Rajani