‎2006 Nov 27 2:59 PM
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
‎2006 Nov 27 3:10 PM
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