cancel
Showing results for 
Search instead for 
Did you mean: 

hide all buttons in a GUI-STATUS ?

daniel_humberg
Contributor
0 Kudos

I'd like to hide all functions from the toolbar of a GUI-STATUS except for one function.

I could of course create a table with all the FCODE except for the one and then call

 SET PF-STATUS 'bla' EXCLUDING itab.

But whenever I add a function to the GUI-Status then, I have to change that code. Is there a way to prevent this.

View Entire Topic
Former Member
0 Kudos

Hi Deniel,

There is a function module that lists out all the function codes of a given GUI-STATUS of a program. It is

RS_CUA_GET_STATUS_FUNCTIONS.

Before you do the 'set pf-status', you can always call this function module, move all the fcodes into exculde itab except the one you wanted and then do the set pf-status.

Srinivas

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Use function module RS_CUA_GET_STATUS_FUNCTIONS to get the Fcodes of the status at runtime.

Regards,

Rich Heilman