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

Module Pool (Function Keys)

Former Member
0 Likes
2,353

Hi,

Now I am creating a Module pool programming, But Iam Not able to Activate Function Keys

I have already added GUI status

Please Help me to solve this Issue

Regards

Nausal

6 REPLIES 6
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,176

Hi,

When you create a gui status, and include buttons in the application toolbar, and provide the function code and text for the button, you are asked for a shorcut key, select a shortcut from the given options and the apply that gui status to the application in PBO:-


SET PF-STATUS '<pf-status_name>'.

Now you can hit the shortcut keys and perform actions.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
1,176

Hi,

Through SET PF-STATUS Statement in your program,

you can assign short cut function keys to the buttons

added in its GUI Status.

Check whether your PF-Status is activated pro[erly or not.

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
1,176

Hi,

You are saying you have added the GUI status but Function keys are not activated this only means that though you have only created the GUI status but haven't actuvated the status.

1.Click on the GUI status created in the module pool program

2.If it is not created it will ask you to create a new one ---Press Yes else it will take you to the created GUI status screen.

3.In that screen add the button as you normally do in creating the PF status.

4.Save it and activate it .

5.Then activate the program.

6.This will create and activate the PF status created in the module pool.

Hope this help you.

Pooja

Read only

Former Member
0 Likes
1,176

From your PBO write:

SET PF-STATUS '<pf-status_name>'.

click on the '<pf-status_name>' and add the function keys as per requirement and then activate.

Write appropriate code in PAI corresponding to the function codes

Read only

Former Member
0 Likes
1,176

Hi,

Look the below pseudocode.

in PBO,

module status_<screen_no>

module status__<screen_no> output

set pf-status ;< >'.

endmodule.

and in PAI,

module user_command_<screen_no>

module user_command__<screen_no> input.

case sy-ucomm.

when 'BACK'.

leave to screen 0.

endcase.

endmodule.

Thanks!

Brunda

.

Read only

Former Member
0 Likes
1,176

Thanks to All

Solved It by adding the functioncode

Regards

Nausal