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: 

Customers, Sales Orders Restrictions based on Sales Office and Sales Groups

Former Member
0 Kudos

hi all,

We have a typical scenario for one of our customers. They are SAP ERP, ECC 6.0.

They have sales employees/managers assigned to customers. In order to maintain the link between the sales employees and the customers, their earlier implementation partner followed the following method for the linkage.

Each sales employee and each sales managers are given a SAP User ID like 101, 012, 103 etc.. Sales groups OR Sales offices are also maintained with the same numbers/IDs. At the customer master level, each customer's sales group is given the sales employee ID (which is same as that of the sales group). The example is as follows.

Customer No. Sales Group Sales Office

__________________________________________________

CU1 101 108

CU2 101 108

CU3 102 108

CU4 103 109

CU5 104 110

The sales group names and the sales offices names are given the same names as that of the user IDs of the sales employees/sales managers. In the above example, the sales employee 101 (sales group 101) is assigned to customers CU1, CU2. The sales manager 108 (Sales office 108) is managing the sales employees 101 and 102.

Now the customer has some authorization issues. He wants us to provide authorizatinos in such a way that -

if the sales employee 101 logs on to the system he should be able to Display the CUSTOMERS and the Sales Orders (XD03, VD03, VA03) that are assinged only to him (In other words with the sales group 101) and similarly for other sales employees.

if the sales manager 108 logs on to the system he should be able to display the customers and the sales orders that are assigned to his sales employees (101, 102). In other words with the sales office as the manager's ID 108.

I tried to use the authorization object V_VBKA_VKO but this doesnt see to be serving the purpose as this object is not being checked at all in any of the above VA03, XD03 and VD03 transactions.

Similarly I did not find any other authorization object which makes use of Sales group field and Sales office field which also has a linkage to VA03, XD03 and VD03 transactions.

The customer is evaluating our contract with them based on this solution.

Any help is greatly and highly appreciate.

Thanks,

Niran.

3 REPLIES 3

sdipanjan
Active Contributor
0 Kudos

How do you feel to read your own thread? It looks horrible and I fear to read the full content..

Former Member
0 Kudos

Unfortunately, i was not able to format it properly. Sorry for that.

If I were to put it in simple statements - the requirements goes like this.

When a user logs on, he should be able to display only certain customers and sales orders based on the sales group/sales office assigned to the customer master and should not be allowed to display other customers/sales orders.

I was over-enthusiastic and trying to explain that with an example. Hope this helps.

Thanks,

Niran.

0 Kudos

Hi,

Please use the following authorization objects for your purpose. For more details please go through the documentation of the objects:

V_KNA1_BRG Customer: Account Authorization for Sales Areas

V_KNA1_VKO Customer: Authorization for Sales Organizations

FYI: V_VBKA_VKO SD Sales Activities: Authoriz.for org.data and sales activ.type

contains the following Fields which are relavant to your query

VKORG Sales Organization

VTWEG Distribution Channel

SPART Division

VKBUR Sales Office

VKGRP Sales Group

KTAAR Sales Activity Type for Sales Support

ACTVT Activity

Regards,

Dipanjan