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 check

0 Kudos

how to define authorization check in module pool, whether to write authorization check in pbi or pbo,kindly please me solution

2 REPLIES 2

FredericGirod
Active Contributor

You have 1 statement AUTHORITY-CHECK

This statement will return SY-SUBRC <> 0 if the corresponding Object with Field & Value is not assigned to the user.

After this, this is your job to put at the right place this control, it will depend of the control you made (sales org, company code, action on button, ...). So there is no simple answer to your question

Sandra_Rossi
Active Contributor

it's PAI, not PBI. I think your question is more about what is the principle of PAI and PBO, because if you know that would answer your question:

pbo pai site:sap.com

You'll get the "solution" of authorization check by searching them in the Web, there are lots of them...

authorization check site:sap.com