Change Customer BAPI

Hello Everyone,
I'm calling BAPI, BAPI_CUSTOMER_CREATEFROMDATA1 from a webpage to create an internet cusotmer in SAP.  I'm populating the PERSONAL_DATA structure.  This call works fine and the cusotmer is created.  However, when I call BAPI_CUSTOMER_CHANGEFROMDATA1, I get the following error:
"Personal address different from company address; change not permitted"
So, I tried populating COMAPNY_DATA instead of PERSONAL_DATA and I got this error message:
"Double creation of company and user address not permitted"
Has anyone run into this before?  Thanks in advance.

Hello Derek,
I have run into a similar poblem before. In my case it was a problem regarding calling COMMIT after the first BAPI. The COMMIT was not always called correctly, so in some circumstances there were data inconsistencies which produced exactly these error messages. Ensuring the correct calling of COMMIT removed the errors.
Hope this helps,
Joerg

Similar Messages

  • BAPI for Change Customer

    Hi Experts,
    We have a requirement to change the details of a customer. We are using BAPI, "BAPI_CUSTOMER_CHANGEFROMDATA". Change is happening when we try to change details like name, But when we try to change 'country' field, we are getting error saying  "Personal address diffrent from comapany address; change not allowed"..... Can anybody help me with this,,, or can somebody suggest any other BAPI for change customer....
    Thanks and regards,
    Mahendra R

    Hi Mahendra,
    CHek the link below[using BAPI_CUSTOMER_CHANGEFROMDATA1;

  • Change Customer Sold to using BAPI

    Hi Gurus,
                  I am using BAPI_INQUIRY_CREATEFORMDATA2 for creating inquiry and changing with wrapper around.
    I can create inquiry with above BAPI.
    With out creating any further document i want to change sold to party, How can i do that?
    Which structure and field i have to use to change Customer sold to party?, When i try to change i am getting error as customer sold to AG is not allowed to change. (I guess it is trying to change customer sold to in partners)
    Thank you
    Kris

    I got it

  • Fm or BAPI for Change Customer: Sales area data

    Hello All,
    I need to change tax classification in Sales area data of Changing Customer ( transaction XD02 ).
    Function BAPI_CUSTOMERCRM_CHANGE looks like is ok for this, but I've try it and is not working, maybe i'm forgeting something or is not proper for this.
    Do you know a function for this or an sample with BAPI_CUSTOMERCRM_CHANGE ?
    Note: Function must not be for online store and Internet Sales.
    Any help will be appreciated and rewarded.
    Thank you a lot!
    Bogdan

    Hi again,
    Not the BAPI COMMIT was the problem,
    But I found FM SD_CUSTOMER_MAINTAIN_ALL, which is working realy fine.
    All the bests!

  • Changing a released Z bapi (Custom BAPI)

    Hi Guys,
    I created a Custom bapi (Z bapi) and has been released to production system. I need to add another IMPORT parameter to the function module and bapi. Kindly let me know the steps to change a custom bapi.
    Thanks in advance.
    mini

    Hi,
    Are you talking about an error(i.e you forgot to include this Import Parameter) or a new addition?????
    If error ..then you already have the answer.....but make sure you do a Where-Used List search for that BAPI and replace all its call with fresh Interface/Import Paraters...else you will end up having short dumps....
    In case  you are talking about upgrading your BAPI..then I will suggest you to use the new BAPI version like if the Older BAPI was ZBAPI, then this can be ZBAPI01....and use this BAPI for future use.....this will save you from any unwanted short dump.....

  • BAPI : Change Customer

    Dear All,
    I am requested to write a BAPI to update/insert/retrieve  customer email address .
    I am using BAPI 'BAPI_ADDRESSORG_CHANGE' inside my custom BAPI.
    is it a good approach or should I use any other FM. Please guide me.
    Thank You.
    Anu

    Hi,
    I think you should use SD_CUSTOMER_MAINTAIN_ALL to do this.
    Regards
    Prasenjit

  • Issue in custom BAPi

    Hi,
    We had created a custom BAPI.
    This BAPI is having a method, which in turn calls a custom FM (RFC enabled).
    This was working fine but due to some requirement we had to change the structure of one of the parameter used in the interface of the FM. This parameter was in 'Tables'.
    Now we require to change this structure again and have to delete some of the fields, but when we try to do the same we get an error message :
    "BAPI-structure:  invalid change: position field <F1> should be deleted"
    here <F1> is the field that we deleted.
    Has anyone seen such an error and knows the Correction.
    Please help.
    Thanks,
    Ad.

    Hello,
    You can not change the structure of the BAPI parameters, once it is released..!
    So, try to create a new structure with your necessary fields, replace it in your existing structure and again release the BAPI.
    Regards,
    Naimesh
    Reward points, if it is helpful..!

  • Customer-Bapi

    Hello Gurus,
    Whats the BAPI we can use to update the customer master
    tax Classification field.
    Regards

    Customer master data should only be changed either with ALE or with      
    Batch Input. SAP do not support any BAPI's to change customer master      
    data. The BAPI's were developed from different applications and were     
    designed for their special needs. Please have a look at the SAP     
    notes 390045 and 384462 which should explain the proceeding. If you      
    want to use Batch Input, please also have a look at note 306275.                                                                               
    Another possibility is to use Trx XD99, object KNA1.

  • "Customer" BAPI in Distribution Model for Training and Events

    We have an HR box with Training and Events - When booking an attendee on a course, you can select the "contact person" tab. Our SD box is separate from HR, so all the contact persons are maintained there. Is it possible to use the "Customer" BAPI in a distribution model so that when we search in the HR box for a contact person, it actually fetches the data from the SD box?
    I remember reading up on this a while back but I can't find the documentation I had back then...
    I know that in BD64 I can create a distribution model, and if I remember correctly, i should be able to "Add BAPI" and use object type "Customer" - Then add all the methods that I need... (like Find, List, Search etc) In essence, once this model has been distributed to the other system, if I go to transaction XD03 in the HR box, I should be able to display customer master details that only exist on the SD box - Is that correct?
    Please help as I am not able to get this to work...

    Ok I figured it out...
    I have created a distribution model with the HR system as the source, and the SD system as the target.
    In change mode, click the "Add BAPI" button and choose object BusPartnerEmployee, method CheckExistence
    Do the same for the following:
    BusPartnerEmployee.Display
    BusPartnerEmployee.GetList
    Customer.CheckExistence
    Customer.Display
    Customer.ExistenceCheck
    Customer.Find
    Customer.GetContactList
    Customer.GetDetail2
    Customer.GetInternalNumber
    Customer.GetList
    Customer.GetSalesAreas
    Customer.Search1
    Ok so I know that this might be a little over-kill, especially all the Customer methods that I added, but it works

  • Why do u need a custom structure for creating a custom bapi

    Hi ,
    why do u need a custom structure for creating a custom bapi.

    Hi,
        Once any Bapi realeased the structures it is using freezed to this bapi, the structure becomes specific to this Bapi, we can not make any changes over there. That is why we need custom structure for creating a custom bapi.

  • How to change recon.account directly in Table with out changing customizing

    Hi Gurus,
    I want to change Customer reconciliation account but this is not possible any more due to display option for reconciliation account in customizing.
    I know I can change customizing and then change the reconciliation account, but there is a better way doing this.
    We can change this directly in the table without changing customizing, but I don't know how to do this. Does any one know how to change directly in the table?
    Many thanks in advance

    Hi there,
    The steps that you should take include:
    1. go to SE16
    2. put knb1
    3. on the field selection input the customer you want to edit
    4. Execute
    5. type to the transaction field /h and press Enter
    6. double click to the customer line item you want to change the recon
    7. this will navigate you to the debug environment
    8. on the debug environment press find/search button -or- CTRL+F to find a keyword code
    9. you should see  if code = 'SHOW'.
    10. now please double click on the word "code" to set the Breakpoint
    11. Press F7
    12. you will see the program routine will stop at if code = 'SHOW'.
    13. Double click on the word 'code'
    14. 'code' will appear on the righ hand side with value = 'SHOW'
    15. change the value of 'SHOW' to 'EDIT' by double clicking the Edit icon (pencil) and replacing the value of SHOW to EDIT
    16. press Enter
    17. press F8
    18. you can now change the recon field
    19. Press SAVE button
    20. Double click 2x (or more) on the STOP sign, until your breakpoint is gone
    21. press F8 and you should see the message of "Database Record successfully created"
    Good luck!
    Regards,
    Fausto
    Edited by: Fausto Jahja on Jul 21, 2009 5:26 PM
    Edited by: Fausto Jahja on Jul 21, 2009 5:50 PM

  • Changing customer number in alv top of page for every new customer

    hi experts,
    in alv grid display top-of- page, how to change customer number  customer name for every new customer.
    please help me.
    Regards
    Naveen.

    You may look into this blog
    http://help-abap.blogspot.com/2008/09/salv-model-5-add-header-top-of-page.html
    This is has been contributed by one of the SCN contributor Naimesh Patel.

  • How to transport a custom bapi (written by me) to another server

    Hello friends,
    We have a software that is integrated with SAP. To make our software work with SAP, we have some custom bapis created on SAP side. We would like to transfer them to another server that is on a different network. After reading many documents and forums here is the what I have done and the problem that I am facing. Your help will be highly appreciated.
    1.Started Transaction 'SE80'.
    2.Created a test package called 'ZTRANSPORTTEST'.
    3.Created a function group called 'ZTRANSPORTTESTFN' under that package.
    4.Created a function module under the group called 'ZTRANSFUNCTION'
      NOTE: Just saved and activated without adding any code since I won't be using this function
                 for anything other than to test the Transport Feature.
    5. Clicked on the button that said 'Transport Organizer' and saw the list of requests including the
        EC1K900083one that I just created.
    6. I tried to release it by 'RIGHT CLICKING'
       It waited for few seconds with the message....."code inspector checks running.".
       Then it failed with an error message as follows
       Error in pre-export methods for request EC1K900083
      NOTE: I have made sure that everything is activated properly, since I read on a forum that this
                 error may occur if something is not activated properly. So I have done this step over
                 and over again making sure that everything is activated properly.
    7. I then started Transaction 'SE09' and saw the request 'EC1K900083' under the released tree with a 'CHECK' Mark.
    However, when I sent to /usr/SAP/trans/data and /usr/SAP/trans/Cofiles, I didn't find the transport data there.
    Has anyone done this before and if so what am I doing wrong? Your suggestions or feedback will be highly appreciated.
    Thanks
    Ram

    Hello Friends,
    Thanks for all the responses. I got the following response from SAP TECH SUPPORT which is not very encouraging and so I am just closing this.
    Thanks
    Ram
    ===========================================================================
    30.04.2009 - 11:40:29 EST - Reply by SAP
    Dear Mr Ram,
    Thanks for explaining it once again.
    The package is just container for development objects that belong together, in that they share the same system, transport layer, and
    customer delivery status. Please check the below link http://help.sap.com/saphelp_nw70/helpdata/en/ea/c05da3f01011d3964000a0c94260a5/frameset.htm
    As I understand correctly you want to 'export' your development outside of your SAP system domain. For that either you can do it using 'Externalsystems'. 'External systems' are a special form of virtual systems. A real SAP System is used in their place to perform actions on the transport directory. They are different from virtual systems in that they have their own transport directory that you can freely choose, you can use external systems to:
    -Write transport requests to exchangeable data media
    -Read transport requests from exchangeable data media
    -Send transports to other transport domains using an intermediate directory
    -Send transports to other transport domains using an intermediate directory
    If you want to transport between systems in different domains, we recommend that you link domains with 'domain links'. There must be a
    permanent network connection between the systems in the two domains, similar to the connection between systems within the same domain.
    I would recommend to take a look in the documentation available in SAP Online help for further information on how to setup this
    complex transport landscape. I hope this information helps you to setup the transport system.
    Or you simply create a transport request of type 'transport of copy' and input target system and client (which you should know) system as
    target system include the objects (bapi) in the request. This ensure that requests will only be imported into that system. Other systems willnot be touched.
    'Transport of copies' type transports do not get automatically added to the next buffer after they have been imported into a system. When creating a 'Transport of copies' transport the target system must be specified as this type of transport does not respect the defined transport routes outlined in TMS.
    You can use this request type to transport objects to a specified SAP System using Transports of copies. The objects are transported with the version they have in the current SAP System. The original location of the objects remains unchanged. There is no delivery to another SAP System.
    But we at AGS we cannot suggest, as the nature of your request indicates this is a consulting issue rather than a software error.
    Customer Support's charter, under the SAP maintenance agreement, is to handle software or system defects in the standard delivered R/3 product. Please refer the note 1054121.
    So you have to seek assistance from SAP's Remote Consulting Service which is billable.
    I am sorry that I could not give you more positive reply in this case.
    With warm regards,
    Sajiv
    Active Global Support - Technology
    =========================================================================

  • Error while creating a Custom BAPI?

    Hi Guys,
                  I created Custom BAPI thru SWO1 tr code and API method also.AFter API methos creation i went to GOTO->ERRORLIST then i got these errors
    "Field SAPB -SAPFILES is too long to be included in the container
    Field BAPICONTEN -LINE is too large to be included in container"
    so what shall i do to overcome thiese errors
    Thanks,
    Gopi.

    Hi Gopi,
    Check this link
    [http://www.erpgenie.com/sap/abap/bapi/example.htm]

  • Changing custom Domian characterstics

    Hi All ,
    I am changing Custom domain  characterstics , while activating table there was a error that the table should be converted , Therefore i have adjusted the table in se14 and activated  . it activated fine , My question now is , if I send the request to quality system , will the table get adjusted automatically .
    Thanks
    Vinay Kolla

    it will be taken care.

Maybe you are looking for

  • ICal - Apple's most problematic app ever

    1. missing data issues 2. iCal Helper - spikes CPU 3. easily corrupted data 4. no easy way to restore from Time Machine (do you really know where you data is ?) 5. at least 3 names for "cloud calendar" my latest issue is #2. Why does iCal Helper spik

  • Page numbers wrong in PDF - original Quark file ok!

    We do magazines mainly and have a Homes and Interiors publication which I have produced for over 7 years. The workflow has changed over the years and is now a PDF one as you'd expect. We output from Quark 7.31 to a postscript file then distill using

  • Can .air file be installed via command line?

    Hello First off - I know next to nothing about adobe air I'm trying to help a situation created by a developer who was terminated A video application was developed for us - its name is createVideo.air My understanding is we have to 'install' this app

  • Jdeveloper freezes up laptop

    Hi, I've tried using the following versions of JDeveloper unsuccessfully on an Gateway AMD Turion64 dual core, 2GB RAM running Windows Vista: 10.1.3.1, 10.1.3.2, 10.1.3.3 & 11.1.1. I've had the most luck with 10.1.3.3 and made it though the 'Introduc

  • Billing Doc Output Program

    Hi How to check the SD Billing document output program used to print. Regards RG