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

set PF-STATUS

Former Member
0 Likes
848

hi all

how to put a push button in application toolbar .

thanks

abaper

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
814

hi,

declare a pf-status in your program like this pf-status 's001'. double click on the s001. it wil create a pf-status. in the application toolbar option u can cretae a push button

In the item 1-7 colum enter the name for push button and press enter.

Message was edited by:

Navneeth Bothra

hi all

how to put a push button in application toolbar .

thanks

abaper

4 REPLIES 4
Read only

Former Member
0 Likes
815

hi,

declare a pf-status in your program like this pf-status 's001'. double click on the s001. it wil create a pf-status. in the application toolbar option u can cretae a push button

In the item 1-7 colum enter the name for push button and press enter.

Message was edited by:

Navneeth Bothra

Read only

Former Member
0 Likes
814

Hi,

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.

(ok_code is defined in the top include as

DATA:ok_code type sy-ucomm.)

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

Regards,

Beejal

**Reward if this helps

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
814

Hi,

Create a PF-status for the particular program and then u double click on it, then u define the text what u want to display on the button and any icon sort of things,

u need to define a function code for the btton in the same.

U have to handle that function code in ur program,by comparing the Sy-Ucomm.

Cheers,

SImha.

Read only

Former Member
0 Likes
814

hi,

goto se41...

give ur pgm name and pf-status.

or Double click on the pf-status in the program...

Select Application Toolbar...

Give the button name in Items(1-7)...

double click, u will get a popup..enter the Functional type,Function Text,Icon Name,Icon Text etc......

Save & activate...

regards,

priya.