Application Development 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: 

Disable selection screen application toolbar button

Former Member
0 Kudos
303

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.

7 REPLIES 7

Former Member
0 Kudos
112

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.

0 Kudos
112

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 .

0 Kudos
112

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.

0 Kudos
112

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'.

0 Kudos
112

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.

0 Kudos
112

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.

Former Member
0 Kudos
112

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 (-: