‎2008 Dec 03 11:19 AM
Dear All,
Is it possible to give End-users some kind of Authorization to use particular t-codes for execution.
E.g User 1 should use only zx1 and not zx2.
i guess, same can be done with creating a Ztable for User activities........
Pls suggest.
Thanks in Advance.
‎2008 Dec 03 11:21 AM
Ya its manditory to do so!!
generally a manager can see all the details of all the employees but a employee can see only his details and vice versa!!
So hope now u understood
Regards
sas
‎2008 Dec 03 11:22 AM
u can assign authorization object to the t-code. ask ur basis team to create the authoriation objet then asign it to tcode thru se93
‎2008 Dec 03 11:32 AM
u can even create AUTHORIZATION group and assighn the same to se38 attributes
Regards/ss
‎2008 Dec 03 11:38 AM
hi,
First of all end users will not have Sap_all authorization.
so whatever zprogram or ztcode you create they will not have authorization
unless basis people give them.
‎2008 Dec 03 11:39 AM
Hi,
For such TCODE authorizatiions there are certain Autjorization Objects which you need to use in the PBO of the Screen for that TCODE,Like:
SELECT tcode FROM tstc
UP TO 1 ROWS
INTO g_tcode
WHERE pgmna = sy-repid.
ENDSELECT.
..>check for TCODE Authorization using the authrization objetc:
AUTHORITY-CHECK OBJECT <Autho Obj Name>
ID 'TCD'
FIELD g_tcode.
IF sy-subrc NE 0 .
*You are not authorized to use transaction &
raise error MESSAGE .
ENDIF.
‎2008 Dec 03 11:50 AM
I need to include 2 points in your solution.
1) Coding in PBO or PAI.
2) I have Ztable with certain users' usernames, so i must make use of ztable fro the above problem.
‎2008 Dec 03 11:55 AM
Hi,
1.In PBO
2.If you have to use a Z table with users' name then you can just check with SY_UNAME if an entry for that in Z Table then proceed else Raise Error "E" type message ,i think you should discuss this with your Basis people.
Regards,
Neha
‎2008 Dec 03 11:40 AM
hi,
Yes you cna do it. but the only thing is it can told the basis and depending who is longing it you can change the authoziation................
hope it helps you......
with regrads
janani
‎2008 Dec 08 11:30 AM