on 05-26-2015 9:36 AM
Hi Gurus,
I have two work centers in my organization and both are using same notification type N1. At the same time, I need to restrict change and display activities in the notification by work center.
How do I block the access by work center in Notification?
For example:
Work Center ABCD can only change and display Notification type N1 with Work Center ABCD. If the Notification N1 belong to Work Center EFGH, Work Center ABCD is not able to change or display the Notification. Vice versa.
Hello Hafiz,
Below is a tested solution, technical way.
Step1
Have a Z-table with UserId and the OBJID (you will get this form CRHD table against your Work center).
Have entries in the Z-table like this. (only one entry for one UserId)
Step2
Put the following code in the include ZXQQMU36 (user-exit QQMA0026).
DATA: V_UNAME TYPE SY-UNAME.
CLEAR V_UNAME.
SELECT SINGLE UNAME FROM ZPM_OBJID INTO V_UNAME WHERE OBJID = I_VIQMEL-ARBPL.
IF V_UNAME <> SY-UNAME.
MESSAGE: 'You are not authorized for this Maint. Work Center.' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.
Now the system throws the following error, when a user with a particular OBJID entry in the Z table tries to enter a Notification (IW22 / 23) with a different Maint. Work Center.
Good luck
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hafiz,
I remember we had a similar discussion some time back.
I dont think this can be done using the work centres, since there is no standard authorization check is happening for IW21. Or create a custom authorization object for work centre and assign to this transaction. Check with Security Consultant.
May be try using User Exit and check whether this works for your requirement. Suggest you to check User Exit QQMA0026
Regards
Terence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear,
This can be controlled by authorization objects of user.
Check the authorization objcets
C_ARPL_ART - Workcenter category ( For PM it is 0005)
C_ARPL_WRK - Work center- plant here you assign as per your requirement to two users.
Regards,
Pardhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.