2006 Jun 15 7:17 AM
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.
2006 Jun 15 7:23 AM
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...
2006 Jun 15 8:28 AM
Hi
Following links show some relevant info for authorizations.
http://www.sapdb.org/7.4/htmhelp/ee/1c5bcdeba711d4aa2800a0c9430730/content.htm
Also check the following links.
http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43cc455611d189710000e8322d00/content.htm
http://www.sap-img.com/human/main-hr-authorization-object-for-security.htm
http://www.sapdb.org/7.4/htmhelp/ee/1c5bcdeba711d4aa2800a0c9430730/content.htm
Please reward if it helps.
2006 Jun 15 8:40 AM
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
2006 Jun 15 9:30 AM
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.