Find out what roles have restricted company codes and values
Do you need to find out what roles you have set up with restricted company code values for specific authorization objects? Read this tip to find out how.
Do you need to find out what roles you have set up with restricted company code values for specific authorization...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
objects?
If your company has changed its company code (BURK) and if you have limited access to a particular company code in your roles, you will have to adjust the roles to use the new company code or to use * for any code.
But, how do you quickly find out what roles you need to adjust?
Simple. Query table AGR_1252 and check the contents of the LOW and HIGH fields. You can use your favorite query tool (Query Analyzer in SQL Server for example) or use transaction SE16 or SE11 within SAP.
Here is a sample query:
select MANDT, AGR_NAME, VARBL, LOW, HIGH
from AGR_1252
where MANDT='100'
and (LOW <>'' or HIGH <>'')
and (LOW <>'*' and HIGH <>'*')
and AGR_NAME not like 'SAP%'
The above query looks for any non-SAP role in client 100 where either LOW or HIGH have anything different than *.
You'll get a list of the roles you need to adjust to use the new company code.
Giovanni Davila
select MANDT, AGR_NAME, VARBL, LOW, HIGH
from AGR_1252
where MANDT='200'
and (LOW <>'' or HIGH <>'')
and (LOW <>'*' and HIGH <>'*')
and AGR_NAME not like 'SAP%'