BAPI to create an online customer?

Hello,
Normally one would create a customer using XD01 via filling all the relevant data such as Address, Company Data, Sales Org Data, etc....
We have an application via which, we would like to make call to a BAPI and be able to create a customer.
The BAPIs available such as BAPI_CUSTOMER_CREATEFROMDATA1, BAPI_CUSTOMER_CREATEFROMDATA, BAPI_CUSTOMER_CREATE do not provision for entering all the data which one would like to supply while creating a customer.
Does anybody has any idea out there as to what option should I be looking at to create a customer via BAPI.
Regards
Mahesh

Hi,
these bapis are not to be used out of their original context. Jürgen is fully right when he points at Note 390045
SD_CUSTOMER_MAINTAIN_ALL is even worse, it 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.
This is precisely what you face in your case.
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.
Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See note 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

Similar Messages

  • BAPI to create customer records (XD03)

    Hi
    I've seen some similar threads to this but I'm not sure the question is fully answered yet.
    Is there a single, or are there multiple BAPI's available that will fully create a customer master record, by which I mean all the company code data as well as te Sales area data?  I am aware of the BAPI_CUSTOMER_CREATEFROMDATA1, but this doesn't appear to meet the full requirement.  Also I'm slightly alarmed by the 'Only for ONLINE Store!!!' comment in the documentation.
    Previous posts on this forum and on others suggest that to fully create a customer record people have had to resort to writing their own BDC programs.  Is there anyone who can confirm that this is the case?
    Thanks for your help.
    Dominic

    Hi
    Thanks for the welcome and the advice.
    While researching this further I came across SAP note 390045 which is directing me away from using the BAPI route.  I realise now that I didn't mention in the original post that the idea we're investigating is having the data for the customer accounts created externally to SAP and then call a BAPI to create the account in SAP.
    I suspect we could achieve this but it's getting a bit messy so ALE might be the better option.
    Thanks,
    Dominic.

  • Bapi to  create customer Master

    Dear all,
    As far i know there is no standard bapi to create a customer.  There i s standard fm used her is SD_CUSTOMER_MAINTAIN_ALL. I tried to create customer master using this and making the function module as remote enabled. i tried to created a  zbapi and use this fm inside of this. Please tell me if any idea on this.If any body knows   please help me in this.
    Regards,
    Madhu.

    Dear Alain
    Once again thanks for your reply. I passed customer no to extract data of a customer . But it is not extracting any data .
    I am thinking to fill all the fields of the table by seeing hoe it is extracting the data . can you give me some idea on this .
    DATA: ls_i_main   TYPE cmds_ei_main,
            ls_e_main   TYPE cmds_ei_main,
            lt_custs    TYPE cmds_ei_extern_t,
            ls_cust     TYPE cmds_ei_extern,
            ls_head     TYPE cmds_ei_header,
            ls_instance TYPE cmds_ei_instance.
      CONSTANTS: lc_obj_task TYPE cmd_ei_object_task VALUE 'M'.
      ls_instance-kunnr = '0000100001'.
      ls_head-object_instance = ls_instance.
      ls_head-object_task = lc_obj_task.
      ls_cust-header = ls_head.
      APPEND ls_cust TO lt_custs.
      ls_e_main-customers = lt_custs.
      CALL METHOD cmd_ei_api_extract=>get_data
        EXPORTING
          is_master_data = ls_e_main
        IMPORTING
          es_master_data = ls_i_main.
          "es_error       = pe_error.
    Regards,
    madhu.
    Edited by: madhurao123 on Mar 31, 2010 1:17 PM

  • . bapi to create customer

    Hi All,
    I am having problem finding a right bapi for create a customer.
    I am using "bapi_customer_createfromdata1" to create a customer. Problem is i couldn't find a structure to pass sales org. data as well as partner functions.
    Please help me. Feel free to ask me questions.
    Thanks,
    Diwakar.

    Hi,
    The way is using multiple BAPI's.
    bapi "bapi_customer_createfromdata1" is used to create customer with reference customer number and then send the information to bapi "sd_customer_maintain_all" for changing the the values.
    Still having problem passing parameters.
    When i am sending partner information(knvp) to "sd_customer_maintain_all", it is giving abap dump assertion_failed.
    I tried to debug the program but i couldn't find the error.
    values i passed to bapi sd_customer_maintain_all
    internal table of type <b>fknvp</b>.
    MANDT sy-mandt
    KUNNR st_knvp-kunnr
    VKORG st_knvp-vkorg
    VTWEG st_knvp-vtweg
    SPART st_knvp-spart
    PARVW st_knvp-parvw
    PARZA
    KUNN2 st_knvp-sp_kunnr
    LIFNR
    PERNR
    PARNR
    KNREF
    DEFPA
    Appended line by line to the table.
    Reward points if found helpful....
    Cheers,
    Venkoji Babu.

  • BAPI to create customer master record

    Hi ,
    I was looking for the BAPI to create the customer master record in R/3. we are using the ERP 2005 system .
    I did find the BAPI but it will only creat the personal information of the customer .
    I was looking for a BAPI that will create the whole record of customer including the company code . sales area record .
    Hope someone knows abt this.
    I have to use this in a sync interface with siebel system
    Thanks
    Nikhil

    Hi Michal ,
    I had a loojk at this BAPi but this will only populate the customer personal data. we will have to make a refe to a existing cust to extract the company code data and the sales area data
    Thanks
    Nikhil

  • BAPI function create Customer master(T-code XD01)??

    Hi All,
    i want to create BDC program using BAPI function create Customer master(upload  customer master),but i do not know which BAPI function for create Customer master.
    Does anyone know,please tell me which BAPI function i can use?
    Thanks.
    Van Dung

    Hi Amit Gujargoud,
    I can use LSMW  upload the data from legacy system to sap system., but my manager he did not want to use LSMW.He wants to use BAPI function for upload customer master.
    I saw this BAPI function create customer master : BAPI_CUSTOMER_CREATEFROMDATA1,
    BAPI_CUSTOMER_CREATEFROMDATA,
    it is not enough field for input data.
    example : if i want input : customer code,company code, Sales organiration,Distribution channel,Division.
    So This BAPI function have not paramaters input this field.
    Thanks for your answer
    Van Dung.

  • Which BAPI is creating BP in consumer role,  reference to customer, su01 us

    Hello,
       which BAPI is creating
            BP in consumer role, 
             reference to customer,
            su01 user.
    please tell me
    regards
    ram

    Hi Jacob,
    When i am going to save the BP the details i filled in like name of the BP and all information goes blank. Asd i have mentioned.
    So in error it is saying "An exception has occured during progranm processing, Make an entry in the name field".
    In error dignosis i got below information:-
    Exception Details--> CX_SY_REF_IS_INITIAL - Derefrencing of the Null reference.
    Method: ZL_BP_HEAD_BPHEADOVERVIEW_IMPL=>EH_ONSAVE
    Source Text Row: 38.
    It is all because the information is getting removed which we enter for our BP. And i am not getting why it is not getting saved in the system. I have debugged the code for the event handler jsut after which all the valeus are getting removed but dint get anything.
    Regards.

  • Looking for bapi's to create records from custom software

    I'm looking for bapi to create
    1. InfoType 15 SubType 3001 (Additional Payments/Days Number)
    2. InfoType 15 SubType 3208 (Additional Payments/Overtime)
    I'm tried alot to find in standard bapi's but couldn't find related bapi to create these records.
    Kindly help me to use find out a standard bapi.

    hi
    if you want to create it using some extrernal software , you will have to define your own bapi or RFC which will call the HR infotype operation function module.
    Regards
    Sameer

  • Bapi to create cusomer accounting

    Hi all,
    can anyonre tel me the bapi to Create Customer (Accounting)
    Thanks

    <b>BAPI_CUSTOMER_CREATE</b>
    Create Customer Master Online
    With this method, you can create or extend a customer.
    <b>BAPI_CUSTOMER_CREATEFROMDATA</b>
      Note: In SAP R/3 4.5A, this BAPI is replaced by BAPI
    "<b><i>BAPI_CUSTOMER_CREATEFROMDATA1</i></b>", which takes full account of the
    integration of customer address data in Central Address Management
    (CAM). As this BAPI ("BAPI_CUSTOMER_CREATEFROMDATA") is being replaced,
    it will only be supported for 2 releases after SAP R/3 4.5A.
    This method of the "Customer" business object can be used to create a
    customer in SAP R/3 on the basis of entered address data (import
    parameter PI_ADDRESS).
    The entered address data has a direct influence on the master data,
    company code data and contact person data. One contact person record is
    created for the customer to be created.
    All the master data, company code data, sales area data, and tax code
    data that is not entered is adopted from a reference customer, and from
    sales area data (sales organization, distribution channel and division -
    import parameter PI_COPYREFERENCE).
    (Exception: Currency field of the sales area data. This field can be
    transferred to the BAPI via structure PI_ADDRESS via the currency fields
    (in R/3 or in ISO format).
    If both currency fields are transferred to the BAPI, the currency field
    in R/3 format has priority.
    If both currency fields are blank when transferred to the BAPI, the
    currency field is determined using table T005, on the basis of the
    country that is specified.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • BAPI to create Excise Invoice and Commercial Invoice

    Hi All,
    Can u tell me the BAPI for creating Excise and Commercial Invoice.
    Moderator message: please do some research before asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Mar 2, 2011 5:56 PM

    Hi,
    You can make the appropriate setting in Customizing for Excise Duty, by choosing Basic Settings -> Maintain Excise Groups, and selecting Create EI (Create Excise Invoice Automatically)
    Also maintain the default excise and series group in the configuration.
    Logistics general>Tax on Goods Movement>India>Basic Settings>Maintain Excise groups. For your Excise group maintain the check Excise invoice during Billing.
    After maintaining the same also maintain the default values in Logistics general>Tax on Goods Movement>India>Business transactions>Outgoing Excise invoices-->Maintain Default Excise groups and Series groups.
    Regards,

  • BAPI for creating scheduling agreement with reference to Contract agreement

    Hi All ,
    Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
    Thanks for your help.
    Vadivukkarasi

    Hi,
       Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
    check these
    BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
    BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
    Regards

  • Using BAPI to create users across all Clients and R/3 Systems

    Hi everyone,
    I'm currently writing a program where I'm using a BAPI to create multiple new users via central user admin (SU01) and assigning Roles to these users.
    My objective is to create these new users in all clients of all R/3 systems using RFC. At the moment, in SM59, our DEV environment is set up as "DEV", QA as "TST" and PRD as "PRD". When I use syntax:
    CALL FUNCTION 'BAPI_USER_CREATE1' DESTINATION 'TST' the system presents a logon screen to login to TST system. Can this logon be made automatic i.e. without this screen prompt?
    Also, I can't create the users in all clients of 'TST'. Our test system has 5 clients...how do I create the users in all clients of TST automatically?
    Your help will be greatly appreciated.
    Thanks.
    Sougata.

    Try to see the SAP HELP:
    RFC logon to target system (remote logon)
    RFC logon within an R/3 system can be successfully undertaken using the same user ID even if the logon is to take place in a different client.
    In principle, all necessary logon data for a particular RFC destination (language, user, client, and password) are used when an RFC logs on to the target system.
    Typically the password field (for a particular user) must be maintained when an RFC communicates with other clients or user IDs.
    If one of the fields language, client or user is not maintained for the designated RFC destination, default values are taken from the system environment (system table).
    Tips:
    With RFC communication within a single R/3 system with the same client and user the logon fields do not have to be maintained. Password entry is also unnecessary in this special case.
    If an RFC logon in online mode is unsuccessful, an RFC logon window is displayed (not during background processing) where you can logon to the target system online at runtime.
    The default values for the RFC logon screen fields are as follows:
    Client
    The standard value of the target system application server is used. This value is read from the target server's "login/system_client" profile parameter.
    User
    The system inserts the user ID of the current user in this field.
    Language
    Information from the RFC destination is used to fill the language field. If the language field has not been maintained in the destination, the current language of the calling system is inserted.
    The RFC logon window does not appear if the initial function module call of the RFC destination originates from the system-specific function group 'SRFC'. The function modules RFC_PING and RFC_SYSTEM_INFO belong to this group among others.
    If you would like to have an RFC logon window displayed regardless, you must end RFC communication to that particular RFC destination after the call using the function module 'RFC_CONNECTION_CLOSE'.
    Be aware that no logon screen is usually offered when using trusted/trusting systems.
    Documentation to authorization checks in the RFC environment can be found in RFC authorization concept.
    Max

  • Bapi to create Invoice with reference to SalesOrder

    Hi All,
    I want to create Invoice with reference to SalesOrder ,
    can anybody help me regarding
    --> what is the Bapi to Create Invoice with reference to SalesOrder
    --> what are the import parameters
    Thanks in Advance
    Regards
    Srinivas

    Hi Giuseppi,
    Thanks to your reply,
    i have used BAPI_BILLINGDOC_CREATEMULTIPLE , i have given the following input values in the BILLINGDATAIN
      -- salesorg,distrchan,division,doc-type,sold-to,plant,material,doc-number,item-number , when  i execute the Bapi , i got the DocNo:0090021983 , but i did not find that DocNo. by executing the Bapi BAPI_BILLINGDOC_GETLIST.
    i found the short description for
    BAPI_BILLINGDOC_CREATEMULTIPLE -- is for Individual Customer Billing Document, is it the correct Bapi to create invoice
    what is the correct Bapi to create invoice based on the salesorder.
    RV_INVOICE_CREATE OR GN_INVOICE_CREATE OR BAPI_BILLINGDOC_CREATEMULTIPLE.
    Can u specify the import parameters for that Bapi.
    Thanks & Regards
    Srinivas

  • Performance issue: Calling a BAPI PO create in test mode to get error msgs

    Hi,
    We have an ALV report in which we display purchase orders that got created in SAP, but either got blocked due to not meeting PO Release strategy tolerances or have failed output messages. we are displaying the failed messages even.
    We are looping the internal table of eban(PR) & calling bapi po create in test mode to get failed messages.
    Now we are facing performance issue in production. What can be the alternate efficient way to get the error msgs with efficiency
    Regards,
    Ayub H.
    Moderator message: duplicate post (different ID, same company...), see below:
    Performance issue calling bapi po create in test mode to get error messages
    Edited by: Thomas Zloch on Mar 9, 2012

    Hi Suvarna,
    so you need to reduce the number of PO-simulations.
    - Likely you checked already, that all EBAN-entries should already be converted into POs. If there would be a large number of "new" EBAN-entries, they don't need to be simulated.
    - If it's a temporary problem: give aid to correct the problems (maintain prices or whatever the error-reasons are) Then the amount of not-converted purchase requisitions (PR) should drop, too
    - If it's likely, that your volume of open PR will stay high: create a Z-Table with key of EBAN and a counter, simulate (once a day) PO conversions and store the results in the Z-table. In your report you can use the results... if they are "new enough". From time to time new simulations should be done, missing master data might be available.
    Maybe users should be allowed to start this 2nd report manually (in background), too -> then they can update the messages after some data corrections themself, without waiting for the result (just check later in online report and do something different in between).
    And you might need to explain, PO simulation takes as long as PO creation... there is no easy or fast way around this.
    Best regards,
    Christian

  • Performance issue calling bapi po create in test mode to get error messages

    Hi,
    We have  a report which displays in alv the purchase orders that got created in SAP, but either got blocked due to not meeting PO Release Strategy tolerances or have failed output messages .We are displaying the failed messages too.
    We are looping the internal table of eban(purchase requisition) and calling bapi po create in test mode to get failed messages.
    Now we are facing performance issue in production.What can be the other effecient way to get the error messages without effecting performance.
    Regards,
    Suvarna

    Hi Suvarna,
    so you need to reduce the number of PO-simulations.
    - Likely you checked already, that all EBAN-entries should already be converted into POs. If there would be a large number of "new" EBAN-entries, they don't need to be simulated.
    - If it's a temporary problem: give aid to correct the problems (maintain prices or whatever the error-reasons are) Then the amount of not-converted purchase requisitions (PR) should drop, too
    - If it's likely, that your volume of open PR will stay high: create a Z-Table with key of EBAN and a counter, simulate (once a day) PO conversions and store the results in the Z-table. In your report you can use the results... if they are "new enough". From time to time new simulations should be done, missing master data might be available.
    Maybe users should be allowed to start this 2nd report manually (in background), too -> then they can update the messages after some data corrections themself, without waiting for the result (just check later in online report and do something different in between).
    And you might need to explain, PO simulation takes as long as PO creation... there is no easy or fast way around this.
    Best regards,
    Christian

Maybe you are looking for

  • Different programmes crash and close

    Hi all, I've been using my imac for years now and never had any problems. Since a short while though, programmes crash and close by themselves. I have not found any logic in it yet because a lot of programmes do this at different moments - safari, ma

  • Airport icon gone from system preferences ?!

    Airport icon in system preferences is gone!?

  • I'm trying to arrange albums in folders

    Hi Is there a way to add music inside folders ? for example when I create a folder in my iPOD named "Pink Floyd" .. I want all the different albums by this band to be in different folders inside the main folder : Pink Floyd -->Animals Dark side of th

  • IWork Numbers Error

    =sum(O:2O10)divided by(L2:L10) this gives me a syntax error, why?  I continuously have to add each cell separately. Column has also been formatted for numbers. Please help!!!

  • ITunes won't download for Windows!

    I am trying to download iTunes 11.0.04 on my Windows 7 32 bit.  I try to do it from the Apple Updates thing on my start menu and it says it has and invalid signature.  I go to the website and it says "thank you for downloading iTunes," but it never d