Create a Purchase order using the BAPI using the data in the XML file.

Hello Gurus,
here is the scenario can anyone help me how to proceed explaining the procedure?
Create a Purchase order using the BAPI using the data in the XML file.
comprehensive explanations are appreciated.
thanks in advance.

hi,
  first use fm "bapi_po_create".
  then use fm "BAPI_ACC_GL_POSTING_POST"
The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
•     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
•     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
•     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

Similar Messages

  • Create a purchase order strategy with four release steps.

    Hi all,
    how can I create a purchase order release strategy with 4 release steps?
    The steps have to be the following:
    AC (Buyer);
    CO (Controller);
    FI (Finance);
    AD (CEO).
    I couldn't configure and add entries in "Release prerequisites" (trx.OMGS).
    Best regards

    Hi ,
    The implemantation steps as follows ;
    Materials Management -- Purchasing -- Purchase Order --Release Procedure for Purchase Orders
    1 . Edit Characteristic ; You must create characteristics that related your strategy first . IN additonal data screen use "CEKKO " as table and appropriate field as field name .
    2.  Edit Class ; Create your class with class type - 032 . And enter your characteristics that created first step .
    3. Define Release Procedure for Purchase Orders
                    a.Create Release Groups and enter your class
                    b.Create release codes related with Buyer , controller etc.
                    c.Create Release indicator
                    d. Create Release Strategies ; Enter your release codes and in classificaiton area , you must enter your values that related with characteristics that created step 1.

  • Can anyone give me user exit name for create/update purchase order partners

    Hello guys
      Can anyone gives me user exit name for create/update purchase order partners?
      Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N)  by using user exit.

    hi,
    check these exits.
    Transaction Code - ME21N                    Create Purchase Order
    Enhancement/ Business Add-in            Description
    Enhancement
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number

  • How create a purchase order without imputation using bapi: BAPI_PO_CREATE1

    Hello Forum
    I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
    The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
    I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
    However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
    Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
    Thank you.
    Greetings,

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • How to create multiple Purchase Order  using the same document number?

    HI Friends,
    I m in a product which extracts data from SAP and stored in Access database.
    For that,while i extracting Purchase Order from the Demo Database (SBODemo_US)for OEC Computers,the same DocNum is used for several Purchase Order using Index Line numbers.
    eg:
    DocNum for Purchase Order1 -->3000   0 (Index)
      DocNum for Purchase Order2 -->3000   1 (Index)
        But i can't create multiple Purchase Order using same DocNum manually in SAP B1,Could anybody please help me <b>to create a Purchase Order using same DocumentNumber?</b>
    Thanks in Advance
    SooriyaKala.P

    Hi,
    The problem statement is not quite clear to me.
    As far as I understand your statement, I think you want to club multiple orders into one purchase order using the index incrementally.
    For this I think once you have created the first purchase order, open the purchase order in edit mode the second time and append the new line items.
    If I am getting you wrong please explain the problem statement in more detail.
    Regards,
    Rara.

  • Creating a Purchase Order using ORDERS05 Idoc

    Hi Experts,
    I need to create a purchase order using ORDERS05 Idoc, with the data I am using a sales order is gettig created but I need to create a PO insted of SO.
    Please let me know what is difference between a PO and SO while using ORDERS05. Also please let me know what are all the fields that needs to chaged in the Idoc.
    Thanks,
    Suma

    Hi,
       I'm looking at a similar problem, can we use ORDERS05 IDOC basic type to create a Purchase Order?
       What is the inbound processing FM?  I tried IDOC_INPUT_ORDRSP, but it seem to only allow changes to a PO, and not creation of a PO.
       For IDOC_INPUT_ORDERS FM this one seem to only create Sales Orders?
       Which inbound FM should i be using?
    Regards.

  • How to create a Purchase order from XI Using ORDERS05

    Hello Experts,
    I need to create a purchase order using OREDRS05 from XI. I was not able to create and I am having these quires.
    1. What are all the mandatory fields that I need to fill in to create a purchase order?
    2. Which part of the SAP will take care of the control record? Is this done by SAP or Integration Tool?
    3. When I have tryed with an existing Inbound Idoc(On R/3 Side) its showing Satus 51 what should I do?(Error: There is no article description for item 000010)
    If Possible give me the step by step procedure to reslove..
    Thanks in Advance,
    Sai Suma

    Hi Suma,
    Check this link
    Creating Purchase Order IDOC through XI
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    Sachin

  • Create a purchase order  using an existing PO

    I want to create a purchase order (ME21N) using an existing PO.
    Please help. how can i do that.
    Best regards,
    Satish

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a m

    We use a doc template to create a purchased part spec document and then save them as pdf formatted files.  These part spec documents are also appended with the datasheets for these purchased parts.  When we want to update/revise the document, is there a method, using Acrobat, to make those updates to the pdf, or must we go back to the doc template and basically generate a new document?
    Also, our resulting pdf documents aren't searchable.  How can we generate pdf documents that are searchable?  I may want to search for a part value or name within the body of these pdf documents, but currently can't do that...very inconvenient.
    Can you assist?

    Not totally sure about the search issue. A lot depends on how you created the PDF and what is in the datasheets you attached (like are they graphics?). The doc portion should be searchable as long as you used print to the Adobe PDF printer or PDF Maker. For your use, it may be that the print is adequate. However, the result should be searchable (unless maybe you had a form with filled in fields and created the PDF with PDF Maker. I think the form data may be retained in form fields and the fields are not searchable. In that case, a print might be a better procedure. (it would help to know the versions of WORD and Acrobat as well as the exact process you used to create the PDF.)
    If the appended data sheets do not change, then you might try opening the original PDF and then using Replace Pages to replace the file created from the DOC file.

  • Need a Bapi to Create a purchase order

    Hi experts,
    Is there a Bapi, to create a 'Purchase Order' from an existing Purchasing document no. marked for deletion.
    Thanks in advance ,
    Hrashit Rungta

    Hi Experts,
    I have used BAPI_PO_CREATE1 to create a purchase order .
    I have successfully created a purchase order when i use this BAPI directly through SE37 ,
    supplying the required inputs.
    But now i am calling  this BAPI inside a program,
    Supplying the same inputs as earlier.
    Buit i am not able to generate a PO.
    I am getting the messages in the Return Table as :|Please enter items first
                                                                                    No instance of object type PurchaseOrder has been created. External referen
                                                                                    Document contains no items
    Can someone suggest What input am i missing ?
    Thanks in advance,
    Harshit Rungta

  • Creating a Purchase Order for the Asset

    Hi,
    Please see the following steps:
    1.Create a purchase order for the asset.
    2. Post a goods receipt from this PO.
    3. Quantity of asset will be transfered from goods receipt.
    But I find quantity of asset(AS02) was not be transfered and still was equal to 0.
    Could you help me?
    Thanks and Regards,
    Colin.

    see the field status varient for the gl account see the qty field is optional field or not
    and check in the asset group also qty field is the optional field
    Assign point if useful
    Regards
    A.k

  • Release Tab in purchase order disappear after release using ME29n

    Hi there,
    We are busy testing support stacks (upgrading from ECC6 SAP_APPL SAPKH60305 to SAPKH60307)and we've come accross a strange problem.  When we create a normal purchase order (ME21n) the purchase order does pick up a release strategy.  Using the older ME28 transaction to release this purchase order, everything is fine.  We can use ME28 to release the purchase order, as well as unreleasing the purchase order, as often as we want (the same purchase order).  When we use transaction ME29n the release tab in the purchase order just simply disappears after saving.  In the purchase order header changes, the release change is visible, but the release tab is missing.  This purchase order is now not subject for release, and a goods receipt is possible without release.  I checked in table EKKO as well and the release fields in this table for this purchase order is empty.
    Has anybody had a similar experience?  Any advise would be greatly appreciated.
    Regards
    Christo Vermeulen

    Hi Christo Vermeulen,
    I have detected the same problem as reported by you. Did you solve it? Do you know how can I procedure to solve it?
    Thanks in advanced,
    Eder Nicoleti

  • Does the system omit release procedure if a user creates a purchase order he is to allowed to approve?

    Dear experts,
    Can the SAP system omit triggering of a release strategy even though the conditions for starting a release strategy are being met?
    I created a release strategy where I am the user authorised to approve purchase orders in certain situations. When I create a new purchase order that meets those specific conditions, my system produces a message "Purchasing document 4500017515 cannot be released" after I try to release my purchase strategy using tcode ME29N.
    I would be thankful for your responses.
    All the best,
    Radoslaw

    Dear Jurgen,
    I have edited my release strategy so that each characteristic has a threshold value, and afterwards tried to create a purchase order (tcode ME21) where the purchasing organisation, purchasing group as well as net order value fulfilled the criteria for triggering a release strategy. I also made sure that the PO time&date is preceded by the recent changes that I have done to my release strategy. Unfortunately, my new purchase order was still not subject to the release strategy.
    I will now try to find a way to delete one of the unnecessary 'net order value' characteristics from class so that it is not included in the release strategy. I will also try to search for inconsistencies in my release strategy and purchase order in line with Bijay's advice above.
    Thank you for your comments.
    All the best,
    Radoslaw

  • How to Display  'purchase order text' in MM03 using report program

    Hi Friends,
    Can anybody suggest me how to display 'purchase order text' in MM03 using report program.
    'Purchase order text' tab displays purchase long text of particular material .
    I coded as:
          SET PARAMETER ID 'MXX' FIELD 'E'.
          SET PARAMETER ID 'MAT' FIELD k_final-matnr.
          SET PARAMETER ID 'WRK' FIELD k_final-werks.
          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    It displays Purchasing tab other than Purchase Order Text tab of MM03.
    Please suggest me how can i solve this.
    Is there any parameter id to set values for Purchase Order text tab

    >
    Madhu Mano Chitra wrote:
    > I want how to navigate to MM03 'Purchase Order text'  tab/ view using ABAP code.
    > could any suggest me
    You can call a transaction and pass it a BDC table that tells it where you want it to go.  You have to work out for yourself what to put into the BDC table.  The code below works for tcode CATSSHOW.
    DATA: bdcdata_wa  TYPE bdcdata,
          bdcdata_tab TYPE TABLE OF bdcdata.
    DATA opt TYPE ctu_params.
       CLEAR bdcdata_wa.
        bdcdata_wa-program  = 'CATSSHOW'.
        bdcdata_wa-dynpro   = '1000'.
        bdcdata_wa-dynbegin = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'SO_STATU-LOW'.
        bdcdata_wa-fval = '20'.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'ANDZEIT'.
        bdcdata_wa-fval = SPACE.
        APPEND bdcdata_wa TO bdcdata_tab.
        CLEAR bdcdata_wa.
        bdcdata_wa-fnam = 'PAST'.
        bdcdata_wa-fval = 'X'.
        APPEND bdcdata_wa TO bdcdata_tab.
        IF p_selscr = SPACE.
           CLEAR bdcdata_wa.
           bdcdata_wa-fnam = 'BDC_OKCODE'.
           bdcdata_wa-fval = '=ONLI'.
           APPEND bdcdata_wa TO bdcdata_tab.
        ENDIF.
        opt-dismode = 'E'.
        opt-defsize = 'X'.
    CALL TRANSACTION 'CAPP' USING bdcdata_tab OPTIONS FROM opt.

  • Creating a purchase order in web dynpro for java.........

    hello all,
    i am new to web dynpro for java.i have already done an application
    "Creating a Web Dynpro Application Accessing ABAP Functions" this application
    have good document on sdn.
    this application is working fine .
    Now i got an requiremnt for creating a purchase order in web dynpro for java.
    in normal report when i call  the bapi the parameter are the header, headerx,item, itemx is an internal table.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = HEADER
        POHEADERX                    = HEADERX
      POADDRVENDOR                 =
      TESTRUN                      =
    IMPORTING
      EXPPURCHASEORDER             =
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RETURN
       POITEM                       = ITEM
       POITEMX                      = ITEMX.
    i just want to know how can i fill these internal table in web dynpro
    for java to create an application accessing "Bapi_po_create" .
    Thanks

    Hi Gopal,
    I'm not sure what is your issue, it seems you're not really understanding how the Model structure works in WDP.
    I'll assume few things here, like you know how to Import the Model into the WDP, and you know a little bit about what Java Classes will represent this Model in the Project.
    Try these steps:
    1. Import your Model into the Project;
    2. Open your Component Modeler, create a Data Link between your Model / Component (Or Custom Controller, as you prefer)
      - You can also use the "Apply Template -> Service Controler"
    3. Map the Input of your Model as the Main Node, check the Input Tables (you prob. will have two, POITEM = ITEM - POITEMX = ITEMX)
    4. Also, check the Return box, since this is BAPI return (You can use to display Backend messages)
    Now you have the Model mapped into your Controller, you need to develop the Java function to execute it.
    1. Create a new Input class, like
    BAPI_PO_CREATE1_Input purchaseOrderCreateInput = new BAPI_PO_CREATE1_Input();
    2. Bind your Input Node, in the Controller, with your Input Class;
    wdContext.nodeBAPI_PO_CREATE1().bind(purchaseOrderCreateInput);
    3. Set any Import parameters you need:
    purchaseOrderCreateInput.setEXPPURCHASEORDER(XXXX);
    4. To Add references to the Table, you will perform something like:
    First, you need to know what "Structure" you need to add (POItem Structure) - You have a Java class that represents that Structure..
    POITEM_Element poItemElement = new POITEM_Element();
    poItemElement.setPROPERTY();   /// Set your Properties
    purchaseOrderCreateInput.getPOITEM().add(poItemElement);
    5. Execute your Input,
    purchaseOrderCreateInput .execute();
    Hope it helps,
    Regards,
    Daniel

Maybe you are looking for

  • The infamous render question

    I've read several posts concerning rendering and so far none of the answers have helped me. I have both red and yellow bars over my timeline so I know I need to render. When I go to render, the render bar pops up for a second then goes away (and does

  • Linking functional modules

    Hi, We have a set of isolated functional modules (bounded task flows) which implement specific business functions. In brief, there are modules to search and to manage information. In order to ensure the business logic we want to link these modules. F

  • Does the LAN port really work for wired internet?

    Ok. So I've seen this question asked, but nobody ever seems to come back and say "great, it worked!". If I have my AEBS connected to my DSL modem via the WAN port, Set up with my PPPOE info and set to distribute IP addressess and WDS on, can it also

  • Planning dimension security lost.

    Hi, Dimensional security in our planning applications are lost after maintenance. There is no pattern in this,, the loss in security for some dimensions is random. Do you have any clue what may be the reason for this? Thanks..

  • Error message - Recording engine: media is busy

    I have no idea what this means. When I burn a QT movie made prior to my upgrading to Tiger, its works fine. When I try to burn one made after the upgrade, I get that message. Is that the reason? Will this not work with Tiger? Thansk. J.