Skip to Content

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

Authorization check on Company code/ Cost center combination


I am currently trying to restrict user access by company code and cost center combination.

We have roles defined for each user and I am trying to use the standard authorization object A_S_KOSTL in this role . It seems that since it is not a 'maintianed' object no activity can be assigned to this autorization object.

currently the values are :

company Code : 1110 , 1112, 1114

Cost Center : *

However i am getting sy-subrc as 0 even when i test for company code : 1341 for a user with the above role.

My code is :

    ID 'BUKRS' FIELD '1341'
    ID 'KOSTL' Field '*' . 

Please advise on how to proceed.

Thanks and Regards


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