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: 

assign authorization to Z-transactions

Former Member
0 Kudos

i created a Z - tcode similar to SM30(transaction with parameter option) i want to assign authorization for Z transaction with parameter option.

7 REPLIES 7

Former Member
0 Kudos

Hi,

YOU can use SU24 T-code to create authorization object for your z-code.

Regards,

Raghav

former_member188685
Active Contributor
0 Kudos

Hi,

you can use Transaction code <b>SU22</b> to assign the Authorization to Tcode.

Regards

vijay

Former Member
0 Kudos

Hi !

You can go to the SE93and give the transaction an autority object. You may chose any of SAP objects or create a new one (wich has to be done before).

This object then is checked in addion to th S_TCODE.

Regards

Rainer

Some points wuld be nice if that helped....

abdul_hakim
Active Contributor
0 Kudos

welcome to sdn.

you first need to create an authorization object using su21 and then call it in your z transaction using the pattern button on the application tool bar and give your authorization object name....

Cheers,

Abdul

Note:Mark all useful answers

Former Member
0 Kudos

Hi,

Authorization can be assigned at transaction

level using authorization object in se93.

Check can also be performed at program level

at at selection-screen output or PBO event

using

authority-check object 'S_TCODE'

id 'TCD' field 'ZSPM'.

if subrc <> 0

message e000 with 'You are NOT Authorized for

this transaction'.

endif.

Important transaction are su21,su22,su23,su53.

Function Module SUSR_GET_PROFILES_OF_USER

Regards,

Amole

Former Member
0 Kudos

You have got enough information on creating auth object, but I think you also need to create auth group before creating auth object. you can then create your own auth field and yes auth field can be in your company name space.

Regards,

Surpreet Bal

Former Member
0 Kudos

Hello Sukumar,

In tcode assignment u can use the field authorisation object and assign an object as per your requirement. This will block any unauthorised use of the tcode. If you want to do this without modifing the tcode, u can create an authorisation and assign this to the users who can execute the transaction. This authorisation will hold tcode and activity as fields and will have entry of ur tocode. Lastly if u want to do at program level u will have to code in the program

AUTHORITY-CHECK OBJECT object

ID name1 FIELD f1

ID name2 FIELD f2

...

ID name10 FIELD f10