Application Development and Automation 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: 
Read only

Disabling buttons on application toolbar

Former Member
0 Likes
1,548

hi,

I have some buttons displayed on application toolbar which are generated using PF-Status. Now based on the authorisation object, i want to disable some of the buttons on application toolbar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,190

You can use Excluding command for pf status.

Eg.

If sy-subrc ne 0.

set pf-status '9000' excluding 'SAVE'.

endif.

or.

DATA:

itab TYPE TABLE OF sy-datar,

wa LIKE LINE OF itab.

wa = 'SAVE'.

APPEND wa TO itab.

wa = 'CANCEL'.

APPEND wa TO itab.

SET PF-STATUS '9000' EXCLUDING itab.

Edited by: Rengith Skariah on Apr 16, 2008 10:43 AM

5 REPLIES 5
Read only

Former Member
0 Likes
1,191

You can use Excluding command for pf status.

Eg.

If sy-subrc ne 0.

set pf-status '9000' excluding 'SAVE'.

endif.

or.

DATA:

itab TYPE TABLE OF sy-datar,

wa LIKE LINE OF itab.

wa = 'SAVE'.

APPEND wa TO itab.

wa = 'CANCEL'.

APPEND wa TO itab.

SET PF-STATUS '9000' EXCLUDING itab.

Edited by: Rengith Skariah on Apr 16, 2008 10:43 AM

Read only

Former Member
0 Likes
1,190

YOu can exclude a set of FCODES using the syntax.

if <condition to check authorization object>.

set pf-status 'ABC' excluding it_fcode.

endif.

Regards,

Ravi Kanth talagana

Read only

Former Member
0 Likes
1,190

HI,

use

set pf-status 'MENU' excluding 'FCODE'.

if u use excluding the button in menu or standard toolbar will be grayed out if it is in application toolbar it will be disappeared.

to make the application toolbar buttons appear and grayed out goto to the screen painter and select ur STATUS in change mode.there next to application toolbar section u will find out an icon.if u click on that,u will get a pop-up window in that select the radio button DISPLAY ALL and press OK button and then activate the menu.

rgds,

bharat.

Read only

0 Likes
1,190

Can you please let me know where exactly the icon is available so that i can click on it which displays popup window

Read only

0 Likes
1,190

Hi,

goto the menu painter SE41.give ur program name, select the radio button status and give ur pf-status name in that field and press change button.there u can see menu bar, Application toolbar and Function keys. At the end of Application toolbar description u can find the icon(by default it is green color square).

rgds,

bharat.