Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authorization Check

Former Member
0 Likes
655

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

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

3 REPLIES 3
Read only

Former Member
0 Likes
573

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

Read only

Former Member
0 Likes
572

Hi Max,

Thanks for an immediate response.

I need to check authorization for Purchasing Orgn, Purchasing Group and RFQ Doc in Rejection Letter Format.

Read only

rahul2000
Contributor
0 Likes
572

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