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

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.

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

Similar Messages

  • How to restrict Sales office and Sales Group.

    Hi All,
    I want to restrict the users from changing the sales office and sales group in the sales order.
    Is there any standard way to achieve this or do we need to do with User exit??
    Please help.
    Thanks,
    Pavan.

    hi
    there is no standard settings for estrict the users from changing the sales office and sales group in the sales order
    so you have to write the logic in userexit
    DATA: lt_user_list   TYPE STANDARD TABLE OF tvarvc,
           lw_user_list   TYPE tvarvc,
           lr_user        TYPE RANGE OF syuname,
           lw_user        LIKE LINE OF lr_user.
    IF screen-name EQ ' VBAK-VKBUR' and   VBAK-VKGRP.
    * IF sy-tcode EQ 'VA02'.
    **Get list of users who are allowed to change SO - only they can change payment terms
         SELECT *
           FROM tvarvc
           INTO TABLE lt_user_list
          WHERE name = 'ZSD_VA02_ALLOWED'
            AND type = 'S'.
         IF sy-subrc = 0.
           LOOP AT lt_user_list INTO lw_user_list.
             lw_user-sign = lw_user_list-sign.
             lw_user-option = lw_user_list-opti.
             lw_user-low    = lw_user_list-low.
             lw_user-high   = lw_user_list-high.
             APPEND lw_user TO lr_user.
             CLEAR lw_user.
           ENDLOOP.
    **    If user is not in the users listed for change allowed
           IF sy-uname NOT IN lr_user.
             screen-input = 0.
           ELSE.
             screen-input = 1.
           ENDIF.
         ENDIF.
       ENDIF.
    ENDIF.
    go to STVARV t code here you check the NAME and give the user ids who need to change

  • Block sales order creation based on material qty

    Hi,
      In my scenario i want to block the sales order creation based on material qty , how i can do this?
    Example:
    Material qty below 100 = able to create sales order
    Material qty above 100 = not able to create SO
    Thanks,
    Arun

    Hi
    For restricting the order if it is less than a specified qty, you can maintain the 'min order qty' in material master.
    But your requirement is the other way round - Restrict order if it is more than specified qty.
    In this case, you need to use the following sales order exit  in progran MV45AFZZ
    u2022     USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Hope this helps.
    Regards
    Madhu

  • Sales office and sales group are not copied from quotation to sales order

    Hi All,
    I have maintained sales office and sales group in quotation maually at header level.while  coping to sales order sales office and sales group are missing.
    Please let me know what would be reason for missing those twoand whether i should check anything in copy controls.
    Regards
    Mohan

    As its a standard functionality to have the Sales Group & Sales Office from Quotation to Order. But in your case, check the Copy Control settings at Header Level .
    DataT 051 General header data       Copying requirements 001 Header-same customer
    DataT 101 Header business data
    DataT 001 Partner header
    In case , they are also same, then check if any Logic is added in the Existing Routine.
    Best Regards,
    Ankur

  • How to download ECC customers without Sales Office and Sales Group values

    Dear all,
    In SD Customer master record we enter Sales Office and Sales Group fields under Sales Area tab-->Sales Tab.
    While downloading customers form ECC to CRM, How can I exclude this Sales Office and Sales Group Data from the download.
    I want to download customers without this sales office and Sales group data...Kindly suggest me how can I do this.
    Your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    Hi Chandrakanth,
    I have removed 'Object Permitted in determination' checkbox for all Sales Offices, but still the problem persist.
    I am getting following problem in SMW01 while downloading customers.
    "Sales office O 50000004 sales group O 50000057 not maintained for sales area O 50000001 C5 Z0
    Message no. CRM_BUPA_FRG0140204."
    This problem is coming for all customers, so I though of excluding Sales Office and Sales groups from downloading.
    Can we use Filters functionality for this, if so what sort of settings need to be maintained for Customer_Main object in R3AC1 transaction.
    Please suggest, your suggestions will be highly appreciated.
    Best regards
    Raghu ram

  • Sales office and sales group compulsory when creating a sales order

    Hi,
    When creating a new sales order, I would like to have the sales office and sales group compulsory.
    Does anyone know where is the customizing point?
    Thanks for your help,
    Ronan

    Dear Ronan,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Define Incompleeness Procedure (T. Code: OVA2)
    Here, Select Group as A - Sales Header
    and double-click: Procedures (left hand Dialog Structure).
    On to next screen, select Incompleteness Procedure "11" and double click: Fileds  (left hand Dialog Structure).
    On to next screen, include Table-Filed as:
    1. VBAK - VKBUR (for Sales Office) and
    2. VBAK - VKGRP (for Sales Group)
    for both the entries, select Scr. as "KKAU" and Status as 01 and check Warning.
    Note: To make changes in to InCompleteness Procedure, click: (CTRL+F1)
    Recommendation: Please save chnaged Incompleteness Procedure as Z - procedure; to avoid changes in to Standard Procedure.
    Now,
    Spro --> Img --> Sales and Distribution --> Basic Functions --> Log of Incomplete items --> Assign  Incompleeness Procedure --> Assign procedures to the sales document types (T. Code: VUA2)
    Here, assign your Order type (say, OR) to your Incompleteness Procedure (say, Z - Procedure)
    Check Field: IC-Dialog as per requirement (Clck the field and press F1, to read its usage).
    Now, Go to, T. Code: VOV8; and select your Sales Doc. Type (say, OR).
    Within the Sales Doc., Assign your defined Incompleteness Procedure in to:
    Tab: Transacton Flow --> Field: Incompl.proced.
    Note: To enable screen, for changes, press (CTRL+F4).
    Best Regards,
    Amit

  • Sales Office and Sales Group Automatic Determination based on the Sold to P

    Hello every one
    We need determine sales office and sales group based on sold to party master data in Activity Management in SAP CRM 2007.
    I want to know if there is a way to do it when we save the document.
    Any ideas???

    hi, the sales org, office, group determination can be configure in Organization Determination.
    You can choose Org Determine rule for your CRM document.
    And if you feel the rule can't match your requirement,  you can create a new rule, and create customize function module for the rule, you can add your determine logic in the function module to realize your requirement.

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

  • How to get sales order number based on purchase order

    hi,
    what is the transaction code to find the sales order number based on the purchase order number
    Regards,
    Murali

    Hi,
    Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
    Prase

  • Reserved sales order qty based on sales order

    Dear All,
    is there any way to reserve the sales order qty in stock based on the sales order?. Actually i want to block the some qty for paticular sales order.  For example I created one sales order with 100 qty of x article and now i want to delivery of sales order with the  same qty after one month . In this case i want to reserve this qty for this sales order that should be not deliverd by another sales order.
    Thanks
    Abhi

    Hi,
    Block this qty against sales order
    MB1B >>> Use movement 413 & enter
    Speciefy sales order number & item number
    Then this qty will be permanently reserved or blocked for the perticular order.
    Kapil

  • Get the sales order number based on customer number

    HI all,
    how can i get the sales order numbers based on the customer number?
    plz tell me the table names.
    thanks,
    Srini

    hiiiii..
    go to database table VBAK
    where you can find customer id and sales order
    use a select statement in your report program
    and key as kunnr ...
    i hope it does ...the job

  • How to find out the Sales order no based on spool no

    Hi Experts,
    Anyone tell me how to find out the Sales order no based on Spool no.
    Thanks and regards,
    Amjad

    Hello Mohammed,
    Please check the following SAP Spool tables for your spool request.
    You will find your required document number as an Object key in these tables.
    TSCMSTAT   --> Field OBJNO
    SOOS           --> Field APPLKEY (Document number will be a part of this key)
    If your document is getting printed by SAP Script, then dont forget to take SCR value in the OBJTP field while searching for your record.
    Thanks and Best Regards,
    Vikas Bittera.
    ***Points for Usefull answers ***

  • Sales Office and Sales Group cannot be changed

    Hi folks,
    when i create a sales doc. based on a billing doc./sales doc.,  the sales units - sales ortgn, dist. channel, division, sales office and sales group are copied onto the newly created doc.
    Sales orgtn, distr. channel and division are coming in grey mode or in disable mode which cannot be changed.
    But Sales office and sales group are changeable..
    Is there any way to make these two fields i.e Sales Office and Sales Group  also in grey mode / disable mode or unchangeable mode.
    thanx in advance,
    Sourav

    hello, friend.
    try using SHD0 to create your own screen variant for the sales order.  just follow the on-screen instructions.  look for Sales Office and Sales Group (if any) and check the box making manual entries not possible.  after you save the variant, assign this to your order type and test.
    regards.

  • How to add sales office and sales group code in Badi Order_Save?

    Hi,
    i have a requirement .
    the concept is like this ,we have S>D>G lay out.
    initially the sales office and sales group were fetching  values from "G".
    But my requirement is the sales office and sales group should fetch values from "D"..when the transacion is "ZGRW"..
    This is in CRM platform...So how shud i assign values of D to sales office and sales area??
    how to code this...
    help me out
    Edited by: VARUN VADNALA on Jun 25, 2009 1:35 PM

    Hi Sangeeta,
    As per your statement, my understanding is that the Organization Attributes are not maintained in the Customization. If all the values are properly maintained then based on the Organization Data determination, the system would have picked up the data. You can first check the Organization Structure and see all the attributes are properly maintained or not and then check whether the Object Permitted in determination checkbox is checked. Then create a Transaction and see that all the Organization data are getting filled properly.
    Have a look at the following link for a complete guide to the Organization data determination customization.
    http://help.sap.com/saphelp_crm70/helpdata/en/6d/5c1738453fde16e10000009b38f8cf/frameset.htm
    If the Organization data customization is not meeting your requirements then you can have a second look at the development approach. Then we can have a look at the available Objects to get the desired functionality.
    Hope this helps.
    Thanks,
    Samantak.

  • How to authorization sales office and sales group in VA21 and VA01 t-code

    I need to authorization sales office and sales group in va21,va22,va23 and va01, va02, va03 to control users access the sales order.
    I found some articles how to resolve this problem.I have created new authorization object Z_VBAK_ VKO, and add these fields to the object: VKORG: Sales Organization, VTWEG:Distribution Channel, SPART: Division, VKBUR:Sales Office, VKGRP: Sales Group, AUART:Sales Document Type, ACTVT:Activity
    I have add the object Z_VBAK_VKO to va01, va02, va03 in SU24 translation.
    I test the authorization , but fail, va01 and va02 do not check the authorization.
    Why? what can i do? please help me .
    thanks

    Dear Wu
    I think you are using the concept of Master Roles and Derived Roles.If ur using then create a master role and derived role for the authorisation group you want. And in the derived role assign the specifics to the respective logins ID. If you want to attach the authorisation to the T-Codes Va01 or VA21 etc then you have to use Exit.
    Correct me if i am wrong.
    Regards
    Jyotsana

Maybe you are looking for

  • How can I Transfer my iTunes Library from my old computer to my new?

    I just bought a new MacBook Pro (my first Mac) and I am trying to figure out how I can get my library from my iTunes off of my old computer onto my new one?  I thought that it was saved by accounts, so when I signed into my iTunes on my new MacBook,

  • Importing a CSV file into a table for Fiori

    Hello, I create a fiori application with sap web ide  and i need to import a csv file from my desktop and show its content into a table in my fiori application Please could some one help me Ameni, Subject was edited by: Michael Appleby

  • Defaulting Purchasing Organization in Purchase Order.

    Hi, I had maintained a Purchasing organization for a Plant in the following node SPRO > Enterprise Structure > Assignment > Assign std Purchase Orgn to Plant But when i am processing  Stock Transport  purchase order it does not defaults the purchase

  • Group by query problem

    Hi I have a table Employee having 3 columns "Name", "Date", "Salary" I need to group by with week and required output should be Name                Week                          Salary a1      1-7 June      10000 a2      8-15 June      20000 a2      

  • How to send contact via bluetooth?

    I just purchased a vehicle that has handsfree bluetooth capbility to use my iPhone. I got the thing to call but my question is, how do I transfer my contacts from my iPhone to my car?