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: 

how to HIDE a disabled button in an application tool bar of standard tran..

Former Member
0 Kudos

Hi All,

One button is in disabled mode in an application tool bar of standard transaction . I want hide this button and replace one more button on it. By using SHD0 transaction I am unable to hide the disabled button which is present in an application tool bar. Could you please provide solution for how to HIDE a button which is already in DISABLED mode.

Thanks,

Vijay

1 REPLY 1

Former Member
0 Kudos

u can used

SET PF-STATUS <stat> [EXCLUDING <f>|<itab>]

[OF PROGRAM <prog>]

[IMMEDIATELY].

This statement sets the status <stat> for the current output list. The dialog status <stat> must be defined for the current program, unless you have used the OF PROGRAM addition to set a status from another program <prog>. The status is active for all subsequent list levels until you set another status. The SY-PFKEY system field always contains the status of the current list.

Using SET PF-STATUS, you can display different user interfaces for different list levels to provide the user with different functions according to the individual requirements. Use SET PF-STATUS SPACE to set the standard list status. This depends on the event blocks in the program, as described above.

The EXCLUDING option allows you to change the appearance and available functions of a status from within the program. This is useful if the individual user interfaces for a range of list levels are very similar. You can define a single global status, and then just deactivate the functions you do not need using EXCLUDING. Specify <f> to deactivate the function code stored in field <f>. Specify <itab> to deactivate all function codes stored in the internal table <itab>. Field <f> and the lines of table <itab> should be defined with reference to the system field SY-UCOMM.

The IMMEDIATELY addition is intended specially for list processing. You use it while creating a detail list within an event block to change the status of the list currently displayed (index SY-LISTI). Without this option, the system changes the status of the current secondary list (SY-LSIND) that is displayed only at the end of the processing block.

Go through below link to see more information

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm

Reward Points if this helps,