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: 

Button not visible in standard sap-toolbar

Former Member

Hi All,

I have added a custom key to standad SAP tollbar using Aceess key in tr-M52N.

But that custom buttom is still not visible in tool bar. Can anybody guide me?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

It may be that the function is being disabled by authorizations. To prove this, you could do the following...

Before you run the transaction you modified, go into debug with /h.

Run your transaction code - you should start up in debug.

Use menu option Breakpoints / Breakpoint At / Statement. Input the command SET PF-STATUS.

Hit F8 to continue until the SET PF-STATUS command is found.

At this point, if the SET PF-STATUS statement ends with EXCLUDING tablename (where tablename is an internal table), then double-click on the internal table and display the entries in it. If your function code is included in this table then that's the reason why you don't see the button. You'd then need to work back to determine why your function code is included in the internal table. This assumes the function code does indeed already exist in the GUI status used in the screen.

Regards, Andy

3 REPLIES 3

Former Member
0 Kudos

Check if the Fucntion Code is actiavted in Application Toolbar.

0 Kudos

Hi Sanjay,

you can also check for the Screen PBO and see if it is getting disabled in runtime in the others statement...

Regards,

Sitakant

Former Member
0 Kudos

Hi,

It may be that the function is being disabled by authorizations. To prove this, you could do the following...

Before you run the transaction you modified, go into debug with /h.

Run your transaction code - you should start up in debug.

Use menu option Breakpoints / Breakpoint At / Statement. Input the command SET PF-STATUS.

Hit F8 to continue until the SET PF-STATUS command is found.

At this point, if the SET PF-STATUS statement ends with EXCLUDING tablename (where tablename is an internal table), then double-click on the internal table and display the entries in it. If your function code is included in this table then that's the reason why you don't see the button. You'd then need to work back to determine why your function code is included in the internal table. This assumes the function code does indeed already exist in the GUI status used in the screen.

Regards, Andy