Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization object in VT02N

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Nishit

check the

[How to create authoriztion object for command button|]

hope it helps you.

Thanks!

2 REPLIES 2

Former Member
0 Kudos

Hi Nishit

check the

[How to create authoriztion object for command button|]

hope it helps you.

Thanks!

0 Kudos

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