‎2008 Dec 05 10:47 AM
I have a query. I have created authorisation object 'zbill'.
the user 'TSTXBILL' is assigned the role ZCXBILLADDCHG where he will be allowed to change and add some materials....
and another user TSTXBILLCK has authorisation only to lock and unlock materials. he is assigned the role ZCXBILLLOCK...
What I wanted to do is I have to code this in my program... f that user does not have security role 'ZCXBILLLOCK' assigned to their userID, then they should receive an error message that they do not have access to that function.
only those users can lock...
Can anybody help me to solve this.
I have included only one fiedl ACTVT.
Thanks in Advance
Jay
‎2008 Dec 05 10:56 AM
You can create data element and domain with name ZROLE and assign field name ZROLE to your Authorization Object ZBILL.
Maintain 2 values n domain ZROLE - ADDCHNG and LOCK
Use AUTHORITY-CHECk in your program to check which value is assigned to user.
Ask your basis person to map to roles accordingly.
Regards,
Mohaiyuddin
‎2008 Dec 05 10:56 AM
You can create data element and domain with name ZROLE and assign field name ZROLE to your Authorization Object ZBILL.
Maintain 2 values n domain ZROLE - ADDCHNG and LOCK
Use AUTHORITY-CHECk in your program to check which value is assigned to user.
Ask your basis person to map to roles accordingly.
Regards,
Mohaiyuddin
‎2008 Dec 05 1:37 PM
thanks a lot... But still I need some clarifications...
Two test groups are created and roles are created for that....
do I need to assign a authorisation object for that.....
Will the basisi or fucntional guys do this jobs....