11-02-2007 7:52 AM
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
11-02-2007 8:06 AM
Hi,
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
Regards
Nishant
11-02-2007 8:06 AM
Hi,
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
Regards
Nishant
11-02-2007 9:35 AM
Hi Kiron,
Can you please mark this thread as answered and close it?
I am sure the answer would have solved your question
Regards
Nishant