Skip to Content
0
Former Member
Nov 03, 2016 at 09:50 AM

Authority check - Sap Query

91 Views

Hi,

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.

ENDIF.

Can someone help me?