Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Authorization Object : Component Assignment

Dear Guru,

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.

Please advice




Hello Ashok,

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.

Good luck


3 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question