BAPI_VENDOR_CREATE & BAPI_CUSTOMER_CREATE

Hi,
We have a External System from where we input, data Required for Vendor
master Data & Customer Master Data. We are trying to use the following
BAPi's BAPI_VENDOR_CREATE & BAPI_CUSTOMER_CREATE to pass the value
to SAP. But there is no option to give the Input, because these BAPi's
are using call transaction. Kindly guide how to use these BAPI's to
pass value from External System to SAP.
Regards,
Sekar.

Friends Any input.
Rgds,
Sekar.

Similar Messages

  • How to use the BAPI_VENDOR_CREATE

    Hi Experts,
    Could anyone explain me, how to use the BAPI, 'BAPI_VENDOR_CREATE' !
    Our requirement is to create vendors from the third party system say like 'BIZTALK' . Those people will be connecting to our SAP server through a custom RFC, which I have to create and in that RFC, I have to call this BAPI. since the BAPI, 'BAPI_VENDOR_CREATE' doesn't have any import parameters, I am unable to pass the Vendor numbers and other fields say like, 'COMPANY CODE, ACCOUNT GROUP, STREET etc.., ' , which are also needed by the time of creating vendors.
    Can anyone help me out, how to solve this issue!!! Or else is there any otherway of approaching this problem, also please let me know...
    Thanks in advance.
    SOMU.

    You have to pass Header and GM code as the INput parameters for uing this BAPI....GM code would be structure.
    Also you have to pass the INternal table Item for the goods mvt cxreate which will contains
          BATCH.
          MOVE_TYPE.
          ENTRY_QNT.
          MOVE_PLANT.
          MOVE_STLOC.
          MOVE_BATCH.
          MOVE_REAS
    these parameters.
    Regards,
    Sushil.

  • BAPI_VENDOR_CREATE

    Now then,
    I have searched high and low for any information on the BAPI - BAPI_VENDOR_CREATE.
    It seems that this BAPI only calls the transaction XK01. I need to be able to create vendor master
    data from say an uploaded excel spreadsheet.
    I could use the BDC method but as you know this is  a very time consuming way.
    I have also searched via SE37 for any existing FM's and can only find a very limited few which
    again call XK01.
    There must be a definitive answer as to why there is no bapi to create a vendor from scratch
    i.e. just like you would use a bapi to create a purchase order.
    If it cant be done then it can't be done. But there must be a reason as why there is no FM or
    BAPI to create a vendor.
    Hope this makes sense
    Andy

    Hi,
    Well am not sure of the reason as to why such a BAPI is not available which can create vendors directly in offline mode, but you can try the following FM's through which it can be achieved.
    VENDOR_INSERT: To insert the vendor in vendor master
    NUMBER_GET_NEXT : To get the Address number based on the account group for vendor.
    ADDR_SAVE _INTERN: To update the address based on the address number found above.
    BAPI_BANK_CREATE To update the bank details.
    Regards,
    Vik

  • Bapi_customer_create

    Hi,
    can i get a sample code on bapi_customer_create, mean to say what are the parameters to be passed.waiting for your reply
    thanks and regards
    Sarala

    Hello,
    check this......code may helpful to u...
    Data:it_personaldata like standard table of bapikna101_1 with header line,
         it_copyreference like standard table of bapikna102 with header line,
         return like standard table of bapireturn1 with header line.
    data:v_customerno like bapikna103-customer.
    it_personaldata-title_p     = 'Mr.'.
    it_personaldata-firstname   = 'Jambavant'.
    it_personaldata-lastname    = 'jai'.
    it_personaldata-middlename  = 'john'.
    it_personaldata-date_birth  = '19780101'.
    *IT_PERSONALDATA-REGION      = 'CA'.
    it_personaldata-city        = 'Hyderabad'.
    it_personaldata-langu_p     = 'EN'.
    it_personaldata-district    = 'Hyd'.
    it_personaldata-postl_cod1  = '56012'.
    *IT_PERSONALDATA-PO_BOX      = '116'.
    it_personaldata-street      = 'Street'.
    it_personaldata-house_no    = '11/230'.
    it_personaldata-building    = 'Super'.
    it_personaldata-room_no     = '113'.
    it_personaldata-country     = 'DE'.
    it_personaldata-title_key   = '0002'.
    it_personaldata-currency    = 'DEM'.
    append it_personaldata.
    it_copyreference-salesorg   = '1000'.
    it_copyreference-distr_chan = '12'.
    it_copyreference-division   = '00'.
    it_copyreference-ref_custmr = '0000002140'.
    append it_copyreference.
    call function 'BAPI_CUSTOMER_CREATEFROMDATA1'
      exporting
        pi_personaldata              = it_personaldata
      PI_OPT_PERSONALDATA          = PI_OPT_PERSONALDATA
      PI_COMPANYDATA               = PI_COMPANYDATA
      PI_OPT_COMPANYDATA           = PI_OPT_COMPANYDATA
      PI_CONSUMEREN                = PI_CONSUMEREN
        pi_copyreference             = it_copyreference
      PI_CREDIT_CONTROL_FLAG       = PI_CREDIT_CONTROL_FLAG
    importing
       customerno                   = v_customerno
       return                       = return.
    call function 'BAPI_TRANSACTION_COMMIT'
      exporting
        wait = 'X'.
    append return.
    loop at return.
      write:/ return-type, return-message.
    endloop.
    Thank u,
    santhosh

  • BAPI  bapi_vendor_create

    Hi,
    I was under impression that BAPIs are screen independent.
    But I guess there exists BAPIs which can call the screens online. e.g. BAPI_VENDOR_CREATE allows u to call transaction XK01 and thus create vendors.
    The question here I have is, should I call this BAPI from outside like using JCo. What will be effects of calling such BAPI from outside ?
    Regards,
    Nitin

    Hello Nitin,
    you are right.This BAPI opens only the vendor dialog for xk01.You need an SAPGUI for using it.
    I tried to use it via RFC from a NON-Sapgui Client and i get an "ABORT_MESSAGE_STATE".
    I don't know,why the SAP make such a crazy BAPI
    Greetings.
    Frank Brackmann

  • Problem in adobe using  bapi BAPI_VENDOR_CREATE

    Dear Experts
    I  want to develop an adobe interactive  form for vendor creation using bapi " BAPI_VENDOR_CREATE "but all the necessary fields
    that needed for vendor creation are not coming.like fields in transaction code  'XK01'. i.e company name , trading name, bank details, currency etc.
    Please tell me  why the fields are not coming or suggest any other function module.
    please help.
    Thanks in advance.
    Chitta Ranjan Mahato
    Edited by: mahato123 on Apr 16, 2011 9:08 AM

    Hello,
    Unfortunately SAP does not support any BAPI's to change customer/vendor master data.
    The BAPI's were developed from different applications and were designed for their special needs.
    You can see the existing BAPIs via tranx BAPI.
    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 SAP note 306275.
    Another possibility is to use Trx XD99, object KNA1, Trx XK99, object LFA1.
    Regards,
    David

  • BAPI_VENDOR_CREATE can we cal from NON-SAP

    Hi All,
    BAPI_VENDOR_CREATE can we call this bapi from nons sap system.
    Thanks,
    Kiran

    Hi,
      Yes i think so since it is a RFC enabled FM you should be able to...
    REgards,
    Himanshu

  • BAPI_CUSTOMER_CREATE STCD1

    Hi, All:
    We need to create a customer in a online report, but We are trying to use BAPI_CUSTOMER_CREATEFRONDATA1, but this Bapi has no field for STCD1 (Tax Number 1) and this field is obligatory for us.
    Anyone could help us, please?

    Can you tell me which fields in all the structures of this bapi BAPI_CUSTOMER_CREATEFROMDATA1 you pass data to?  The issue I have is, if I pass data to PI_PERSONALDATA structure, I have an error saying the language field is required.  When I enter data to the language field, I have error 'Double creation of company and user address not created'.  It seems like I get an error if I don't enter anything and get the error when enter something.  Please advise.

  • Is there any standard BAPI available to vendor , customer and G/L ?

    Hi all,
    any standard BAPI available to vendor , customer and G/L? I found BAPI_CUSTOMER_CREATE and BAPI_VENDOR_CREATE but when i traying to execute , then control directly taking to XD01 and XK01 initial screen's .i need to create vendor and customer master data using BAPI(data will come from legacy system).
    Other than these , is there any standard  BAPI available .Pl tell me
    Regard's,
    Pratap.

    Hello Pratap
    For customer the following BAPI is available:
    BAPI_CUSTOMER_CREATEFROMDATA1
    "This fm uses a reference customer as template for the new customer.
    " Using this BAPI you cannot create a new customer from scratch
    Regards
      Uwe

  • Need a BAPI for FD01(customer Master data creation)

    Hi Experts,
      i want to upload a data from Legacy to sap for FD01 Tcode for Customer master creation, and what is the key points to dev bapi.
    can anyone give me the BAPI for FD01.
    Thanks,
    sudha.

    Hi,
    use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi
    'BAPI_VENDOR_CREATE' to create vendor.
    Regards,
    SuryaD.

  • BAPI for converting legacy case data

    Hello friends,
    I would like to know is there any BAPI for converting legacy case data to SAP CRM case.
    thanks in advance
    Rakesh

    Hi,
    use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi
    'BAPI_VENDOR_CREATE' to create vendor.
    Regards,
    SuryaD.

  • Issue with My VB Code when connecting to SAP

    Hi Guys: I am trying to upload Customer Master Data information into SAP from Excel using VB. Here is my code.
    Private Sub CommandButton3_Click()
    ' Getting the last filled Row in Column A
    vLastRow = Cells(Rows.Count, "A").End(xlUp).Row
    ' Setting the necessary variables for R/3 connection
    Set objBAPICortrol = CreateObject("SAP.Functions")
    Set objConnection = objBAPICortrol.connection
    ' Establish a connection
    If objConnection.Logon(0, False) Then
        MsgBox "Connection Established"
    End If
    On Error Resume Next
    ' Assign the Parameters
    Set objCreateCustomer = objBAPICortrol.Add("BAPI_CUSTOMER_CREATE")
    Set objAccountGroup = objCreateCustomer.Exports("Acct Gr")
    Set objCompanyCode = objCreateCustomer.Exports("Co Code")
    Set objSalesOrganization = objCreateCustomer.Exports("Sales Org")
    Set objDistributionChannel = objCreateCustomer.Exports("Dist Ch")
    Set objDivision = objCreateCustomer.Exports("Div")
    Set objName = objCreateCustomer.Exports("Name")
    Set objStreet = objCreateCustomer.Exports("Street")
    Set objHouseNumber = objCreateCustomer.Exports("House Number")
    Set objPostalCode = objCreateCustomer.Exports("Postal Code")
    Set objCity = objCreateCustomer.Exports("City")
    Set objRegion = objCreateCustomer.Exports("Region")
    Set objCountry = objCreateCustomer.Exports("Country")
    Set objCountyCode = objCreateCustomer.Exports("County Code")
    Set objPhone = objCreateCustomer.Exports("Phone")
    Set objContact = objCreateCustomer.Exports("Contact")
    Set objFax = objCreateCustomer.Exports("Fax")
    Set objEmail = objCreateCustomer.Exports("Email")
    Set objDirections = objCreateCustomer.Exports("Directions")
    Set objCityCode = objCreateCustomer.Exports("City Code")
    Set objReconAccount = objCreateCustomer.Exports("Recon Account")
    Set objPaymentHistory = objCreateCustomer.Exports("Payment History")
    Set objCustomerPricingProcedure = objCreateCustomer.Exports("Cust Pricing Procedure")
    Set objCustomerStatisticsGroup = objCreateCustomer.Exports("Cust Stat Group")
    Set objIncoTerms = objCreateCustomer.Exports("Inco Terms")
    Set objTermsofPayment = objCreateCustomer.Exports("Terms of Payment")
    Set objAccountAssignmentGroup = objCreateCustomer.Exports("Acnt Assign Group")
    Set objTaxClassification = objCreateCustomer.Exports("Tax Classification")
    ' Now looping through all values create customer
    ' The data begin row is set to 2
    For vRows = 2 To vLastRow
    ' Set the Parameter Values
    objAccountGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 1).Value
    objCompanyCode = ThisWorkbook.ActiveSheet.Cells(vRows, 2).Value
    objSalesOrganization = ThisWorkbook.ActiveSheet.Cells(vRows, 3).Value
    objDistributionChannel = ThisWorkbook.ActiveSheet.Cells(vRows, 4).Value
    objDivision = ThisWorkbook.ActiveSheet.Cells(vRows, 5).Value
    objName = ThisWorkbook.ActiveSheet.Cells(vRows, 6).Value
    objStreet = ThisWorkbook.ActiveSheet.Cells(vRows, 7).Value
    objHouseNumber = ThisWorkbook.ActiveSheet.Cells(vRows, 8).Value
    objPostalCode = ThisWorkbook.ActiveSheet.Cells(vRows, 9).Value
    objCity = ThisWorkbook.ActiveSheet.Cells(vRows, 10).Value
    objRegion = ThisWorkbook.ActiveSheet.Cells(vRows, 11).Value
    objCountry = ThisWorkbook.ActiveSheet.Cells(vRows, 12).Value
    objCountyCode = ThisWorkbook.ActiveSheet.Cells(vRows, 13).Value
    objPhone = ThisWorkbook.ActiveSheet.Cells(vRows, 14).Value
    objContact = ThisWorkbook.ActiveSheet.Cells(vRows, 15).Value
    objFax = ThisWorkbook.ActiveSheet.Cells(vRows, 16).Value
    objEmail = ThisWorkbook.ActiveSheet.Cells(vRows, 17).Value
    objDirections = ThisWorkbook.ActiveSheet.Cells(vRows, 18).Value
    objCityCode = ThisWorkbook.ActiveSheet.Cells(vRows, 19).Value
    objReconAccount = ThisWorkbook.ActiveSheet.Cells(vRows, 20).Value
    objPaymentHistory = ThisWorkbook.ActiveSheet.Cells(vRows, 21).Value
    objCustomerPricingProcedure = ThisWorkbook.ActiveSheet.Cells(vRows, 22).Value
    objCustomerStatisticsGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 23).Value
    objIncoTerms = ThisWorkbook.ActiveSheet.Cells(vRows, 24).Value
    objTermsofPayment = ThisWorkbook.ActiveSheet.Cells(vRows, 25).Value
    objAccountAssignmentGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 26).Value
    objTaxClassification = ThisWorkbook.ActiveSheet.Cells(vRows, 27).Value
    ' Function call
    objCreateCustomer.call
    ' Get return parameters & display in excel
    Set objReturn = objCreateCustomer.Imports("RETURN")
    ActiveSheet.Cells((vLastRow + vRows), 1) = objReturn.Value("MESSAGE")
    ' Error handling
    If Err Then
        MsgBox Err.Description
    End If
    Next vRows
    End Sub
    I am getting an error...
    "No Connection to SAP available".
    PLease advise how I can correct this.
    thanks
    Brian

    hi Brain,
            i hope the following URL's will be useful for you
    http://www.programmingtalk.com/archive/index.php/t-21399.html
    Re: VB and SAP connection with BAPI Active X control
    http://help.sap.com/saphelp_46c/helpdata/en/76/4a42f7f16d11d1ad15080009b0fb56/content.htm
    Reward points if useful
    regards,
    Pavan

  • Creation of Vendor using a BAPI

    I need to create a vendor in SAP system from a non-SAP system. I thought to use a BAPI. But the BAPI available, BAPI_VENDOR_CREATE is not suitable as it is dialog oriented.
    Could anyone suggest me a better method of achieving this.
    Raja

    Refer the following links:
    Create Vendor Master Data
    Searching for a Bapi or Function to create Creditor / Vendor
    Regards,
    Ravi

  • Business Partner Creation for Sales Customer

    Hello,
    I am almost certain this question was asked before, but I couldn't seem to find the answer.
    I have an external customer number that needs to be passed in from a 3rd-party system to SAP ECC 5.0 (part of ERP 2004).  I could use BAPI BAPI_BUPA_CREATE_FROM_DATA to create the customer in BUT000 table.  Since this is really a sales customer, I was hoping this customer can be duplicated/transferred to KNA1 table.  Without doing this, this external BP # does not show up in my dropdown list when I create an order.  I also tried to use BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 to create this external customer by adding a role "FLCU00", but I still couldn't find this customer in the KNA1 table.  I also looked at a couple more options such as BAPI_CUSTOMER_CREATE and BAPI_CUSTOMER_CREATEFROMDATA1, but as far as I know the first one is online dialog mode, and the 2nd one does not seem to allow exteral customer number.  Does any know whether it is possible to use BAPI_BUPA_CREATE_FROM_DATA or BAPI_BUPA_FS_CREATE_FROM_DATA2 to create an entry in KNA1?  Is it more a config issue or technically it is not possible?  Please advise.  Your help is appreciated!!!
    Regards,
    Chao

    Thanks for your clue.  I will look into it.  Maybe IDoc approach is what I need to use.
    Ultimately, we want to use KNA1 customers to create sales orders.  We don't have mySAP CRM, so ERP is what I am trying to interface to from an external system.  I thought SAP is trying to centralize the business partners, so that's why I was walking down on the path of creating BPs, hoping they will be replicated back to KNA1.  I worked on IS products before, and they seem to work this way (replication).  However, by thinking about it more, it may make more sense to have customers created in KNA1 and through some type of conversion replicate customers in KNA1 to BUT000 some time down in the road if BP is what the customer will be using in the future with other mySAP products.  I wonder if anyone can validate this thought(meaning converting KNA1 customers to BPs) for me.  Thanks in advance!!!

  • Help needed in creating a Customer in SD

    Hi,
    I am trying to create a customer using the FM  'BAPI_CUSOTMERCREATEFROMDATA1'. Without Providing Reference Customer nbr, i am not able to create. Is there no means to create a customer without giving Reference Customer.
    All helpful answers will be rewarded.
    Regards,
    Udaya

    Hi Udaya,
    I have checked for the FM you have mentioned. That does not exist in my system. Anyway I could successfully create a customer using the FM BAPI_CUSTOMER_CREATE.
    This is the FM which lets you create a customer without the need of any reference. If it is configured in XDN1 that your account group has external number, please provide a number to your customer in the initial screen after you execute your BAPI.
    Let me know if you have any further concerns,
    Regards,
    Ramakanth

Maybe you are looking for

  • Attachement of word doc in sales order

    Hii, I have one query that i want create contract,for the proof of the contract my cleint have word doc., Now they want to add it in my contract so any time it can check that approval word doc. Pls give suggestion on that.

  • Acquisition tax in Belgium/Germany-Posting with different tax codes

    Dear Friends, Does anyone have experience working with Acquisition tax in Belgium and German where the goods and services purchased within EU have 21% -input and output tax such that it is ZERO. But still Tax authorities need to see both input and ou

  • Boot Camp failure installing windows??

    Hi all, I have been trying to install windows for few days now with no success. I have a Macbook Pro (Uni) 17" with OS X 10.6.8 and boot camp 3.0.4. Started few days ago by partitioning the hard disc, assigning 35 gigs for the windows (to be) partiti

  • Aggregate Device not recognising Built-In Input

    How do I get my Aggregate Device to recognise the 'Built-In Input" in my iMac? In the Audio Devices window, I have set my Aggregate Device to be the sound input master to allow me to choose 'Aggregate Device' as the Input Device in Logic Pro X . This

  • Cannot use fire shot -- asks for update - then warned it is third party and not to trust

    Cannot use fire shot to save page image. Told to update. Go to update and after several tries of re-downloading next to newest version try newest which is 'not reviewed'. Then pop-up says mozilla not sure about it and it is third party so I don't con