Skip to Content
1
Former Member
Jul 10, 2007 at 07:13 PM

authorization check

75 Views

hello frns,

below is the code for authorizations,

the requirement is that ,

the authorization should be yes only

if all the bukrs are authorized for the user,

but now it is giving authorization even if one bukrs is valid.

AUTHORITY-CHECK OBJECT 'M_MATE_BUK'

ID 'ACTVT' DUMMY

ID 'BUKRS' FIELD P_FS.

IF SY-SUBRC = 0.

ZZ_EXIT = 'Y'.

ENDIF.