Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disable push button in menu bar

Hi all,

requriment that if authorized user runs the transaction code than a push button is enabled.

if he is not he authorized person the that push button on menu bar is disabled

please this is very urgent.

thanx for all guru's

in advance

Former Member
Former Member replied


You need to know the Function Code(FCODE) for the button which you want to disable.

Then check the authorization.

If the authorization is not there then execute this code

DATA: itab TYPE TABLE OF sy-ucomm. 
APPEND 'DELE' TO itab. " To be excluded
APPEND 'PICK' TO itab.  " To be excluded.
SET PF-STATUS 'STA3' EXCLUDING itab.  "Replace STA3 with your PF-STATUS.  

Hope this helps



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question