‎2009 Nov 25 8:16 AM
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??
‎2009 Nov 25 10:14 AM
Check the PF status to which you have added the button, is the same PF status used.
Change the positon of button and check .
‎2009 Nov 25 8:24 AM
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.
‎2009 Nov 25 8:53 AM
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?
‎2009 Nov 25 10:25 AM
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.
‎2009 Nov 25 11:03 AM
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.
‎2009 Nov 25 10:14 AM
Check the PF status to which you have added the button, is the same PF status used.
Change the positon of button and check .