06-01-2006 11:24 AM
i created a Z - tcode similar to SM30(transaction with parameter option) i want to assign authorization for Z transaction with parameter option.
06-01-2006 11:27 AM
Hi,
YOU can use SU24 T-code to create authorization object for your z-code.
Regards,
Raghav
06-01-2006 11:36 AM
Hi,
you can use Transaction code <b>SU22</b> to assign the Authorization to Tcode.
Regards
vijay
06-01-2006 11:44 AM
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....
06-01-2006 11:59 AM
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
06-01-2006 12:35 PM
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
06-01-2006 12:41 PM
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
06-01-2006 12:45 PM
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