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: 

Authorisation Object: for database table

Former Member
0 Kudos
2,176

Hi .

I have a custom Z table which contains data for different plants.We have craeted a maintenence generator so that user can change data. Now I want to user should able to change data a particulat plant.

i already have authority object 'ZPLANT' with roles.

In se11 when i am trying to use authorization object, it is coming as " S_TABU_DIS " even in change mode.

How can I restrict user at table level.

4 REPLIES 4

Former Member
0 Kudos
188

HI,

You need to write the code in the program for restrcting the plant level.

Example....

AUTHORITY-CHECK OBJECT 'M_EINF_WRK'

ID 'WERKS' FIELD '0002'

ID 'ACTVT' FIELD '02'.

AUTHORITY-CHECK OBJECT 'M_EINF_WRK'

ID 'WERKS' DUMMY

ID 'ACTVT' FIELD '01':

Regards,

Ram Mohan

Pls reward points if helpful...

Former Member
0 Kudos
188

HI,

Syntax of the Authorization:

AUTHORITY-CHECK OBJECT object 
ID name1 FIELD f1 
ID name2 FIELD f2 
... 
ID name10 FIELD f10.

Go through the Below link, you wil get your answer

http://www.geocities.com/SiliconValley/Campus/6345/authorit.htm

http://www.sap-img.com/abap/checking-user-authorizations-in-your-abap-program.htm

Thanks

Sudheer

Former Member
0 Kudos
188

Hi osk,

1. I suppose u are writing the code for

checking the authorisations, in the

table maintenance events.

2. S_TABU_DIS is the right object.

(it does not mean only for DISPLAY),

It is used for EDITING also.

3. In this object - S_TABU_DIS

There is one field

ACTVT - Activity

where u can put

02 = Change

03 = Display

regards,

amit m.