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

Application toolbar button

Former Member
0 Likes
861

Hi Friends,

In pf status - I have added 1 new button at application toolbar and assigned the function key to this. There were already 34 buttons at that toolbar. Even after activating this, I'm not able to see the new button on output screen , rest 34 buttons are visible. Though Function key for the new button is working fine.

Does anyone has any idea how can i make the button visible??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

Check the PF status to which you have added the button, is the same PF status used.

Change the positon of button and check .

5 REPLIES 5
Read only

Former Member
0 Likes
767

Hi,

Check this for reference

[http://help.sap.com/saphelp_erp2004/helpdata/en/d1/801d91454211d189710000e8322d00/frameset.htm]

Did you do this in the INITIALIZATION event?


INITIALIZATION.

FUNCTXT-ICON_ID = ICON_REFRESH.
FUNCTXT-QUICKINFO = 'Refresh'.
FUNCTXT-ICON_TEXT = 'Refresh'.
SSCRFIELDS-FUNCTXT_01 = FUNCTXT.

Trivia: You cannot add more than 35 buttons to the application toolbar.

Paste your code if possible.

Read only

0 Likes
767

Hi Nitwick

I tried your code at INITIALIZATION but program could not recognize ICON_REFRESH or FUNCTXT-.

Could you please elaborate about it a little more?

Read only

0 Likes
767

Hi,

This is how you place a button on the Application Tool Bar


TABLES:SSCRFIELDS.
DATA: FUNCTXT TYPE SMP_DYNTXT.
SELECTION-SCREEN: FUNCTION KEY 1.

INITIALIZATION.

FUNCTXT-ICON_ID = ICON_REFRESH.
FUNCTXT-QUICKINFO = 'Refresh'.
FUNCTXT-ICON_TEXT = 'Refresh'.
SSCRFIELDS-FUNCTXT_01 = FUNCTXT.

START-OF-SELECTION.
if sy-ucomm = 'FC01'.

endif.

This code places a button on the Application Toolbar. I am making use of the Function Key 1. So the sy-ucomm is FC01.

Please check the link provided for reference.

Read only

0 Likes
767

Thanks for you replies.

Nitwick - Solution provided by you will add button on the selection screen. But i needed the button on output screen where i'm displaying the alv grid.

The issue got resolved now. The button was not visible because of the length of the application toolbar. I removed the seperators and could manage to shift it left. now it is visible.

Read only

Former Member
0 Likes
768

Check the PF status to which you have added the button, is the same PF status used.

Change the positon of button and check .