‎2008 Feb 28 4:12 PM
Hi,
I am asked to perform authorization check for Company code, Purchasing Orgn, Purchasing Group. Please let me know how to do authorization check and any standard checks available to do so.
Thanks in Advance,
John
‎2008 Feb 28 4:20 PM
Hi John
the are several authorization objects, u should know us for which kind of data u need to use those authorizations.
For example for purchase order are: M_BEST_EKO, M_BEST_EKG.
I don't believe there is an object for company code, because the Purchasing Org. can beleng to one company code only.
Max
‎2008 Feb 28 4:20 PM
Hi John
the are several authorization objects, u should know us for which kind of data u need to use those authorizations.
For example for purchase order are: M_BEST_EKO, M_BEST_EKG.
I don't believe there is an object for company code, because the Purchasing Org. can beleng to one company code only.
Max
‎2008 Feb 28 5:27 PM
Hi Max,
Thanks for an immediate response.
I need to check authorization for Purchasing Orgn, Purchasing Group and RFQ Doc in Rejection Letter Format.
‎2008 Feb 29 4:44 AM
Dear John,
For company code..u can do something like this...
READ TABLE iebeln INDEX 1.
AUTHORITY-CHECK OBJECT 'K_KEKO'
ID 'BUKRS' FIELD iebeln-bukrs
ID 'ACTVT' FIELD '03'.
IF sy-subrc <> 0.
MESSAGE i003(zmm) WITH iebeln-bukrs.
EXIT.
ENDIF. " Authority Check
Reward if it helps