Disable push button in menu bar
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
Nishant Rustagi 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