BAPI to change sales office of the contract

Hi to all
I want to change sales office of the contract(VA42), through BAPI.
could any one suggest me which BAPI i have to use.
Now i am trying to use BAPI_CUSTOMERCONTRACT_CHANGE.
but its not updating.
regards
raadha

Hi Radha,
Have you saved the change properly? Are you calling the function module 'BAPI_TRANSACTION_COMMIT' after making the changes ?
Let me know if you are doing the same.
Thanks,
Samantak.

Similar Messages

  • [CRM] Change sales office from within an order

    We've been trying to get the following to work... as you might guess, so far without success.
    From within a CRM order, if we change the partner number for the department a check is being done whether that partner belongs to the same sales office. If that's not the case, the sales office has to be adjusted.
    Since this might have an effect on authorization, the changing of the sales office has to be done in a separate job (action). In this job, I do the following:
    - Retrieve data on the object
    - crm_order_read for that object
    - select the correct sales office
    - prepare the crm_orgman structure with the new data
    - crm_order_maintain with the crm_orgman and inputfields tables
    - optionally commit work, bapi_transaction_commit etc.
    For as far as we can see, the data is correct. However nothing is being changed. Ideally what I'd like to do is break into the process, change the object that's being processed in memory, and let the system do its job.
    What we've also tried is (shame):
    - Retrieve data on the object
    - crm_order_read for that object
    - select the correct sales office
    - direct update the corresponding tables with the new values
    This works, but as soon as we return control to the system, the changed values (verified, if we look at the tables the values are changed) are reset to what they were.
    It's taking way too much hours for something that should be (in my eyes) a pretty simple action. Any suggestions? Thx in advance!

    Hi Egbert,
    Please take a careful look at the GUIDs you are using: if you are using the orgman structures, the REF_GUID is not the ORGMAN-GUID but instead the ORDERADM_H-GUID. Can you confirm if this has been checked and if it then still is not working? The COMMIT_WORK BAPI is also not necessary.
    Kind regards,
    Joost Janssens
    PS Please reward points if this reply helped you!

  • How to change Sales office in Bussiness partner details

    Hi ,
          I am unable to make changes in Bussiness partner details ie in Tcode BP .Since the Sales area data has been desabled .
    So can any one guide me how to change sales office in BP
    regards,
    divya

    Dear Anirudh ,
    When i checked the org Structure ,there same user has been assigned to two sales offices.
    So when it is taking the sales area data ,it is capturing the data from jammu sales office rather than Chandigarh.
    I can't change the User that has been assigned for more than 2 sales offices b'cos of the restriction of User-id
    So please help me.
    regards,
    divya

  • Changing sales office in sales office using save_document user exit

    Hi,
      My requirement is to change the sales office to 109 based on some conditions.
    Here i am using FORM USEREXIT_SAVE_DOCUMENT   user exit in the sales order to do it.
    but it is not taking this value .
    Can any one suggest me any other place i.e. user exit where we can change sales office depending on some conditions.
    Thanks & regards
    Manjari.

    You have to use userexit 'USEREXIT_SAVE_DOCUMENT_PREPARE' because when exit 'USEREXIT_SAVE_DOCUMENT' is called all the order data has already been submitted into update task. So if you want to change data in the order and have it saved with it you need to use 'USEREXIT_SAVE_DOCUMENT_PREPARE'.
    Regards,
    Michael

  • Change sales area while copying contract from another contract

    Hello Gurus,
    I am copying sales contract from another sales contract. I have maintained copy control accordingly.
    Here i want to change sales area of being created sales area.
    Ex.
                                                 Sales area
    Reference contract             1000-10-10
    New Contract                       2000-10-10
    How can i control this ??...Where and what change should i made in copy control to achieve this ?
    Thanks in advance...
    Regards,
    Tarpan Vadaliya

    Thanks Kapil for your input.
    But still my question is not answered completely.
    My requirement in simple that i want to create a contract with reference to another contract but in different sales area. My customer will be remain same. So it does not relevant whether i use routine 001 or 002.
    I had tried to create with both routine but i am not getting succeed.  I had also removed below mention code from routine and tried but not succeed.
    IF HVBAK-VKORG NE VBAK-VKORG.
          MESSAGE E007 WITH HVBAK-VKORG VBAK-VKORG.
        ENDIF.
    Is the dist. channel the same in both reference and target?
        IF HVBAK-VTWEG NE VBAK-VTWEG.
          MESSAGE E011 WITH HVBAK-VTWEG VBAK-VTWEG.
        ENDIF.
    Is the division the same in both reference and target?
        IF HVBAK-SPART NE VBAK-SPART.
          MESSAGE E012 WITH HVBAK-SPART VBAK-SPART.
        ENDIF.
    Still waiting for helpful solution...
    Tarpan

  • Change sales office and sales group after delivery and invoice is created

    Dear All,
    after we create invoices for 60 sales order we found that the sales office and sales groups are wrong, we need to change these orders,
    is there any way rather than cancel the invoices ?

    Are they greyed out?? check with T.code MASS , obejct type BUS2032 and select sales header and input your sales order > execute

  • What is a table containing sales order and the contract it refers to

    Hi,
    I have a following problem (ECC6.0):
    A sales order is created in VA03 and referenced to a contract. I need to locate the table or tables (or FM) which contains the information of the sales order number and the contract number.
    Problem with VA03 is that I can see both numbers in the document flow screen; i.e. sales order (Doc.no) is xxxxx and the Preced.Doc field contains the contract number. However, this is only an ALV view. I cannot get anywhere from the program SAPMV75F.
    I have checked table VBAK and it contains most of dat but not the link itself as it has any sales document. I need to have an entry containing the link between a given sales order (+item) and the contract.
    Instead of creating with "Create with reference" and select Contract (which you need to refer to),  the system is defined so that contract is used with a hierarchy customer. Debugging of creating did not help as the linking was conducted in the background without activation of debugging screen. I'm not an SD and no experience with contract.
    Help is highly appreciated,
    Pipsa

    Hi,
    The field VBAK-GUEBG is used for valid from and valid to date,
    you can find the Preceding and Subsequent sales and distribution document under table 'VBFA'.
    under SMOD, you can find below exit use for Contract data modification:
    V45W0001 Function module exit for copying sales header data into
    items.
    This enhancement contains the user exit:
    -   EXIT_SAPLV45W_001
    regards
    Vivek.
    Edited by: Vievk Vardhan on Jan 29, 2010 3:13 PM

  • Adding/changing sales office

    Hello,
    I need to rename  current sales office and I need to know following:
    - which transaction exactly I have to use for this purpose,
    - can I change it directly on PRD server without need to go through steps DEV-QAS-PRD and does thi column have any dependence with other elemnts in SD?
    Any help is appreciated and many thanks in advance for prompt reply!
    Cheers;)
    Sam
    Edited by: samnovice on Feb 1, 2012 10:49 AM

    which transaction exactly I have to use for this purpose,
    Use Tcode OVX1.
    can I change it directly on PRD server without need to go through steps DEV-QAS-PRD and does thi column have any dependence with other elements in SD?
    Based on standard, change of name of sales office will not have any impact. Other then, if  in some enhancement or thats hardcorded for any output type program.
    And not advisable to change directly on PRD.
    Regards
    JP

  • Any BAPI to retreive sales area for the given BP Number in CRM

    HI, I am looking for a BAPI which can retreive sales area for the given BP number.
    I appreciate for the quick response and points are awarded.
    Thanks,
    Kumar.
    Edited by: Kumar on Jun 5, 2008 6:40 PM

    Hi Kumar,
    This is not exactly a Bapi but you can use the following 2 functions.
    The function below will get a list of sales areas assigned to the BP.
    call function 'CRM_BUPA_FRG0010_GET_LIST'
        exporting
          iv_partner_guid = lv_partner_guid
        importing
          et_sales_areas  = lt_areas.
    You can then use CRM_BUPA_FRG0030_GET_DETAIL to get the detail of the sales area.
    Hope it helps.
    Johan

  • BAPI for Changing Contract (ME32K)

    Hi Experts,
    I am searching for BAPI which can be used for changing contract (T-Code ME32K). I'd tried to use this BAPI "BAPI_CONTRACT_CHANGE", but it do not have fields by which I can update the Service Line Item also.
    Any help would be appreciated.
    Thanks and Regards,
    Virendra Kedia

    Hi,
    Using BAPI_CONTRACT_CHANGE ,we cant update service line items.
    Instead of that   use BAPI_ENTRYSHEET_CREATE  to create  SE for changes in rates of the contract at the servic level.
    Check below link for documentation.
    https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATE%20with%20mulit-accounting
    Regards,
    Ravi

  • Change Sales Order Contract Data FM

    Hi Friends
    Kindly let me know if there is any function module or BAPI to change Sales order Contract Data of each line item. 'BAPI_SALESORDER_CHANGE' dosent have that.
    Thanks

    Hi Ram,
    Check will this helps you ...
    call function 'BAPI_CUSTOMERCONTRACT_CHANGE'
    exporting
    SALESDOCUMENT = vbeln
    CONTRACT_HEADER_IN = w_header
    CONTRACT_HEADER_INX = w_headerin
    INT_NUMBER_ASSIGNMENT = 'X'
    ORDER_HEADER_INX
    BEHAVE_WHEN_ERROR = 'P'
    LOGIC_SWITCH
    TESTRUN = 'X'
    convert = 'X'
    importing
    salesdocument = v_order
    salesdocument = vbeln
    tables
    return = t_return
    CONTRACT_items_in = t_items
    CONTRACT_ITEMS_INX = r_items
    CONTRACT_partners = t_partners
    CONTRACT_schedules_in = t_sched
    CONTRACT_conditions_in = t_conds
    CONTRACT_text = t_texts .
    Regards,
    Poornima

  • Changing of DC,Division, Sales Office and Sales Group

    Hi Gurus,
    We are creating Projects using Assembly Process in our system.
    In our system, profit center on Project would default from Sales Order (Substitution rules) which derived from Customer (USA and Non-USA), DC, Division, Sales office and Sales group.
    Due to business requirements, it was decided to change the profit center on Project. But It is not possible to change values against DC & Division fields since they are grayed out, we are retaining Customer as it is and no change. Note that we are planning to reverse billing and accounting documents which were created during billing to customer.
    Please do let me know is there any work around solution to update DC, Division, fields. Would appreciate your inputs and thanks in anticipation. Points would be rewarded for suitable solution.
    Regards,
    Sudhakar

    Hi,
    Please remove WBS element assignment in the sales order, create another sales order and map the same WBS there.  While creating new sales order you can use required Sorg, DC, division.  We do this in resource related billing for changing sales area in the S.O.
    Not sure if this helps you.  If not, only solution is to pre-close the existing project and create a new one.
    Regards,
    P Gomatheeswaran

  • Need to change sales tax from point of sale to point of delivery

    Hi all,
    Recently the tax laws were changed such that sales tax is to be collected based on where the product will be delivered to (rather then where the product was sold from).
    Briefly we are an agency with mulitiple divisions, and within those divisions several sales offices.  Previously, a sales would be made from the sales office, and based on the tax rate for that division and sales office (county/city) the sales tax would be calculated.
    Now we need to shift that so that a sales can still be made from a division/sales office, but the collected tax is based on where the product will be delivered to. 
    I'm sure there is a way to set this up, but I'm at a loss as to where to start. 
    One of teh options the customer suggested was to have a sales area set up with all the cities and tax codes in it.  Then assign that sales area to each of the sales offices.  Is this possible? Or do you have to have a separate sales area for each sales office?
    I'm open to any suggestions you may have as I'm not very familiar with this side of SAP (sales distription and taxes).
    Thanks in advance for your thoughts!
    Laurie

    Thanks Bill.  As it turns out, we are in the US where jurisdiction is an option I guess so this procedure may not be needed.  As I dig further it appears we are currently setup to use TAXUS procedure which utilizes tax codes - a limited number.  But since the recent change, we may need to switch to TAXUSJ. 
    Does this ring a bell for anyone?  If it is what we need to do, what need I be aware of that will change in the rest of the system?
    Thanks for your answers so far!
    Laurie

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • How to pass sales office to BAPI_PO_CREATE1

    Hi,
    im using the 'BAPI_PO_CREATE1', im having a problem that it is showing error as 'pass the sales Office'.
    In ekko, sales office field is available. but in the structure BAPIMEPOHEADER, sales office field is not available.
    please help me how to pass the sales office to the Bapi.
    Thanks in advance,
    Regards,
    Elavarasu.

    Hi
    I think that it's an append in table EKKO as a ZZ-field (for instance, ZZVKBUR). If I am right, two possibilities:
    1. Populate with structure EXTENSIONIN. See SAP Note 582221 - FAQ: BAPIs for purchase orders, quesion 15.
    2. Try to populate it with badi 'ME_PROCESS_PO_CUST'.
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • Project Freezes on Loading

    I've completed an entire project in After Effects and I saved it and was going to import it back into Premiere the next day.  When I went to open it up in After Effects, it froze while opening on like 33%.  I was fored to redo the entire project in A

  • Extra Selection Critieria in KSB1 Transaction

    Hi All One of my users requested to run KSB1 transaction ( Display actual cost line items for cost centers) with the Internal Orders in the selection criteria. Currently we donu2019t have internal orders in the standard selection and in additional se

  • PCI-7342 Digital I/O example

    Does anyone have an example of reading/writing to the Digital I/O ports on a PCI-7342? (2-Axis Stepper/Servo Controller with Digital I/O) I'm very new to Labview and am having difficulties using the labview environment commands. Right now I have a si

  • Getting an image to pop up on the cover page of a package

    Im using adobe acrobat 8 standard.  I have a picture as the backgroud of a page and i would like to be able to click on various parts of the picture and have other scaled down pictures pop up on that same page.  Can this be dont in acrobat 8 standard

  • Listening to Radio Streams on the iPhone

    Can you listen to a AM/FM radio station that is being streamed on-line using the iPhone's Safari? I subscribed to MLB.com to listen to baseball games and wondering if you can listen to an audion stream on the iPhone. Any info would be appreciated.