Application Development and Automation 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: 
Read only

T-codes for Module pool (Authorizations)

Former Member
0 Likes
1,259

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.

9 REPLIES 9
Read only

Former Member
0 Likes
983

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

Read only

Former Member
0 Likes
983

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

Read only

Former Member
0 Likes
983

u can even create AUTHORIZATION group and assighn the same to se38 attributes

Regards/ss

Read only

GauthamV
Active Contributor
0 Likes
983

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.

Read only

Former Member
0 Likes
983

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.

Read only

0 Likes
983

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.

Read only

0 Likes
983

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

Read only

Former Member
0 Likes
983

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

Read only

Former Member
0 Likes
983

solved after creating a ztable