Loading Vendors using BAPIs

Hi,
Is there a BAPI available to create a vendor in background? I was looking at list of BAPIs in BOR and found a BAPI that creates a vendor online. I am looking for a BAPI that does not call the online transaction.

As an alternative if no one knows of one...
You can debug that BAPI and then just create one of your own that does what you need...

Similar Messages

  • Are there any standard BAPIs available to load Vendor and Park invoices?

    Hi Gurus,
    do we have standard BAPI;s available to load "Vendor" master data and to "Park Vendor Invoices"? Please advise,
    1) I wanted to load vendors from the flat file, with input fields and it is a mass update.?
    2) I wanted to park the documents around 100 or so at one time, not posting?
    Any suggesttions on the Bapis available?
    Thanks
    Surya

    Ravi,
    Thanks for your suggestions. But BAPI_VENDOR_CREATE doesnt have any input fields, am not sure how it is used???  And also, I am sepcifically looking for BAPI;s LSMW will do but looking for more of a web service kind of service with BAPI. I am looking for a service which reads fields from input file and store in LFA1 table.
    Also regarding the second BAPI, i read in some threads that we need PO number to park it, but my invoices have only reference from the old system, not PO number, does this matter??
    Thanks
    Surya

  • Change vendor address using bapi

    Hi all,
    How to change vendor address using bapi.
    The address,and vendornumber coming from XL file.
    Based on the vendor number I want to change the address.
    Please give me the example.
    regards,
    rakesh.

    Hi Vijay,
    Please help me in the following.
    As Vendor/Customer Master dont have all the address fields ( like Street4-5), we use FM BAPI_ADDRESSORG_SAVEREPLICA to overcome this problem.
    In my case i have created one Custom load program to upload address data using
    BAPI_ADDRESSORG_SAVEREPLICA and then LSMW project to upload rest of the data.
    In this case when i upload rest of the data by LSMW using BI standard program ( having NODATA indicator "/" in my source file for the fields already uploaded using BAPI above) , address data which uploaded through FM should get populate automatically (by concept of Central Address management) but in my case <b>for some of the Account Group it is not getting populated,</b> please suggest.
    regards
    Sonal

  • Can we use BAPI BAPI_ACC_DOCUMENT_POST to upload the vendor invoice?

    Hi,
    Can anybody tell me, can we use bapi BAPI_ACC_DOCUMENT_POST to upload the vender invoice?
    If yes, then which parameters we have to pass, and if no, then which is the other BAPI which is used for
    this purpose?
    Regards,
    Mrunal

    Hi Mrunal,
    Yes you can use BAPI_ACC_DOCUMENT_POST to upload vendor invoices.
    Parameters which are required to be passed are :
    Import tab :
    DOCUMENTHEADER: Mandatory fields for this specififed in documentation for this.
    Table tab:
    ACCOUNTGL: Enteries aganist GL account will be populated in this(check documentation for mandatory fields)
    ACCOUNTPAYABLE: Enteries aganist vendors will be populated in this(check documentation for mandatory fields)
    CURRENCYAMOUNT: in this currency amount aganist GL and vendor entries will specified.
    ITEMNO_ACC field will act as identifier as to amount belongs to which GL or vendor enteries.
    This much parameter are required to post vendor invoices.
    Regards,
    Brajvir

  • F-04 (Vendor Clearing using BAPI-BAPI_ACC_DOCUMENT_POST)

    Hello all,
    i am using a BAPI - BAPI_ACC_DOCUMENT_POST for posting and clearing vendor payments but problem is that i m getting error that 'Account 3252995 in company code 5219 cannot be directly posted to', can anyone please help me?
    Regards saurabh.

    Hi Saurabh,
    I´m looking for a BAPI to clear Accounts Payable open itens (as F-30, F-28 or FB05) and I saw in your previous message that it´s possible to do this using BAPI BAPI_ACC_DOCUMENT_POST, please, could you give a clue to sove this issue? Any additional information would be well accept.
    Best Regards,
    Ivan Spellmeier

  • Vendor creation using bapi

    Hi experts,
    I am new to bapi concept I done vendor creation by using bdc and lsmw and now I want to create by using bapi can anyone send program code for creating so that I can go through it.
    thanks in advance,
    points will be rewarded,
    Srinivas.D

    hi
    I gone to the bapi function module for bapi_vendor_create etc but the problem their is no input parameters or tables so I am little bit of confused if any body has the code plz send me.
    Regards,
    SrinivasD

  • Vendor Confirmation using BAPI

    Can anyone suggest me how to do vendor confirmation using BAPI

    Hi Asha ,
    ME22N is to change Purchase Order ? tell me what do u want to do ?
    <b>for what one u have to Create a program by using BAPI's to creates POs for a Given Vendor .In SAP these is no such functionality to create MASS PO's at a Time.</b>
    Regards
    prabhu

  • BAPI for creating Return delivery to vendor using transaction MIGO

    Hi All,
             My requirement is to create Return delivery to vendor using transaction MIGO.
    In MIGO transaction to create return delivery, the following steps needs to be followed.
    i) Select the option A02 Return delivery, R02 Material document,
        Enter Material document xxxxxxxx.
        Reson for movement:xxxx
        By selecting the option item ok and via delivery check box, then save.
    After saving return delivery needs to be created.
    Is there any BAPI/FM exist for this requirement?
    I made lot of search in sdn, but i could not find any thing helpful.
    Appreciate quick help.
    regards
    surya

    Hi
    In VL02n->Extras->Delivery Output->Header
    Check if you see any message type (LD00 ?).
    If you do not see any, insert a message type LD00.
    If you want to check the IMG settings, see Txns : V/71 (for delivery types RL/RLL) and V/73 (for Item category RLLN)
    Best regards
    Ramki

  • To load customer master using bapi

    HI GUYS ,
    DOES ANYONE HAVE A SAMPLE CODE TO LOAD THE CUSTOER MASTER  DATA USING BAPIS.

    Hi Nishanth,
    TO LOAD THE CUSTOER MASTER DATA USING BAPIS.
    In case you wish to read the customer data you can use the following BAPI, it retrieves the Customer Master (Company Code) Data and the General Data in Customer Master.
    CUSTOMER_READ
    You need to pass the Customer Number and the Company Code. See the example given below.
    REPORT ZEX_CUSTOMERREAD .
    Parameters: p_bukrs like KNB1-BUKRS,
                p_kunnr like KNA1-KUNNR.
    Data: ty_kna1 type kna1,
          ty_knb1 type knb1.
    Data: int_kna1 like ty_kna1,
          int_knb1 like ty_knb1.
    CALL FUNCTION 'CUSTOMER_READ'
      EXPORTING
        I_BUKRS         = p_bukrs
        I_KUNNR         = p_kunnr
    IMPORTING
       E_KNA1          = int_Kna1
       E_KNB1          = int_knb1
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    thanks
    karthik

  • Updating Loading Group on plant record using BAPI

    I am using BAPI to extend to a plant
    BAPI_MATERIAL_SAVEDATA
    I am passing                     
      plantdata-loadinggrp   = wa_plantdata-loadinggrp.
      plantdatax-loadinggrp  = 'X'.
      plantdata-plant        = p_p_plant.
      plantdatax-plant       = p_p_plant.
    At the time of the BAPI call the data is in the table
    All other plant data gets created except for this loading group field (Sales/general plant)  and only when I am usign a specific plant.   It works fine for other plants
    Anybody know any config or setting related to this ?

    solved it

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Creating a PO Using BAPI For Multiple PLants Or Multiple Line Items

    Hi All
        Can you please suggest me how to create a Purchase Order Using BAPI_PO_Create1 for Multiple Plants Or for Multiple Line items. The Requirement is like the PO is for single material for single vendor but for mulple stores i.e plants
    NOte:  Suggest me the  Creation of PO for MUltiple Line items or for multiple plants Using BAPI . Hope you people will give me the needful.
    Regards
    Shivakumar Bandari

    Hi,
    Here is the sample code to do that...
    *---> po header data
      wa_poheader-vendor    =  your vendor..
      wa_poheader-doc_type  =  Your doc type..check with Functional contact....
      wa_poheader-purch_org =  Purchasing Org..
      wa_poheader-pur_group =  Purchasing Group
    *---> po header data (change toolbar)
      wa_poheaderx-vendor    =  'X'.
      wa_poheaderx-doc_type  =  'X'.
      wa_poheaderx-purch_org =  'X'.
      wa_poheaderx-pur_group =  'X'.
    *---> poitem data
    data: item like ekpo-ebelp.
    item = '0010'.
    loop at t_parts.
      it_poitem-po_item  =  '00010'.
      IT_POITEM-PLANT    =  Plant..
      IT_POITEM-STGE_LOC =  Sloc...
    *---> poitemx (item data change toolbar)
      it_poitemx-po_item  =  '0010'.
      it_poitemx-po_itemx  =  'X'.
      IT_POITEMX-PLANT    =  'X'.
      IT_POITEMX-STGE_LOC =  'X'.
    *---> add record's to internal table
      APPEND:  it_poitem,
             it_poitemx.
    endloop.
    *call bapi_po_create1
      CLEAR v_ebeln.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = wa_poheader
          poheaderx        = wa_poheaderx
        IMPORTING
          exppurchaseorder = v_ebeln
        TABLES
          return           = it_return
          poitem           = it_poitem
          poitemx          = it_poitemx.
    *---> check the return table for error message
      READ TABLE it_return WITH KEY type = 'E'.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      endif.
    Thanks,
    Murali

  • Creating PO using BAPI

    Hi Folks,
    I want to create a PO using BAPI. Which BAPI we are suppose to use and what are the mandatory fields for the same?
    Sample code will be helpful.
    Thanks
    Siddarth

    Hi,
    *& Report ZBAPI_CREATE_PO *
    *& Program demonstrates the BAPI call to create Purchase Order *
    *& Minimum required parameters are used are as per the current *
    *& system configuration *
    REPORT ZBAPI_CREATE_PO .
    *DATA DECLARATION
    CONSTANTS : C_X VALUE 'X'.
    *Structures to hold PO header data
    DATA : HEADER LIKE BAPIMEPOHEADER ,
    HEADERX LIKE BAPIMEPOHEADERX .
    *Internal Tables to hold PO ITEM DATA
    DATA : ITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
    ITEMX LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
    *Internal table to hold messages from BAPI call
    RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    data : w_header(40) value 'PO Header'.
    data : ws_langu like sy-langu.
    *text-001 = 'PO Header' - define as text element
    selection-screen begin of block b1 with frame title text-001.
    parameters : company like header-comp_code default '2700' ,
    doctyp like HEADER-DOC_TYPE default 'NB' ,
    cdate like HEADER-CREAT_DATE default sy-datum ,
    vendor like HEADER-VENDOR default '0010000023',
    pur_org like HEADER-PURCH_ORG default '2700' ,
    pur_grp like HEADER-PUR_GROUP default '001' .
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    parameters : item_num like ITEM-PO_ITEM default '00001',
    material like ITEM-MATERIAL default 'CRANE' ,
    plant like ITEM-PLANT default '2700' ,
    quantity like ITEM-QUANTITY default 100.
    selection-screen end of block b2.
    START-OF-SELECTION.
    *DATA POPULATION
    ws_langu = sy-langu. "Language variable
    *POPULATE HEADER DATA FOR PO
    HEADER-COMP_CODE = company .
    HEADER-DOC_TYPE = doctyp .
    HEADER-CREAT_DATE = cdate .
    HEADER-VENDOR = vendor .
    HEADER-LANGU = ws_langu .
    HEADER-PURCH_ORG = pur_org .
    HEADER-PUR_GROUP = pur_grp .
    *POPULATE HEADER FLAG.
    HEADERX-comp_code = c_x.
    HEADERX-doc_type = c_x.
    HEADERX-creat_date = c_x.
    HEADERX-vendor = c_x.
    HEADERX-langu = c_x.
    HEADERX-purch_org = c_x.
    HEADERX-pur_group = c_x.
    HEADERX-doc_date = c_x.
    *POPULATE ITEM DATA.
    ITEM-PO_ITEM = item_num.
    ITEM-MATERIAL = material.
    ITEM-PLANT = plant.
    ITEM-QUANTITY = quantity.
    APPEND ITEM.
    *POPULATE ITEM FLAG TABLE
    ITEMX-PO_ITEM = item_num.
    ITEMX-MATERIAL = C_X.
    ITEMX-PLANT = C_X .
    ITEMX-STGE_LOC = C_X .
    ITEMX-QUANTITY = C_X .
    ITEMX-TAX_CODE = C_X .
    ITEMX-ITEM_CAT = C_X .
    ITEMX-ACCTASSCAT = C_X .
    APPEND ITEMX.
    *BAPI CALL
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    POHEADER = HEADER
    POHEADERX = HEADERX
    POADDRVENDOR =
    TESTRUN =
    IMPORTING
    EXPPURCHASEORDER =
    EXPHEADER =
    EXPPOEXPIMPHEADER =
    TABLES
    RETURN = RETURN
    POITEM = ITEM
    POITEMX = ITEMX.
    *Confirm the document creation by calling database COMMIT
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN =
    end-of-selection.
    *Output the messages returned from BAPI call
    LOOP AT RETURN.
    WRITE / RETURN-MESSAGE.
    ENDLOOP.
    Create a purchase order with configuration using the BAPI
    This took some time to figure out how to setup. It may be useful.
    call function 'BAPI_CFG_CREATE'
    exporting
    object_id = 'MYMATCODE'
    root_type = 'MARA'
    root_name = 'MYMATCODE'
    plant = 'MYPLANT'
    importing
    cfg_handle = l_handle
    root_instance = l_instance
    exceptions
    error = 1
    others = 2.
    l_characts_vals-atnam = 'WIDTH'.
    l_characts_vals-atwtb = '500'.
    append l_characts_vals to it_characts_vals.
    call function 'BAPI_CFGINST_CHARCS_VALS_SET'
    exporting
    object_id = 'MYMATCODE'
    instance = l_instance
    tables
    characts_vals = it_characts_vals
    characts_vals_err = it_characts_vals_err.
    call function 'CE_C_SET_CBASE'.
    l_poitem-int_obj_no = l_handle.
    call function 'BAPI_PO_CREATE1'
    exporting
    poheader = l_poheader
    poheaderx = l_poheaderx
    importing
    expheader = l_expheader
    exppurchaseorder = l_exppurchaseorder
    tables
    poitem = lt_poitem
    poitemx = lt_poitemx
    poschedule = lt_poschedule
    poschedulex = lt_poschedulex
    return = lt_return.
    call function 'BAPI_TRANSACTION_COMMIT'.
    Regards
    Sudheer

  • Creation of Stock transfer order using BAPI

    Dear Gurus,
            I was trying to create Stock transfer order using BAPI function
            BAPI_PO_CREATE
            though i have defined Bsart as 'UB'
            still it gives message :
            " No master record exists for vendor MOH1 "
            Please show me path fwd.
            Thanks and Regards
            Gaurav sood

    Dear all,
         Issue Resolved
    thanks

  • Data transper for customer master using BAPI

    I am trying to upload the customer master data from flat file to SAP tables using BAPI Customer.CreateFromData1. But not all of the fields are availble in this BAPI. Few of the important fields are absent e.g incoterms, account signment group of customer..it picks up default value from ref cust.....Is there any other way to load it......
    Thanks and regards,
    Tushar

    Look at OSS [Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D|https://service.sap.com/sap/support/notes/390045]
    you can only do this using ALE or Batch Input
    So use [ALE|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=createcustomerALE&cat=sdn_all] or [BDC|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=createcustomerBDC&adv=false&sortby=cm_rnd_rankvalue]. (dixit SAP)
    Regards

Maybe you are looking for