Authorization Object : Component Assignment
Please propose Authorization Object to restrict Component reservation for perticular users
Which value should I restrict I_BETRVORG , PM07 (Change of material)
Description says Change of Material but my requirement is to restrict Assigning Material.
Jogeswara Rao K replied
You can achieve this easily through user-exit PPCO0023. .
IF sy-uname = 'USERID'.
MESSAGE 'Sorry ! You are not authorized for Components entry.' TYPE 'E' DISPLAY LIKE 'I'.
The above 3 lines in include ZXCO1U23 of the above exit, would give rise to the following error if person with userid 'USERID' tries to use the Components tab.
You can hardcode these userIDs as above if the list is small. If unauthorized list is small then the 1st line of above code becomes like this:
IF sy-uname = 'USERID1' or sy-uname = 'USERID4' or sy-uname = 'USERID9'.
IF authorized list is very small then this line becomes like:
IF sy-uname <> 'USERID2' and sy-uname <> 'USERID5' and sy-uname = 'USERID7'.
The other alternative is to maintain ZTable either for Authorized users OR for Unauthorized users and then add few more lines before the above code.
Your ABAPer would easily understand and do it for you in minutes.