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

Former Member
0 Likes
671

hi,

how to assign the function keys for for module pool programming . I need the process, please help me.

5 REPLIES 5
Read only

naveen_inuganti2
Active Contributor
0 Likes
642

Hi.....

> Go to se41 -> expand function keys -> enter SAVE for save icon

Now in the PAI event of that screen, where you are using this PF status....

write this code:

>case sy-ucomm.

>when 'SAVE'.

><write ur action>.

>endcase.

Do like this.

Thanks,

Naveen.I

Read only

Former Member
0 Likes
642

in ur PBO write set pf-status 'ABC'.

now double click on 'ABC' and will open a popup for pf-status. specify some description and then in this pf-status components screen one can specify require function keys which needs to be shown on various columns like on menu or else on application path.

in code one needs to handle code for the respective function keys....

more info goto ABAPDOCU...

Read only

Former Member
0 Likes
642

Hi,

Double click the screen element (Push button, check box, radio button & drop down only) in SE51 screen painter layout and give any custom function code in FCode field in properties of that screen element

Read only

RaymondGiuseppi
Active Contributor
0 Likes
642

Using a status (buttons, menus, etc, [menu painter SE41|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=menupainterPF-STATUS&adv=false&sortby=cm_rnd_rankvalue])

- Create a "STATUS" for your program using transaction SE41

- In the PBO of your screen, execute a MODULE that contains a SET PF-STATUS statement

- In the PAI of your screen, execute MODULES that manage the function code, usually a MODULE AT EXIT-COMMAND before the checks and controls then a second MODULE. (That may be the same module. )

In the dynpro ([screen painter SE51|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=screenpainterSE51&adv=false&sortby=cm_rnd_rankvalue])

You can also create buttons, checkboxes, radiobuttons and fields with a dropdown list in the dynpro and then attach a function code to these objects.

Call transaction [DWDM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=dwdm&adv=false&sortby=cm_rnd_rankvalue] for some SAP samples.

Regards

Read only

Former Member
0 Likes
642

Hi,

In the PBO event of the screen which u want functionkeys...

module status_0100 output.

set pf-status 'XXXXXXXXX'. (any name say -SCREEN-100)

endmodule. " STATUS_0200 OUTPUT

Now double click on SCREEN-100

It will ask for creation then create ..

Now select the function keys and assign the keys you want.

Regards,

kavitha....