Application Development 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: 

authorization object for purchasing

Former Member
0 Kudos

Hi Sap gurus,

Can someone tell me please how I can find suitable authority check object for purchasing? I created report for purchase orders history and now i would like to implement also authority check. I would like to check authorizations for purchasing groups, cost centers, orders types...

Do you have any example? Where to put this authority check into the program?

Thanks in advance, points granted,

BR

Saso

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

for purchasing grp object is: M_BEST_EKG

put authority check after selection screen

write

at selection-screen.

perform authority_check.

form authority_check

AUTHORITY-CHECK OBJECT 'M_BEST_EKG'

ID 'ACTVT' FIELD '03'

ID 'EKGRP' FIELD pr_ekgrp.

if sy-subrc <> 0.

error msg.

endif.

endform.

4 REPLIES 4

Former Member
0 Kudos

Hi Saso,

How about

M_BEST_EKG

M_BEST_EKO

M_BEST_WRK ?

Regards, Joerg

Former Member
0 Kudos

Hi

goto SU21 Tcode

and search for Purchasing Objects(authorization)

regards

Anji

Former Member
0 Kudos

Hi Saso,

You can list the authorisation objects, grouped by application area in transaction SU21.

Generally put the checks as early in the processing as possible, you don't want a report to run for five minutes, extracting data for the user to then be told they don't have authorisation to see it.

Regards,

Nick

Former Member
0 Kudos

hi,

for purchasing grp object is: M_BEST_EKG

put authority check after selection screen

write

at selection-screen.

perform authority_check.

form authority_check

AUTHORITY-CHECK OBJECT 'M_BEST_EKG'

ID 'ACTVT' FIELD '03'

ID 'EKGRP' FIELD pr_ekgrp.

if sy-subrc <> 0.

error msg.

endif.

endform.