03-07-2009 12:07 PM
Hi Gurus ,,
I have added one button in "Deadl" tab of the main screen of VT02N ..
Now i want to create authorization object for that button ..
How to do that ????
Pls Give Guidance ..
Thnx in advance,
Regards,
Nishit.
03-07-2009 1:39 PM
03-07-2009 1:39 PM
03-07-2009 4:42 PM
1) Create Authorization object :
2) use below code
* Check authority based on order change transaction code VA02
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD'
FIELD 'VL02N'.
IF sy-subrc <> 0.
MESSAGE e398 WITH 'You Dont have authorizations to use this Tcode'.
ENDIF.
3) or you can use function module
call FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = v_tcode
EXCEPTIONS
ok = 1
not_ok = 2
OTHERS = 3.
~Satya