‎2008 Apr 16 9:37 AM
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.
‎2008 Apr 16 9:42 AM
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
‎2008 Apr 16 9:42 AM
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
‎2008 Apr 16 9:44 AM
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
‎2008 Apr 16 9:44 AM
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.
‎2008 Apr 16 9:51 AM
Can you please let me know where exactly the icon is available so that i can click on it which displays popup window
‎2008 Apr 16 10:06 AM
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.