Vendor create BAPI?

Dear all,
I did not find a suitable fm/BAPI to create Vendors in SAP. Can i write my own BAPI based on requirements?
   Regards

Hi Satish,
Please find the Creation of Vendor - VMD_EI_API posted by Vineesh Varghese which explains the usage of VMD_EI_API class.
Regards
Pallavi

Similar Messages

  • How to pass multiple addresses per vendor in PO create BAPI?

    Hi Experts,
    We have a requirement to pass multiple addresses for one time Vendor in a PO creation BAPI. But when I checked BAPIs there is a table for partners and address details are not present in that (type BAPIEKKOP).
    Is there any way where I can pass these multiple phone nos, emails, etc for one time Vendor through BAPI?
    These multiple phone nos, emails etc should be available in ME23N -> Header -> Partners (VN) ->details in communication.
    Please suggest a way to achieve this.
    Thanks,
    Anand

    Hi,
    Vendor address details are coming from Vendor data. While you checking the vendor details from ME23N it navigate to FK03.
    So if need to change any thing any vendor address then you need do that first then create the PO.
    This address not related to PO.
    Thanks
    Subhankar.

  • Vendor master create BAPI

    Hi experts,
                           I have been searching for vendor master BAPI for a long time. I didn't find anything useful.
    1.BAPI_VENDOR_CREATE just call txn XKO1.
    2.Class VMD_EI_API can't be called remotely
    3.VENDOR_INSERT doesn't work, which directly upload data into DB
    I wonder why SAP didn't give a standard BAPI for vendor master. I need to create vendor from a Non-SAP application. Please give me any solution.
    Thanks in advance.

    Good point.
    We always use BDC programs to upload vendor master.
    Solution to your problem could be calling BDC within a custom RFC function which can be called from non-SAP system.

  • Getting Error while creating multiple Orders using Sales order Create BAPI

    Hi,
    I am trying to create 2 orders thru the Sales order create BAPI before I commit and save the orders. The Orders are getting created and the BAPI is coming back with success, but it is not setting the system status on the line items of the 1st order. So when I try to cancel the line items on the first order I get the error 'No status object is available for SDI 4924/10' . I would really appreciate if anyone has encountered such error before and could help me out with the reason for this error and the possible solution.
    Thanks in advance,
    David.

    Hi,
    Check the following link:
    http://www.sap-img.com/bapi.htm
    Regards,
    Bhaskar

  • How to change price of item using salesorder create bapi

    hi all,
         As per requirement i have to change price of the item while i am creating sales order using sales order create bapi. kindly tell me the process or if possible any sample program.
          thanks in advance
    thanks,
    pavan
    Message was edited by: pavan kumar pisipati

    hi max ,
          i created sales order using following code. from here onwords i have to update to change the price of the item. kindly do the needful. i am working 4.7 ides
    <b>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '50'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-req_qty   = '10'.
      append my_orderschedulesin.
      my_orderschedulesin-itm_number = '20'.
      my_orderschedulesin-req_qty   = '20'.
      append my_orderschedulesin.
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-division      = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag        = 'I'.
      my_orderschedulesinx-itm_number       = 'X'.
      my_orderschedulesinx-req_qty          = 'x'.
      append my_orderschedulesinx.
      my_orderschedulesinx-itm_number       = 'X'.
      my_orderschedulesinx-req_qty          = 'x'.
      append my_orderschedulesinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
          order_schedules_inx           = my_orderschedulesinx
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
    if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.
    endif.</b>
    thanks,
    pavan
    Message was edited by: pavan kumar pisipati

  • Issue with Create BAPI - Please help

    I need to do a Create BAPI the structure is as follows:
      -Orders
         -Operations_create  (Afvgd - BAPI table structure)
    On a click of a InsertOperation button, I should be able to insert the line Items to the Operations_create node and then set them finally to the Model node. Then do the order create(Insert BAPI as a whole).
    The problem is there is an already existing element (framework created). So if I do the following code in onActionInsertOperation. I am getting an extra duplicate record.
    Is there a easy fix to this . I am not sure Supplyfunction will help here. If so, How?
    Or Can I tweak the code here?
    Thank you ... Any help is appreciated
    View Controller:
    onActionInsertOperation(){
        IOperations_CreateElement oprEle = wdContext.createOperations_CreateElement();
        oprEle .setGLAccount(wdContext.currentOperations_CreateElement().getGLAccount());       
        oprEle .setVendorNo(wdContext.currentOperations_CreateElement().getVendorNo());          
        wdContext.nodeOperations_Create().addElement(oprEle);
    onActionCreateOrder(){
        wdThis.wdGetVmrsCustController().callBapi_CreateOrder();
        wdThis.wdGetVmrsCustController().callBapi_Commit();
    Custom Controller:
    callBapi_CreateOrder(){
         for(int i=0;i<wdContext.nodeOperations_Create().size();i++) {
          Afvgd item = new Afvgd();          
          item.setGLAccount(wdThis.wdGetContext().nodeOperations_Create().getOperations_CreateElementAt(i).getGLAccount());               
          item.setVendor(wdThis.wdGetContext().nodeOperations_Create().getOperations_CreateElementAt(i).getVendorNo());               
          inputCreateOrder.addOperations(item) ;
         // Executing the Model
         // Invalidating ...          

    Hello Vivek,
    If the node <b>Operations_create</b> is a Value Node then you may <b>bind</b> the oprEle element to
    the <b>nodeOperations_Create()</b> instead of adding it to the Node.
    onActionInsertOperation()
          IOperations_CreateElement oprEle =
                   wdContext.createOperations_CreateElement();
          oprEle .setGLAccount
                   (wdContext.currentOperations_CreateElement().getGLAccount());
          oprEle .setVendorNo
                   (wdContext.currentOperations_CreateElement().getVendorNo());
          <b>wdContext.nodeOperations_Create().bind(oprEle);</b>
    Also, you may change the cardinality of the Operations_Create node to 0:1 or 0:N (from 1:N).
    By doing this, you can prevent automatic generation and addition of an element by the WDF.
    Bala

  • Hi i want to create BAPI to get approver of the employee

    hi i want to create BAPI to get approver of the employee
    in this  BAPI if there are two approver for that employee than i need both approver personal no.
    please help me
    thanks in advanced.

    Hi
    I doubt whether there is a direct Standard BAPI for that.
    The below report will get you the employees approver org position. Even if there are two approvers are there, it will display both the approvers position.
    *& Report  ZGD_TEST_HR_ORG_STR
    REPORT  ZGD_TEST_HR_ORG_STR.
       DATA: plvar            LIKE hrsobid-plvar.
      DATA: otype            LIKE hrsobid-otype.
      DATA: sobid            LIKE hrsobid-sobid.
      DATA: date             LIKE sy-datum.
      DATA: leading_position LIKE hrobject OCCURS 1 WITH HEADER LINE.
      DATA: org_agent        LIKE swhactor.
      DATA: lv_sw_vapos      TYPE xflag,
            lv_subrc         TYPE sy-subrc.
      DATA spfli_wa TYPE spfli.
      DATA carrid_buffer TYPE spfli-carrid.
      IF plvar IS INITIAL.
        CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR'
          IMPORTING
            act_plvar       = plvar
          EXCEPTIONS
            no_active_plvar = 1.
        IF sy-subrc > 0.
          MESSAGE e300(5w) RAISING no_active_plvar.
        ENDIF.
      ENDIF.
    IF otype IS INITIAL OR sobid IS INITIAL.
          otype = 'US'.
          sobid = sy-uname.
      ENDIF.
      CALL FUNCTION 'RH_GET_LEADING_POSITION'
        EXPORTING
          plvar              = plvar
          otype              = otype
          sobid              = sobid
          date               = sy-datum
          auth               = ' '
          consider_vac_pos   = space
        TABLES
          leading_pos        = leading_position
        EXCEPTIONS
          no_lead_pos_found  = 1
          OTHERS             = 2.
       IF sy-subrc > 0.
        MESSAGE e802(5w) WITH otype sobid
                         RAISING no_lead_pos_found.
      ELSE.
        LOOP AT leading_position.
          write :  / leading_position-otype,
                     leading_position-objid.
        ENDLOOP.
      endif.
    Hope it helps you

  • Vendor create process using workflow

    hello,
    I have been assigned a project to desgin a process to automatically create a vendor. below is what I think has to be done. can this be reviewed to see if this is the correct approch and if not, suggest a better approach.
    1) the vendor will sign onto our portal and submit their information to have them created as a vendor in our system. this information will be stored in a custom table
    2) the portal process will have a ABAP program that generates the screen for the user to enter thier data. this program will also start a workflow that will send a notification to a person inside our company for them to review the information and decide weather the vendor can be added.
    3) if the person approves the request, the workflow will submit a process to create the vendor, and send a approval email to the vendor
    4) If the person rejects the process, the workflow will send an rejecction email will be sent to the vendor
    I am in charge of creating the workflow and submitting the vendor create process
    thanks in advance for the help

    Hi Anil
    Take a look at the Workflow collateral located on http://otn.oracle.com/products/integration/content.html.
    I'd also suggest looking at the Sample Workflow Processes included with Oracle Workflow.
    There are also some on demand Oracle iLearning courses (ilearning.oracle.com) which should be very useful for you.
    Cheers
    Mark
    Hi,
    Could anyone give me a case study describing how to create a new process using workflow builder? Where are the notifications saved in the database? Where is the process saved? Give me a general flow of events in the creation of, say a document management process wherein all these details are specified. A document containing the whole flow involved in the creation of a process using workflow builder. What all PL/SQL procedures I need to write and all. I have both workflow server and builder installed.
    This would be of immense help.
    Regards
    Anil

  • After creating a object of bapi what is the next step to do to create bapi

    after creating a object of bapi what is the next step to do to create bapi  completely,
    thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Please check the link..
    http://www.erpgenie.com/abap/bapi/example.htm

  • How to pass table values in Create Bapi Wrapper

    Hi All,
           Am using create BAPI  Wrapper in that how to map the fields inside BAPI  Import Structure .
    Thanks&Regrads,
    Arun

    Hi,
    Am using standard RFC " QIBP_INSPCHAR_SETRESULT "  for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
    In QIBP_INSPCHAR_SETRESULT am passing inupt
    INSPLOT      LIKE         QALS-PRUEFLOS
    INSPOPER     LIKE     QAPO-VORNR
    INSPCHAR     LIKE     QAMV-MERKNR
    INSPSAMPLE     LIKE     QASV-PROBENR
    CHAR_RESULT     LIKE     BAPI2045D2           
    so i want to know how i can pass    1 . CHAR_RESULT structrue values
                                                               2.  INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
                                                                    in SDOE_WB
    Pls explain how to create BAPI Wrapper for this and how to map details.

  • How will u create BAPI

    Hello SAP guys,
    I had interview.
    I was asked these questions.
    1) how do u create BAPI....
    2) how u handle upgrade issues...
    Let me know the answers.
    thanks.
    Regards,
    Naveen.

    Hi,
    It is like how you created ZBAPI_ORDER_STATUS_IMPORT..
    Go to SE11.
    Choose data type, give the structure name and press create..
    Choose structure..
    And then give the components mentioned in the link..
    Please remember to award points for helpful answers..
    Thanks,
    Naren

  • Why is one time vendors created

    Why is one time vendors created ?What is the use?How is it different from other vendors?

    One time vendors may be created for requesting quotations.- i.e RFQ, the use is u will be able to track to which vendors u have requestedd the quotations, u will be able to maintain the quotations and also compare the quotations.
    There may be several more reasons depending on the business needs. The above said is such one scenario.
    Let me know further if anything is required
    Regards,

  • To create bapi?(function module for bapi i.e. checks and update table)

    Hi all,
      I want to know how to create BAPI?. means in function module how i hv to put checks and how i will update database table.
    thanks and regards
    sg

    BAPI STEP BY STEP PROCEDURE: -
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    BAPI Programming guide: -
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    BAPI user guide: -
    http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
    Example:-
    http://www.erpgenie.com/abap/bapi/example.htm
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • How to create Bapis step by step

    Hi.
    Can u tell me how to create Bapi step by step with a sample program..

    Copy-paste from http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    has been reported to SCN Moderators, along with all those who are providing links.
    pk

  • One new vendor created not replicated in SRM from ECC .why

    Hi all
    once in a moon vendor replication wont happen for certain new  vendor so we edit xk02 and next vendor sync job it will be available in SRM but this time i hammered a vendor many times  still not pulled into SRM . other new vendors created fine.
    any restriction stopped you any clue is appreciated.
    I can pull it in different way.but i want why some times sync job failED TO TRANSFER long name vendor more than 38
    Muthu

    HI Deva,
    I am also facing similar kind of issue. where Vendor get updated in the BUT000 but not get updated in BBPM_BUT_FRG0061.
    When i am running the MDS_LOD_COCKPIt. It is showing me Error Message as BP number Already Exist.
    Kindly Suggest me Process, how to update the Table BBPM_BUT_FRG0061.
    Qucihk reply will be highly appreciated.
    Thanks
    KHATRGA2

Maybe you are looking for

  • Mac Mini - Bootcamp; without CD Drive?

    how do I install windows 7, through bootcamp, on my Mac Mini without a USB DVD drive. I've recieved an ISO file from Microsoft with Win7 on so would like to use bootcamp to mount this onto a partition. Help?

  • How do I recover my missing messages?

    when I start tbird to check messages all previous messages were missing and only those that immediately downloaded were displayed--- how to recover?

  • Pa_agreement_pub.create_agreement Currency Code Error

    Hi, I am trying to create an Project Agreement using the API. But everytime I try to run the script, it gives me an error *"Validation Error ->The Agreement Currency Code is not valid. (AGREEMENT=p1011-1) lv_msg_data PA"* I have provided the Currency

  • ICal Reporting and/or export to reporting tool

    I'd like to get a report of iCal entries either directly from iCal OR by exporting iCal entries to another tool (Word, Excel, etc.). Is there some way to do that? Thanks, mdh

  • Fico MIGO & MIRO

    Hi experts, what is the MIGO & MIRO and when it take place and what is the use of that  can u pls explain me Thanks in advance Regards Jay