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

VA01 Authorization Check

Former Member
0 Likes
970

Dear Gurus,

We have created Z - Authorization Object for VKBUR to control Sales Area wise Access to the Customers.It is working fine.

During the Sales order Creation for Branch Transfer, the user is entering his Sales Office and Creating Sales order for any Branch Customer.

It is not stoping the user.I have checked in the ST01 Trace File,this customized Auth Object is Checking the and returning the Return Code as RC=4, but allowing the user to create the entry.

Please help me to stop the user to create the sales order for other Sales Area.

Thanks & Regards,

R.Shiva

1 REPLY 1
Read only

Former Member
0 Likes
492

Hi,

for your comment I think that you have Insert The AUTHORITY-CHECK statment in a user-exit of SAPMV45A.

But you need to control de return code of the authority check.

Sample:

AUTHORITY-CHECK OBJECT 'ZVKBUR'

ID 'VKBUR' FIELD vbak-vkbur.

IF sy-subrc NE 0.

MESSAGE Ennn(ZZ) WITH 'No authority for this Sales Area'.

ENDIF.

Regards,

Oscar