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

Function keys for Push buttons

former_member125931
Active Participant
0 Likes
3,851

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,233

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

11 REPLIES 11
Read only

former_member242255
Active Contributor
0 Likes
2,233

hope this will be helpful

Read only

Former Member
0 Likes
2,233

Copy the PF status into Z and in SE41 add the function keys.

Read only

Former Member
0 Likes
2,233

hi sree,

check this thread

hope it helps you.

thanks

Sachin

Read only

Former Member
0 Likes
2,233

hi,

standard function keys cannot be overwritten u can do only on F6 and F7

regards

Ritesh J

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
2,233

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

Read only

Former Member
0 Likes
2,234

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

Read only

0 Likes
2,233

Hi,

Thank you very much for reply,

but how I tried its not working can you explian in brief.

Read only

0 Likes
2,233

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

Read only

Former Member
0 Likes
2,233

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

Read only

0 Likes
2,233

Hi,

Thank you for reply but The document requested was not found.

Read only

Former Member
0 Likes
2,233

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