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

Similar Messages

  • 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

  • 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

    Hi Experts,
    I have a question here. When ever we try to edit the business partner data in Customer/Prospect role in CRM. We are getting error message " please fill the sales office and sales group data in sales area xxx. We  go to corresponding sales area and fill the data so that we avoid the error.
    My question is sales office and sales group fields are not mandatory fields in field group settings in Customizing but how  are we getting this error. How can we avoid this error permanently. Kindly help in this issue.
    Regards,

    Hi,
    Where r u seeing it is maintained as the mandatory field. I mean here:--
    Another thing You can go to SPRO-Cross-Application ComponentsSAP Business PartnerBusiness PartnerBasic SettingsField Groupings--Configure Field Attributes per Activity
    Then double click on change and double click on CRM Organization. There it will be maintained as required field. Change it to Opt. Entry.
    Or
    While pressing F2 in that particular field..
    Thanx
    Chinmaya

  • Sales office and sales group should greyed out..

    Hi All,
    I have a requirement here where the sales office and sales group in sales order should  greyed out once billing is done for the sales order.
    Kinldy suggest how can we achieve this.
    Thanks,
    Pavan.

    You can use program MV45AFZZ and USEREXIT_FIELD_MODIFICATION
    more information is here.
    https://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

  • VF04 combines documents by Sales Organ. -Sales Office and Sales Group

    Hi,
    How can i combines documents by Sales Organization < Sales Office < Sales Group please?
    When i use VF04, he combines documents with the same customer number, proposal billing type and sales organization. I need to add Sales Office and Sales Group, where can i do that ?
    Thanks for your help.
    Spawntae
    Edited by: Spawntae on May 19, 2009 5:04 PM

    Hello,
    You need new fields in LVKDFI structure, for example sales office.
    when you created news fields, them you implemented include VV05HFZ2, for example you can loop structure lvkdfi and select sales office from vbak or likp and write this in new fields.
    by

  • Automatic determination of Sales Office and Sales Group in a Transaction

    Hi CRM gurus,
    I was able to perform automatic determination of Sales Org, Division, and Distribution Chanell (Org determination), but still need to do the Sales Office and Sales Sales Group part.
    I tried to do this with the Sales Rep in my Lead and Opportunity Transactions. I had 'employee' assigned to the Sales Group in the Org Model, and selected the same BP as Sales Rep in the Transaction, but it did not help. I'll appreciate if you could share your thoughts.
    Thanks,
    -Pras

    Hi Pras
    If there is only one org unit found and this one org unit contains only one sales office / one sales group then it should be filled in automatically. Be sure that they are part of the org profile and determination rule.
    If you want to restrict the determination which was found automatically look in this thread ORG.determination - there is a reference to the code where the found org units are displayed and where you can modify the selection.
    Regards, Kai

  • Hiding sales office and sales group fields in VA01

    Hi all,
            I want to hide sales office and sales group fields in VA01 initial screen. How can i do it?
    When i enter VA01 Tcode it should ask for Order Type, Sales Organization, Distribution Channel and
    Division only.
    Thanks in Advance,
    Kiran.

    Create  a transaction variant for the sales order T.code VA01
    using the T.Code:SHD0.
    For further steps chk the following thread:
    https://forums.sdn.sap.com/click.jspa?searchID=13577625&messageID=5413014
    Regards
    AK

  • Sales office and sales groups description mass change

    Can i know how to go abt changing the sales office and sales groups descriptions in bulk.
    I have arnd 500 entries to change if done manually ! Is there any other way out?

    Hi Vamshi,
    T Code MASS wont work as this is to change the descriptions of sales offices and sales groups.
    If i have to do manually i will have to get into SPRO and change accordingly.
    So, how do we go abt?

  • 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

  • Sales office and sales group in STO scenario

    We need to populate the sales group and sales office in intercompany billing originating from a STO (PO>STOdelivery>IV invoice). However, the sales office and sales group is blank despite both the customer masters of both plant customer (shipto) and Intercompany Payer (ininvoice) containing this. Wanted to understand any configaration settings for these or Userexit is the only option
    regards
    Nagappa

    If you can, try & maintain the Sales Office & Sales Group in sold to party.
    But as per my knowledge in billing you can only find Sales district.
    Regards
    JP

  • Sales office and sales group and sales district

    what is the difference between Sales office and sales group and sales district,
    please explain,
    Thanks

    hi
    sales office
    A organizational unit in a geographical area of a sales organization.
    A sales office establishes contact between the firm and the regional market.
    sales group
    A organizational unit that performs and is responsible for sales transactions.
    sales district
    A geographical sales district or sales region.
    You can assign customers to a sales district and use the sales district to generate sales statistics.
    regards

  • 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.

  • 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

Maybe you are looking for

  • How do I copy the address location of a file

    Greetings everyone, I was wondering if someone can tell me if there is a way to copy the location of a document (or whatever) in my computer. I want to paste the location of various things into a database where I can just click on it to open it but I

  • Unknown Error (-69) HELP MEEE!!

    My ipod will upload up to 200 songs, and then i get this window pop up saying some unknown error (-69) Anyone can help?

  • I received a T420 with B2 Chipset stepping. What to do?

    Last week I received a T420 (4180 W1G). Today I checked the Chipset Stepping by using this Webside (german) http://www.heise.de/newsticker/meldung/Intel-Bug-C​hipsatz-Erkennung-2-Update-1182613.html  The result is, that my brand new T420 has got the

  • HT5262 How do i releasing the warning in my ipad for "icloud backup This iPad hasn't been...."

    My iPad screen has been locked, can not doing anything. THere is a pop up window "iCloud backup, This iPad hasn't been backup in 4 weeks. Backups happen when this iPad is plugged in, locked and connected to Wi-Fi". i already connected to Wi-Fi and co

  • Can I run RCU without uninstalling SOA Server?

    Hi All, I want to get one clarification. I am getting some SOA infra database problem when I started the SOA server(it is telling some queues in SOA Infra database don't not exist and it(SOA INFRA DATABASE) is also having some database problems). My