2007 Sep 04 2:29 PM
Hi,
I am using the following code to add a button in the selection screen application toolbar.
TYPE-POOLS icon.
TABLES sscrfields.
DATA: functxt TYPE smp_dyntxt.
INITIALIZATION.
functxt-icon_id = icon_skip .
functxt-quickinfo = 'skip'
sscrfields-functxt_01 = functxt.
i would like to show the newly added button( of selection screen's application toolbar) , in disable mode , but dont want to hide.
2007 Sep 04 3:23 PM
Hi Jey,
You will need to create a GUI status for this..
INITIALIZATION.
SET PF-STATUS '100'.
Write this in code and double click on '100'.. you will be directed to the menu painter(SE41)..
Create this status with the buton u want to show..
Thanks and Best Regards,
Vikas Bittera.
2007 Sep 04 3:34 PM
This selection screen is already an existing one with the default application toolbar with few buttons added (delivered to customer).so i can't create a new GUI status for this .
2007 Sep 04 3:36 PM
Hi,
Just check there must be a GUI status used... we can not directly modify the standard status..
they must have used something..
Thanks and Best Regards,
Vikas Bittera.
2007 Sep 04 3:39 PM
Hi Jey,
try this
double click on ur pf-status, it will take to SE41 , then
Click Go To, Attributes-->Pushbutton Assignment, Now choose the radiobutton for "Display All", save and activate.
then use the EXCLUDING extension of the SET PF-STATUS statement,
SET PF-STATUS 'XXX' EXCLUDING 'XXXX'.
2007 Sep 04 3:42 PM
Hi vikas,
can u just try to add the code , that i had posted earlier to add buttions in application toolbar of selection screen with out the statment set pf-status.
2007 Sep 04 3:45 PM
Hi chandrasekar ,
your suggestion is absolutley correct , if i have added application tool bar with set pf-status. but i had used the code that i had posted earlier. so in my case , no need to set the selection screen applicaton tool bar with set pf-status.
2007 Sep 04 3:56 PM
Hi
try to find a property in sscrfields ie a field in sscrfields , i hope there must be some thing to hide it .
alternatively u can copy the existing gui status (if it is used in more then on program ) and make changes send it with the code .
does sscrfield adds it to application tool bar ?
i am not sure i dont have SAP system right now . but hope making changes in GUI status will help u . if thats standard GUI u can copy that also .
Best wishes to solve this (-: