VMI - ORDRSP IDOC to create a Purchase Order automatically

Hello All,
I would like to simulate the VMI process. Which data in a ORDRSP IDOC (Message variant VMI) has to be filled at least, so that from it an Purchase Order is created automatically? Does anyone of you have an example IDOC - maybe in the XML format?
Thanks in advance
BR
RMP

Hi Hanuma,
For creation productin order IDoc, you can use standard program RCCLORD and FM CLOI_MASTERIDOC_CREATE_LOIPRO.
For creation purchase order IDoc, you can use FM IDOC_OUTPUT_ORDCHG or IDOC_OUTPUT_ORDERS.
There is customer exit available for you to populate new status and order number.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.

Similar Messages

  • Create service Purchase Order automatically at goods issue in VL02N.

    Hi Friends,
    Please give me steps on how to write the ABAP code To Create  service PO automatically at goods issue.
    Technical Info
    •     BAPI BAPI_PO_CREATE1 is to be used for creating the service PO.
    •     The service PO will be only created for YLF deliveries.
    •     The PO will be created only if the shipping conditions field ( LIKP-VSBED ) has any value except 3rd party or Customer pick-up.
    •     The PO needs to be created when goods issue is performed on the delivery.
    •     The PO needs to be created with the following values :
    1.     Purchase order type : YB
    2.     Vendor : Header partner function SP, Carrier
    3.     Plant : LIPS-WERKS
    4.     Material : 10
    5.     Account Assignment Category : K
    6.     PO Quantity : 1      
    7.     Net price : LIKP-NETWR
    8.     Cost Center : 54434
    •     On failing to save the PO, the error message should be generated so that the user knows the error and can fix the error and create the PO manually.
    Please help for this urgent req.
    thanks.
    Message was edited by:
            anjan
    Message was edited by:
            anjan

    Sure. Here it is:
    Go to SPRO.
    Logistics Execution
      Transportation
        Shipment cost
          Shipment cost document
             Shipment cost type and Item category.
    For the shipment cost item category you are processing, lets say standard 0001 (Transportation costs). double click on it.
    You will find all you need in the tab SETTLEMENT.
    There, there is a field GENERATE PO.
    Select one of the options:
         Do not generate purchase order
    A     Generate purchase order for validity period of 1 day
    B     Generate purchase order for validity period of 1 week
    C     Generate purchase order for validity period of 1 month
    Once the shipment cost is created and transfered to MM(settled), if there no open PO for the carrier, the system creates one.
    Good luck,
    Leonardo De Araujo

  • Converting Process order Idoc to Post a Purchase order

    Hi,
    we have a requirement where we will get a Process order IDOC that is LOIPRO as an inbound IDOC. We need to use the IDOC to create a purchase order.
    Can anybody suggest what can be done.
    Sender system sends LOIPRO.
    Recieving system recieves it and need to post a purchase order rather than a process order.
    Thanks,
    Neha.

    No Reply..so far..

  • 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.

  • Inbound Idoc Create/Change Purchase Order

    Hi All,
    I have to do a inbound Idoc scenario for create as well as change Purchase Order.
    Which is the IDoc type for Create/Change purchase order.
    I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.
    If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.
    I also found that IDoc type PORDCR102 can be used for  create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.
    Please suggest.
    Thanks in advance.
    Regards,
    John

    Hi John,
    For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.
    Give ORDERS05 in Message Type and select the line & go to Display.
    In the screen which appears , choose tab Message Control and give the Process code
    ME10 - Creation of PO
    ME11 - Changes to PO & check the Change Message.
    Give respective Output Message Type & Application(VF) for PO.
    Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.
    Create a PO & save. Then make some changes in Po & again save.
    Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.
    Hope It helps.
    Regards,
    Anbalagan

  • 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 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 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).

  • Create another purchase order for a material ordered in full

    Hello friends,
    I have a little MM question for you.
    I've created a purchase requisition with a material A and quantity 100 UN
    I've then created a purchase order in reference to this PR.
    This PO has been released.
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?
    How does SAP control that ? (customizing path ??)
    Regards,
    Bahia.

    Dear,
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?  Yes it is possible in SAP
    How does SAP control that ? (customizing path ??): SAP controls in that way, when ever you create purchase requisition with a material A and quantity 100 UN...Now PO created and released...
    Now again if you try to create PO wrt PR, you can observe this time you will get all deatils in PO without quantity...reason behind that is, you have already released an order for full qty w.r.t. that PR...So this time qty field will be empty..You have to manually enter this field.
    Now the same you can see in the the PR status in ME53N Tcode.
    Regards
    Utsav

  • 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

  • Is it possible to create a Purchase order wrt a Scheduling agreement?

    Is it possible to create a Purchase order wrt a Scheduling agreement?

    Hi,
    It is not possible to create PO wrt a Scheduling Agreement. Po is basically a formal instruction given to the supplier by the purchasing dept. It is non-binding. Delivery of the goods is not mandatory for a PO. However, in the case of SA, we create SA
    and maintain SA Schedule lines (ME38) with reference to SA. The agreement created with vendor is binding and fixed.
    Hope it clarifies.
    Regards,
    Bijoy Kumar S.P.

  • Error while creating a Purchase Order

    Hi Friends,
    I am new to SAP MM. I am getting a problem while creating a purchase order. I created Purchase Info Record, Source List, but while creating Purchase Order, price is not picking from the purchase order. I am getting an error i.e. Net Value must be greater than 0. I checked all the settings, but getting same error.
    Could you please solve this

    Hi,
    Give some price at the item level for the item in the PO.
    And check the Pricing procedure in PO
    Hope it helps you.
    Thanks.

  • Creating a Purchase Order

    Hi there,
    i need to create an purchase order, heres my code:
    Private Sub Gerarcompra()
            Dim i As Integer
            Dim RetVal As Long
            Dim ErrCode As Long
            Dim ErrMsg As String
            ErrMsg = "Ocorreu um erro..."
            Dim vDrafts As SAPbobsCOM.Documents
            vDrafts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)     
            oForm = SBO_Application.Forms.Item("analprocform")
            oMatrix = oForm.Items.Item("MatrixProc").Specific
            For i = 1 To oMatrix.RowCount
                oCheck = oMatrix.Columns.Item("select").Cells.Item(i).Specific
                If oCheck.Checked = True Then
                    'Set values to the fields
                    vDrafts.CardCode = "V8000"
                    vDrafts.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                    vDrafts.DocDate = System.DateTime.Now
                    'Invoice Lines - Set values to the first line
                    oEditText = oMatrix.Columns.Item("NArtigo").Cells.Item(i).Specific
                    vDrafts.Lines.ItemCode = oEditText.Value
                    vDrafts.Lines.ItemDescription = ""
                    oEditText = oMatrix.Columns.Item("Quantidade").Cells.Item(i).Specific
                    vDrafts.Lines.Quantity = Double.Parse(oEditText.Value)
                    oEditText = oMatrix.Columns.Item("Preco").Cells.Item(i).Specific
                    vDrafts.Lines.UnitPrice = Double.Parse(oEditText.Value)
                    vDrafts.Lines.Add()
                End If
            Next
            'Add the Invoice
            RetVal = vDrafts.Add
            'Check the result
            If RetVal <> 0 Then
                oCompany.GetLastError(ErrCode, ErrMsg)
                MsgBox(ErrCode & " " & ErrMsg)
            End If
        End Sub
    But in the end i got an error: "Nº Article missing...".
    Thank you all for your support.
    Luis Barros

    change the code as
    Private Sub Gerarcompra()
    Dim i As Integer
    Dim RetVal As Long
    Dim ErrCode As Long
    Dim ErrMsg As String
    ErrMsg = "Ocorreu um erro..."
    Dim vDrafts As SAPbobsCOM.Documents
    vDrafts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
    oForm = SBO_Application.Forms.Item("analprocform")
    oMatrix = oForm.Items.Item("MatrixProc").Specific
    dim x as integer
    x = 0
    For i = 1 To oMatrix.RowCount
    oCheck = oMatrix.Columns.Item("select").Cells.Item(i).Specific
    If oCheck.Checked = True Then
    x = x + 1
    if x > 1 then
    vDrafts.Lines.Add()
    end if
    'Set values to the fields
    vDrafts.CardCode = "V8000"
    vDrafts.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
    vDrafts.DocDate = System.DateTime.Now
    'Invoice Lines - Set values to the first line
    oEditText = oMatrix.Columns.Item("NArtigo").Cells.Item(i).Specific
    vDrafts.Lines.ItemCode = oEditText.Value
    vDrafts.Lines.ItemDescription = ""
    oEditText = oMatrix.Columns.Item("Quantidade").Cells.Item(i).Specific
    vDrafts.Lines.Quantity = Double.Parse(oEditText.Value)
    oEditText = oMatrix.Columns.Item("Preco").Cells.Item(i).Specific
    vDrafts.Lines.UnitPrice = Double.Parse(oEditText.Value)
    End If
    Next
    'Add the Invoice
    RetVal = vDrafts.Add
    'Check the result
    If RetVal 0 Then
    oCompany.GetLastError(ErrCode, ErrMsg)
    MsgBox(ErrCode & " " & ErrMsg)
    End If
    End Sub

  • GOS while creating a Purchase order

    Hi,
    I have a requirement to attach documents in item level while creating a purchase order ME21N. I know that we can have GOS functionality available but, only after document is created.
    Is there a alternative solution for this?
    Thanks in advance

    Hi,
    Give some price at the item level for the item in the PO.
    And check the Pricing procedure in PO
    Hope it helps you.
    Thanks.

  • User id while  creating a purchase order

    Hello all,
    I would like to know whether there is any option to enter the user id or user name while creating a purchase order. If so could anyone post on how to do that.
    Thanks,
    Maxx

    If you are creating PO in foreground, you dont have the option of giving user id.
    But if you create POs in background using a scheduled job, then when you are scheduling the job, you can overwrite the default user id and give the user id you want. In this case all the POs created by the job, will have the user id created by you.
    But if you have to create a PO through background job, you have to give the inputs to PO through some programs may be BDCs or LSMW.
    Reward if this helps. you

Maybe you are looking for

  • Installieren meiner Produkte auf anderem Computer

    Ich darf meine  Anwendungen (in diesem Fall Design und WebPrem) dreimal installieren (zu meinem eigenen Bedarf). Aber: Wie installiere ich meine Adobe Produkte auf einem anderen Computer?

  • Error at debug PL/SQL with object types

    Hi, can someone help me. My context is: Database: Oracle 9.2.0.5. O.S. Solaris 9 SQL Developer: 1.2.1 build 3213 I am trying to debug a package and I am getting this error: Connecting to the database ADMINEW_SERVICIOS. Executing PL/SQL: ALTER SESSION

  • Exporting / importing the Enhancement (or the project?)

    Hi! is it possible to perform exporting / importing of the Enhancement from one system to other? Systems are not connecting, so no TRs are possible... Probably need to export / import the whole Z project (is it possible?), because Z project contains

  • Add-ADGroupMember : Cannot find an object with identity

    Season Greetings. I have this piece of code that does little else than add a userproxyfull user to a group in ADLDS. Get-ADGroup -server b-004:389 -searchbase $partition -credential $myCred -filter {distinguishedName -eq $groupdn} | Add-ADGroupMember

  • C DLL does not working in LabVIEW-20​11, but works good in LabVIEW-20​09

    The C-Language dll which I have for an instrument is working good in LV2009 without any errors, but in 2011 it throws 1097 Error code.  In this link, it is mentioned that calling convention in "Call Library Node" is changed since LV2010 which I guess