BAPI_CUSTOMER_CHANGEFROMDATA1

I am trying to use bapi_customer_changefromdata1 to update the tax jurisdiction code. What all fields are mandatory.

Hi Kaushal,
Refer to the FM Documentation.
1. Mandatory entries:
ORDER_HEADER_IN : DOC_TYPE     Sales document type
                   SALES_ORG    Sales organization
                   DISTR_CHAN   Distribution channel
                   DIVISION     Division
ORDER_PARTNERS..: PARTN_ROLE   Partner functions, SP sold-to party
                   PARTN_NUMB   Customer number
ORDER_ITEMS_IN..: MATERIAL     Material number
                   REQ_QTY      Order quantity in sales unit
2. Ship-to party
If a ship-to party hasn't been entered, the ship-to party = sold-to
party
3. COMMIT control:Parameter WITHOUT_COMMIT
If this switch is activated, the system does not process any Commit Work and the application that has called it up must trigger the Commit itself. To do this, useBAPI_TRANSACTION_COMMIT.
4. German keywords:
The following keywords must be entered in German, regardless of the
logon language:
DOC_TYPE       Sales document type, for example TA for standard order
PARTN_ROLE     Partner function, for example, WE for ship-to party
Further Information
You can see further notes in OSS. Note 93091 contains general information about the SD BAPIs.
REgards,
AS

Similar Messages

  • BAPI_CUSTOMER_CHANGEFROMDATA1 error: Specify a URI type.

    I am getting the following message on some of the customers I try to udpate using BAPI_CUSTOMER_CHANGEFROMDATA1: Specify a URI type.  I assume this has something to do with the URI communication method.  I am, however, NOT updating the URI as part of this BAPI call.  In my program I first call BAPI_CUSTOMER_GETDETAIL1, I then update several fields in the company data structure and then call BAPI_CUSTOMER_CHANGEFROMDATA1 passing the updated data.

    It appears that it has something to do with having a URI Communication Method loaded to the Customer Master.  If i remove the URI Communication Method from the Customer Master prior to running my program, I do not get the error message.  Once I added it back, however, I got the message again.  Don't understand why since I am not attempting to update the URI information in my BAPI call.  I have tried saving several different, valid URIs via XD02 but continue to get the error as long as there is a URI communication method loaded.  Does anyone know if this is a BAPI_CUSTOMER_CHANGEFROMDATA1 bug or if I can do something to prevent from getting this error message.

  • BAPI_CUSTOMER_CHANGEFROMDATA1 message 826

    I am using BAPI_CUSTOMER_CHANGEFROMDATA1 to change only Transportation Zone.  I get msg 826 "Contact Person Address Different from company address" for some customers.
    I am sending: lastname, city, post code, country, langu, region, kunnr, sls org, trans. zone, currency, and   g_opt_personaldatax-transpzone = 'X'.
    Can someone inform me on how to avoid this error.
    Your help is greatly appreciated.
    Kind Regards,
    Jason
    Message was edited by:
            Jason DeLuca

    Hi,
    Check out the following documentation weather you have taken care of the below mentioned points or not?
    This method of the "Customer" business object can be used to change the personal or company data of a customer that exists in mySAP ERP.
    Only one filled structure (personal OR company data) can be passed on to the BAPI.
    One person should be changed as a customer:
    In this case, the customer is entered as a person (company address = address of contact person = personal address). The customer can then be a consumer (see import parameter PI_CONSUMEREN for the BAPIs: and BAPI_CUSTOMER_CREATEFROMDATA1 ).
    (a) The customer is not a consumer:
    If "only" a company address exists, this BAPI is used to change the company address accordingly, and create identical personal and contact person addresses.
    If a personal address exists that is different (*) to the company address, then this is regarded as an error. In this case, the BAPI should receive the company address as well (see case (ii) below).
    If only a company address exists with a contact person address and without a personal address, this BAPI can only be used to change the customer if a company address is also transferred to the BAPI ("ONLY_CHANGE_COMADDRESS" = 'X').
    A different address is understood to be the following:
    The personal or contact person address is different to the company address in one or more of the following fields: Language, Street, House number, Region, Town, Postal code, Country, Telephone number, Fax number, E-mail.
    Note: for customer data created before Release 4.5A, a company address is different from the contact partner address if the first name, surname, or title of the contact partner of the 2nd entry differs from the 1st entry of the name field or title of the company address.
    (b) The customer is not a consumer:
    If only a company address exists in this case, then this is recognized as an error.
    Otherwise, the same functions apply as for case (a) above.
    (ii) A company should be changed as a customer:
    In this case, only the corresponding address data (PI_COMPANYDATA) is changed in the BAPI.
    Otherwise, the same change mechanisms are valid for changing the company customers as for the personal customers.
    In all three cases (personal customer, consumer, or company customer) the following is valid:
    All customer address data is determined from Central Address Management (CAM).
    The personal/comp. data needed is the same as that needed for the method for creating a customer (siehe BAPI_CUSTOMER_CREATEFROMDATA1).
    The authorization requirements for using this BAPI are the same as those for BAPI BAPI_CUSTOMER_CREATEFROMDATA1, whereby here, the authorization is needed for the change activity.
    The sales organization is a required field.
    The number of mySAP ERP customer has to be changed must be transferred to the BAPI.
    Ashvender

  • BAPI_CUSTOMER_CHANGEFROMDATA1 handling in BSP

    Hello Sir/Madam,
       How to get PI_SALESORG, 
                  PI_DISTR_CHAN,
                  PI_DIVISION
       dynamically, means according to the Customer No. I want to get.
      Thanking You,
    Netaji.B
    SE, Yash Technologies,
    Hyderabad.
    CALL FUNCTION 'BAPI_CUSTOMER_CHANGEFROMDATA1'
      EXPORTING
        PI_PERSONALDATA            =
        PI_PERSONALDATAX           =
      PI_OPT_PERSONALDATA        =
      PI_OPT_PERSONALDATAX       =
      PI_COMPANYDATA             =
      PI_COMPANYDATAX            =
      PI_OPT_COMPANYDATA         =
      PI_OPT_COMPANYDATAX        =
        PI_SALESORG                =
      PI_DISTR_CHAN              =
      PI_DIVISION                =
        CUSTOMERNO                 =
    IMPORTING
      RETURN                     =

    Hi Netaji,
    You can check out the DB table KNVP which contains Customer Master Partner Functions. The fields VKORG,
    VTWEG, SPART correspond to Sales Organization, Distribution Channel, Division respectively of a particular customer. So whenever the user enters Customer number and clicks the button, onInput processing Event handler before calling the BAPI, get those fields.
    Hope this helps you.
    Regards,
    Ravikiran.C
    Message was edited by: Ravikiran C

  • I'd like to need  parameters value for 'BAPI_CUSTOMER_CHANGEFROMDATA1'

    I try to work import parameters for 'BAPI_CUSTOMER_CHANGEFROMDATA1'.
    Import parameters
    PI_PERSONALDATA :
           TITLE_P                        Company
           FIRSTNAME                      Dieter
           LASTNAME                       Berger
           MIDDLENAME
           SECONDNAME
           DATE_BIRTH
           CITY                           Berlin
           DISTRICT                       Hermsdorf
           POSTL_COD1                     13467
           POSTL_COD2
           PO_BOX
           PO_BOX_CIT
           STREET                         Calvinstrasse
           HOUSE_NO                       36
           BUILDING
           FLOOR
           ROOM_NO
           COUNTRY                        DE
           COUNTRYISO                     DE
           REGION                         11
           TEL1_NUMBR                     030-8853-000
           TEL1_EXT
           FAX_NUMBER                     030-8853-999
           FAX_EXTENS
           E_MAIL
           LANGU_P
           LANGUP_ISO                     DE
           CURRENCY
           CURRENCY_ISO                   EUR
           TITLE_KEY
           ONLY_CHANGE_COMADDRESS
    PI_SALESORG       :              0001
    CUSTOMERNO       :               1000
    CustomerNo '1000' is not made by me. I think it might be given by SAP.
    when i put them, it shows the message ' EF2                  826Contact person address different from company address; change not allowed'.
    i don't understand what it means.
    plz, give me data for parameters value.

    Hi,
    Dont pass anything to the field ONLY_CHANGE_COMADDRESS. Just put it blank.
    Still you get the problem after doing this,
    check at the customer master (XD03) contact person tab ( Last tab ) and click on address push botton at the bottom.
    Ensure that the address there and the company code address are same.
    Regards,
    Sai

  • Error 825 in BAPI_CUSTOMER_CHANGEFROMDATA1

    Dear Experts,
    While executing this customer change from data RFM , i m facing this error.
    Error 825 Personal address different from company address; change not allow.
    Earlier i faced other problem like title MR converting to mr and all , i have rectified tat problem. but now i m unable to rectify this ,
    Kindly help me to proceed from this..
    Thanks in Advance ..
    Srini.V
    Edited by: srinivsan6044 on May 3, 2011 10:54 AM

    Hello,
    Please have a look at the SAP note 390045.
    The BAPIs of the function group V02D (as well as e.g. funtion module BAPI_CUSTOMER_CHANGEFROMDATA1)
    are intended exclusively for use in the SAP Online Store and the SAP Internet Sales R/3 Edition, that is you
    can create or change consumers from the SAP Online store and SAP Internet Sales R/3 Edition in the R/3 system.
    You CANNOT use them to create or change customer masters or consumers in the standard system;
    Customer master data should only be changed either with ALE or with Batch Input. Another possibility is to use
    Transaction XD99. Please have a look at the SAP note 384462 too.
    When you use the mentioned BAPIs outside of the Online Store or with customer master records which were
    created or changed outside of the Online Store DATA MAY BE LOST !
    Regards,
    David

  • BAPI_CUSTOMER_CHANGEFROMDATA1 commit

    Is there a way to prevent BAPI_CHANGE_CUSTOMERFROMDATA1 from automatically commiting.  I would like to include this function call with other updates and want to control the committing of work to the database until all updates complete successfully.

    nope that woudlnt work, you are not supposed to insert data into DB table in yoru code as then you would nto be able to roll it back.
    instead create an Update Function module, call that to update your z table in update task. your code will still have the updated values in Z table. then you can call the BAPI** to update the addresses. if it fails now if youc all BAPI_TRANSACTION_ROLLBACk it will roll back all the changes
    If you do direct DB update in your transaction itslef, you cant roll it back

  • Problem with BAPI_CUSTOMER_CHANGEFROMDATA1

    Hi all,
    i am using above bapi to change the address of a customer.
    I setted the following manditory parameters to 'X' in Pi_personaldatax
    city,
    country,
    currency,
    E-mail,
    fax ext,
    fax num,
    lang p,
    last name.
    but when i execute this in  VC i am getting following message"make entry in to all the required fields" .
    and onemore thing the Currency field is not updating.
    Could anyone pls provide me the solution to resolve this ?
    Thanks in advance
    kiran

    Hello Brian,
    Thanks for your pointer. Actually The customer's reference number i was providing in the PI_COPYREFERENCE structure was a sold-to party customer and it uses external customer number assignment. When i used "New Internet Customer" (that doesnt use external assignment by default) as customer's account group, the customer was created successfully and assigned customer number was returned.
    I want to ask now how could we give a customer number in the BAPI as i am unable to find any such column in any of the tables. (Customer number is an "out" parameter so it can only return the number of created customer). Secondly, how to chnage the external assignment property of a particular account group (like sold-to party). i.e, how could we change the account group configurations through SAP GUI??
    - Umair

  • Add a new sales organization to a customer

    Hello,
    I have to add a new sales organization to some customers. I've been searching a bapi to do it, but i haven't found anyone. I only found a bapi to create a new customer (BAPI_CUSTOMER_CREATEFROMDATA1) or to change an existing customer (BAPI_CUSTOMER_CHANGEFROMDATA1), but not for add a new sales organization. Anybody knows how to do it?
    Thaks in advanced,
    José Luis.

    Hello,
    try the Bapi BAPI_CUSTOMER_EDIT for this issue, it should be able to extend the vendor via this bapi.
    I hope that this information helps.
    Regards,
    Isabelle

  • BAPI to update customer details

    Hi All,
    What is the BAPI that we should use to update customer details into SAP??
    What are the mandatory fields we need to update customer record in SAP?
    Thx
    Navin

    Hi,
    1)
    I tried BAPI_CUSTOMER_CHANGEFROMDATA1, imported to XI. But it has the following Parameter Names and corresponding Associated Types respectively:
    PI_PERSONALDATA, PI_PERSONALDATAX, PI_OPT_PERSONALDATA, PI_OPT_PERSONALDATAX, PI_COMPANYDATA, PI_COMPANYDATAX, PI_OPT_COMPANYDATA, PI_OPT_COMPANYDATAX
    BAPIKNA101_1, BAPIKNA101_1X, BAPIKNA105, BAPIKNA105X, BAPIKNA106,BAPIKNA106X, BAPIKNA105, BAPIKNA105X.
    For the above 8, I am getting following message in XI: Schema for type urn:sap-com:document:sap:rfc:functions: BAPIKNA106 (Category Data Type) not found
    2) SD_CUSTOMER_MAINTAIN_ALL
    It is not Remote-enabled module
    3) BAPI_CUSTOMER_EDIT
    I dont I can update details of the customer...I am not sure...Because it has only Customer ID in request parameters....If I want to change name or address...how would I send them in Request  to BAPI??
    Thx
    Navin

  • Customer Master using Appended structure KNA1

    Hi
    We have to update few ZZ description fields in ZAKNA1, which are not part of user interface in XD01/02/03. The available options are such as LSMW, Batch input require code addition through user exit ZXF04U01/ EXIT_SAPMF02D_001.
    I would like to use BAPI as we have a plan to use web services. Any idea how to extend the BAPI's such as BAPI_CUSTOMER_CHANGEFROMDATA1 or BAPI_CUSTOMER_CREATEFROMDATA1 using best practice?  I donu2019t find any extension structures like other BAPIu2019s have. Without ExtensionIn and ExtensionOut parameters, a BAPI can not be enhanced correct?
    The version we are using is ECC 5.0. Any ideas with customer master BAPI will be greatly appreciated.
    Bala

    Hi Bala,
    Just some general comments without having looked at your specific problem. Since you're on ECC 5.0 you cannot use the new [Enhancement Framework|http://help.sap.com/saphelp_nw2004s/helpdata/EN/94/9cdc40132a8531e10000000a1550b0/frameset.htm], which would make such changes more easy...
    A rather awkward workaround for extending the BAPI's is sometimes to add append structures to an IMPORT parameter of the BAPI. However, this is a rather dangerous and limited approach, because you might get into trouble depending on where the structures are used (i.e. if you add a field, it might cause harm in other programs that use the structure) and you also have to study the source code to see if you even could utilize those additional fields.
    A pretty generic option in lieu of other approaches is to generate a custom wrapper function module around the standard BAPI. Within your custom BAPI you can add the missing fields as parameters, call the standard BAPI and then do the additional updates. The big advantage of such a solution is that
    <ol>
    <li>Your change/additional logic is obvious (not hidden in a customer exit or BAdI, which are often harder to find when troubleshooting or changing functionality)</li>
    <li>Any changes to the standard BAPI will automatically also take effect in your custom BAPI (since you didn't copy the original one); this excludes of course interface changes, but here you anyhow would have to do something...</li>
    </ol>
    Should you have custom fields that are already exposed on the customer maintenance screens via enhancements, then you might want to consider using the wrapper approach, but simply export the additional data to memory, then call the standard BAPI and within the customer/user exits handling the additional fields fill them via an import from memory.
    Cheers, harald

  • Creation of Customer master

    Hello All,
      i have to create customer master in that i have to update sales  details also.
    I want ur suggestions.
    1) I can use  Bapi  "BAPI_CUSTOMER_CREATEFROMDATA1" is der but it does not update sales data. For this after this bapi i can use BAPI_CUSTOMER_CHANGEFROMDATA1.
    2) I can use "SD_CUSTOMER_MAINTAIN_ALL".
    Tell me which one is more easy and less time consuming.
    If there is any other solution please suggest.
    Thanks in Advance.
        Yog

    Hi Yogesh,
    Hi,
    sorry to reply after the message closure.
    Maybe you will read it.
    SD_CUSTOMER_MAINTAIN_ALL is used in standard during the maintenance of a consumer using the standard customer master data transaction XD01 & XD02.
    It is not intended to be used out of the transaction and in no case it should be used out of its original context. Due to the specificity of the function module, out of the original context we may face limitations and data inconsistencies.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    BAPI_CUSTOMER_CREATEFROMDATA1 is part of them. This one uses SD_CUSTOMER_MAINTAIN_ALL, so the above remark is still valid. Moreover, this BAPI is to be used only from process  SAP Product Catalog. Out of it and due to its limitation, a lot of troubles are expected.
    Sorry.
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See [note 384462|https://service.sap.com/sap/support/notes/384462]
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Hope this helps.
    BR
    Alain

  • Address Change in Customer/Vendor Master upon creation or change Master

    Hi Expert,
    We need to change some Address  fields( *ADR6-SMTP_ADDR , ADRC-DEFLT_COMM, KNA1-TELTX, KNA1-TELX1*) in Customer Master based on some condition while creation/change the Master Data. I need to do same fields in Vendor Master as well. 
    I tried all the Possible exit Here.
    If you know a Proper exit /BADI or one possible solution to solve my problem?
    If anyone can provide any BAPI name which is used to Modify any customer/Vendor address will be very much helpful as well.
    Thanks in Advance for your help.
    Suman Adhikari

    Hi Kesav,
    For customer  BAPI_"CUSTOMER_CHANGEFROMDATA" and "BAPI_CUSTOMER_CHANGEFROMDATA1" both Sales Organization is a required filed. Here we need to change some fileds(standard communication filed , Customer Email address, and Telex No)  based on telex filed of customer for Customer irrespective of Sales Organization or any other constraints. The same requirement is for Vendor as well. If there is any proper exit/badi where KNA1 and address structure ADRC,ADR6 etc are available that will we good.
    I just need to modify some address fields for customer as well as vendor. If there is any BAPI for change address(customer/Vendor) then that will also be helpful.
    Suman Adhikari

  • Customer master and Vendor master

    Hi Guys,
    I am working on inbound inteface. I am getting data in form of flat file for masterial master(MATMAS04), Customer master (DEBMAS06 ) and vendor master (CREMAS04).
    I am writing a Z program . First calling function module EDI_DATA_INComing and then corresponding BAPI.
    I am usng BAPI_MASTER_SAVEDATA for material master
    Please suggest me corresponding BAPI for vendor and customer master
    Thanks And Regards
    Neha Kapoor

    For Customer
    BAPI_CUSTOMER_CHANGEFROMDATA
    BAPI_CUSTOMER_CHANGEFROMDATA1
    BAPI_CUSTOMER_CREATEFROMDATA
    BAPI_CUSTOMER_CREATEFROMDATA1
    For Vendor
    don't know any (BAPI transactional that only call transaction)
    Regards

  • Payment terms in bapi

    Hi im trying to change customer data using the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1.
    I manage to change all the fields except the payment terms field.
    Whay is it hapenning?

    Hi,
    Pls check that you are properly passing
    PI_OPT_PERSONALDATA
    PI_OPT_PERSONALDATAX       internal tables..
    if your are passing only PI_OPT_PERSONALDATA without passing PI_OPT_PERSONALDATAX, then it will not have any effect. So check you are passing both tables with same fields.
    Regards,
    Meet

Maybe you are looking for

  • Problem/leak using NSMutableDictionary

    Hi All, I am trying to use NSMutableDictionary to store my app data into plist. The code is as follows .. with comments about my problem NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docum

  • My iPad screen is distorted and looks psychedelic

    My iPad screen is distorted and looks psychedelic

  • Reg: Score Cards in Obiee

    Dear all, i have created one Score Card in that i have almost 15 objectives , till yesterday it is working fine. Today when i open my score card it is displaying and error like Odbc returned an error(SQLexecdirectw) and all the objectives all showing

  • Ultra Search Home Page

    I'm trying to get to the Ultra Search home page, however the following link: http://otn.oracle.com/products/ultrasearch/index.html brings up Oracle Warehouse Builder 10g.

  • DATE FROM THE GIVEN WEEK NUMBER AND YEAR

    hi to all With weeknr, yearnr  i need to find STARTDATE  (first day of the week), ENDDATE (last day of the week) The first day of the week is always a Monday. example 44 2007 week nr is 44 year is 2007 how to find it. is there any standard function m