i need your support.
I need to add to the following Authority check in my SAP query the number of the company code (XXX) that user can't see.
AUTHORITY-CHECK OBJECT 'Z_BUKRSDIM'
ID 'BUKRS' FIELD acdoca-rbukrs
ID 'ACTVT' FIELD '02'.
IF sy-subrc <> 0.
MESSAGE e999(zzzzz) WITH 'User not authorized for comp. code XXX' acdoca-rbukrs.
Can someone help me?