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

gui status help

Former Member
0 Likes
687

hi all

In pf status why the function codes of menubar,appl tool bar are started with ampersand(&).

how different functions like 'back' delete' 'save' enter' can be declared in pf status and how can we use them in abap program.

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
631

Check these threads -

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
631

hi,

PF status is used for defining your own menus.For example you can add your own push button DELETE' in the menu bar as shown below:

In the PBO of the screen,uncomment module status100 and double click on it.

It will ask you if you want to write the code for the module in the main program or a separate include.

Now,in PF status,

MODULE status_0200 OUTPUT.

SET PF-STATUS 'GUI2'.

Uncomment the SET PF_STATUS line and give a name say GUI2 and double click on the name.

You will find three tabs in the GUI status:

In the application toolbar,write the function code for the push button you want,say DELETE.Press enter and give the function text,icon name and info text and save and activate the GUI status.

Now,in the PAI of the screen,uncomment the module user command and write the code:

Case ok_code.

When 'DELETE'.

...logic

Endcase.

chk this link for details:

http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_46c/helpdata/en/d1/801d5d454211d189710000e8322d00/frameset.htm

Read only

Former Member
0 Likes
631

Hi Ganesh

Go to se41.

Select the Function keys Field.

In the screen select Menu bar and Give any fun.code and Description as you required like Save, exit. Ex : "Fcode".

Save and exit.

In se 38,

Write the code like,

Case sy-ucomm.

When 'Fcode'.

-


Endcase.

Thanks.

Read only

Former Member
0 Likes
631

Hi

U can use the codes you like to use: it depends on your fantasy only.

The standard codes of ALV menu usually begin with &, but I suppose it's a convention.

Anyway you should consider some particular codes are assigned to standard functionalities to manage an abap list

BACK: to back

%EX: to exit

%PRI: to print

................. (see the pf-status for an abap list)

If you use them, you don't need to write the code to manage those functionalities because the system'll manage them automatically.

Max