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

Authorisation Object.

Former Member
0 Likes
365

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
344

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

2 REPLIES 2
Read only

Former Member
0 Likes
345

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

Read only

0 Likes
344

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....