Creation multiple idocs on creation of a Purchase order

Hi all,
  I am having a requirement wherein if I create/change any purchase order with multiple Items in one system, I need to create multiple sales orders in the receiving system with each item. That is, the sending system should send multiple ORDERS idocs to the receiving system with each item as one IDoc and need to create a Sales order for each item in the receiving system.
  I am able to configure the systems in such a way that if I create a Purchase order with multiple items, it is sending one ORDERS idoc with multiple and henceforth, creating only one Sales order in the receipient system. But, not able to acheive the scenario I have mentioned above, i.e., creating multiple IDocs with one item each for the same purchase order.
  So, Can anybody know how to handle this scenario? Also, can you please let me know whether is there any standard procedure for handling this scenario?

Hi Adithya,
I too facing the same kind of requirement, can u please let me know how you achieved sending multiple idocs.
Thanks,
Kashif

Similar Messages

  • Multiple Ship To Address in a Purchase Order

    Can we have multiple ship to adresses in a Purchase Order in SAP Business one.

    SAP does not give you an option to select different ship to addresses in purchase orders unless you are using a drop ship warehouse.
    Thanks
    Murtuza

  • IDOC ORDERS02 E1EDP02 QUALF 001: Purchase Order at Item level not inserted

    Hi all,
    I try with an ORDERS02 IDoc in segment E1EDP02 with QUALF 001 to insert a customer purchase order number at item level different from the one passed in E1EDK01 QUALF 001 and I expect to insert additionally to the VBKD record for POSNR 000000 one for my item line.
    This additinal VBKD record is not inserted and I do not get this customer purchase order number in my sales order.
    Does any one know what to do?
    Thanks in advance.
    Axel

    To take over customer purchase order number on item level like the one for the ship-to-party (to treat a QUALF=001 for BSTKD like the QUALF=044 for BSTKD_E) seems to be unpossible.
    Within IDOC_INPUT_ORDERS
    LVEDAF5M: FILL_E1EDP02
    WHEN '044'.
    *- Bestellnummer des Warenempfängers -
    *- purchase order number consignee -
          PERFORM IDOC_MOVE USING E1EDP02-BELNR XVBAP-BSTKD_E D_FLAG_P-PBES.
    We need to have
    WHEN '001'.
    *- Bestellnummer des Warenempfängers -
    *- purchase order number -
          PERFORM IDOC_MOVE USING E1EDP02-BELNR XVBAP-BSTKD D_FLAG_P-PBES.
    this is calles from
    LVEDAF2U:
    *- Auftragsposition Referenzen -
    *- item reference data -
          WHEN 'E1EDP02'.
           MOVE IDOC_DATA-SDATA TO E1EDP02.
           PERFORM ZUORDNEN_ORDERS_E1EDP02.
    *-Zusätzliche Daten aus IDOC-Struktur (Kundenerweiterungen)----
    *-additional data's from IDOC (customer exit)----
           SY-SUBRC = 0.
           PERFORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
    This calls
    CALL CUSTOMER-FUNCTION '001'
    So IDOC-DATA-SDATA is allready in E1EDP02
    but it is not sufficient to do the call needed like stated above within EXIT_SAPLVEDA_001 since
    I expect a result in VBKD, not in VBAP, and BSTKD is not like BSTKD_E a field of XVBAP.
    In LVEDAF16, LVDEAF1C, LVEDAF27 AND LVEDAF4N the field is taken over into the screen but we have no chance to forward it to there
    and to enhance there. Last one seems most interesting since it is for VA01!
    It could be to enhance EDIT_SAPLVEDA_002 but how to forward the content to this field if it is a VBKD
    field and all VBKD fields are statically added to VBAP fields in the program and not in the dictionary.
    That would cause to append a parking field in VBAP or require to modify the code!
    Any better ideas?

  • IDOC generation to change the Purchase Order

    Hello Experts,
    I am developing the program for changing the purchase order through IDOC.
    We will get the file from legacy sytem with control and header and detail record.
    So when ever the there is EOR as last field in the detail record. Im updating the IDOC_DATA and  calling functin IDOC_INBOUND_SINGLE.
    SO when ever there is mulitiple line items changes for single PO.
    we will get the file like that for last detail record we will get EOR as last field for last line tiem .
    So i m grouping in to  one control and one header and one or more detail record and passing to the IDOC_DATA calling functin IDOC_INBOUND_SINGLE.
    At this time i m getting error like that header segement is missing
    Please help me to solve this issue. Any one worked on similar type of issue please help me.

    Cannot see your program of course but check that you populated the header segements.
    What does  IDOC_INBOUND_SINGLE expect, does it expect a particular Idoc type? in that case you gotta build that first from your file.
    Is IDOC_DATA all that this function requires, what are the other input parameters?
    regards

  • Multiple G/Ls for account assigned Purchase orders

    Hi all,
    We are having a service order dependent PO wherein the account assignment category is service order and is automatically generated..
    Now when we are going GR(MIGO), system is posting to only one G/L which is linked to the service order. I have created one more condition in the PO (handling charges) and it should go to a different G/L. How do I configure this. Please treat this as most urgent.
    Whatever is configured in automatic posting (OBYC, OMWB ) etc. is not applicable for  account assigned PO. What to do?
    Thanx in advance,
    Vijaya

    Hello
    Check SPRO>Materials Management>External Service Management>Valuation &Account Determination>Choose Account determination Wizard and check all settings for your company code, plant and purchase organization.
    Reg
    *assign points if useful

  • Multiple lines of Condition types in Purchase order header

    Dear Consultants,
            We assigned certain condition types in the access sequences. This access sequence has 4 condition tables. User can maintain condition records at any level; viz SiteArticle OR Deli.CountryHTS code OR Deli.CountryHTS codeShippingCountry OR Pur.OrgVendorMC level
    However, once these condition types are determined at item level in PO, the total of condition amount at header level is not summed up in one line, and is displayed in multiple lines i.e as many conditions for an item as many lines.
    The client wants all the amounts for a condition type for an item to be displayed in single line. Could someone please suggest some solution???
    R's
    Manoj.

    CLOSED

  • Issue on Purchase order creation with Delivery schedule line items per PR

    Hi
    Note->Developed inbound FM to create PO's in SAP through IDOC.
    We are creating purchase orders from vendor which is coming from Inbound IDOC. Here we are using as BAPI_PO_CREATE1
    to create PO's. before that i am passing all the inbound data of the IDOC and getting some Purchase requisions for plant and material wise from EBAN table where we have open PR's and split the inbound line item qauntity as per Open quantity in Purchase requisions. Problem here we are modifing schdule line data as per purcahse requisitions and post the all the shehduline data into above functional module, we are using creation date as delivery date in the scheduling line for each line.
    Set1- If we have multiple requisions for each material and plant in the inbound IDOC item , while creating PO using  above BAPI
    creating PO with delivery date is taken from Purchase requesion date, this only will happend in the first schudle line item always, second line scheulde has taken correctly from creation data as delivery date.
    Set2-If we have one requisition for each line item, it will creating correctly for schulding line item as with correct delivery , whcih is not taken from requstion delivery date.
    Set 2 is working correctly, but Set1  has problem with delivery date  in the scheduling lines particulary for first schduling line item.
    Please help me on this issue.
    Advance wishes

    Hi Satish
    Thanks for the reply.
    I checked the parameters and it is creating 2 PO when the Indicator Ordering address is set.If I uncheck this Indicator then only one PO is created.
    But now my question is from where is the Ordering address taken because for both line items Vendor is same and ordering address is also same.
    Then why the system is creating new PO?
    Regards
    Vaibhav Mahajan

  • 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

  • Sending Purchase Order to XI(IDOC to File Scenario)

    Hi,
    I have imported IDoc type ORDERS05 for Message Type ORDERS in XI 7.0 & i have created the IDOC to File Scenario for Purchase Order & activated all the objects.
    Now in SAP ECC 6.0, i have created a purchase order using ME21N. No idocs created. Let me know the steps to send that PO. Which T.Code & what entries to follow...
    Regards,
    Balaji

    Hi,
    You would need to configure the data distribution model, activate change pointers, create your partner profiles and rfc connections.
    Then do your XI Config.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    http://help.sap.com/bp_bpmv130/html/K16_EN_US.htm
    http://help.sap.com/bp_bpmv130/Documentation/K16_Config_PurchaseOrderRequest_SellerPCK_EN_US.doc
    Check these replies too...
    Create PO in R/3 using XI
    Regarding PO in XI
    A basic guide..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    Thanks,
    Vijaya.

  • Purchase Order line item tax details not in IDoc ORDERS02

    We are on ECC6 and using IDoc ODERS02, when viewing the purchase order in me23n, taxes are visible on the line item under the invoice tab. When we view the same purchase order via the IDoc that was created, the line item taxes are not being displayed in segments E1EDP04 and E1EDP05.
    Is there some configuration we need to do to get the taxes info into the IDoc?

    Hi Bill,
    I think only price elements which have been set to "to be printed" in Customizing will be included into the Idoc.
    Just a remark: ORDERS02 is an "historical" Idoc; ORDERS05 is the appropriate one for ECC6 (but this has nothing to do with your problem).
    Regards,
    John.

  • What is inbound XML message type and idoc type in Purchase Order response

    Hi ,
    We are on SRM 7 ECS , support pack SAPKIBKV08.
    We have a process in which vendor will send a Purchase Order response  which will be
    converted to XML format by a middleware. This XML message will come to
    SRM and post a POR. I want to do the EDI mapping for this XML message,
    but there is no message type and idoc type in SRM for Purchase Order
    response. How do I map my message type in SRM to the vendor sent fields
    in middleware .
    Please advise
    Rgds
    Sumendra

    Hi,
    You can process with XML without IDoc.
    Vendor->  (XML) -> PI -> (XML) -> SRM.
    Please check PurchaseOrderConfirmation_In in namespace "http://sap.com/xi/SRM/Procurement/Global".
    http://esworkplace.sap.com
    Regards,
    Masa

  • Creating multiple idocs in ABAP mapping

    Hi,
    my scenario is source message (JDBC) to target message (idoc).
    There can be multiple idocs (unbounded).
    I am using ABAP mapping to create the Idoc XML structure. For this i use function module IDX_IDOC_TO_XML.
    The idoc is getting created but the problem occurs in case of generating multiple idoc instances.
    I changed the idoc occurence to unbounded & used the new idoc external definition in the interface mapping.
    I also call the IDX_IDOC_TO_XML & create the output stream factory in a loop (per idoc ).
    However only 1 idoc gets generated every time.
    Can someone suggest how to create the multiple idocs.
    Regards
    Prasenjit

    Hi Prasenjit,
    In order to generate multiple idoc first of all you need to change the target structure with multiple occurence...that you have already done...
    Now while generating XML in abap mapping you have to make sure you have element idoc(with its content) repeating for your "N" number of idocs...
    can you please copy paste your final xml generated...
    Nilesh

  • How to extract Idocs Numbers from Bulk Purchase orders

    Hi Gurus,
    I have around 1400 purchase orders.I need to get their Idoc numbers to reprocess in order to generate Sales orders.Is their any process to extract  the Idoc numbers of all the purchase orders at a time. Pls suggest on the same.
    Thanks in Advance
    Ganesh Kumar

    Use t.code WE02.
    Enter IDOC basic type and date ranges. This will pull the IDOC numbers.
    Regards

  • Generate multiple idoc's from the single application doc(Sales order)

    Hi All,
    Iam working on a requirement where i have to generate multiple idoc's from a single sales order based on sales org, division on header data and plant at item level, if somebody please let me know how to proceed with this requirement.
    Thanks
    Kashif

    Hi,
    You can create a Z-program and call Function Module  <b>MASTER_IDOC_DISTRIBUTE</b>.
    You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
    You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
    Then u can keep the materials of only that plant for which u want to pass on the information.
    Thanks,
    Utsah Garg.

  • Need to specify different price on Goods Receipt than on Purchase Order

    Hi!
    My application creates Goods Receipt (object of type SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes). This Goods Receipt is based on an existing Purchase Order. Creation itself (including the reference to the Purchase Order) works well.
    The problem is that using DI API, price in a document line is always set (automatically) to the price specified on the Purchase Order line. I'm not able to set the unit price to any other value. When I assign my unit price, document is added successfully, but my unit price is ignored. Unit price specified on the appropriate line on Purchase Order is used instead.
    Thanks for help!
    Jan

    Hi! I'm using SBO 8.81. I put my C# code below. The %xxx% strings are just symbols - for simplification.
    SAPbobsCOM.Documents oPurchaseDeliveryNotes = (SAPbobsCOM.Documents)SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
    oPurchaseDeliveryNotes.CardCode = %CARDCODE%;
    oPurchaseDeliveryNotes.DocDate = %DOCDATE%;
    oPurchaseDeliveryNotes.TaxDate = %TAXDATE%;
    bool first = true;
    while(...) {
        if(!first) oPurchaseDeliveryNotes.Lines.Add();
        oPurchaseDeliveryNotes.Lines.BaseType = (int)SAPbobsCOM.BoAPARDocumentTypes.bodt_PurchaseOrder;
        oPurchaseDeliveryNotes.Lines.BaseEntry = %DOCENTRY_OF_PO%;
        oPurchaseDeliveryNotes.Lines.BaseLine = %LINENUM_OF_PO%;
        oPurchaseDeliveryNotes.Lines.ItemCode = %ITEMCODE%;
        oPurchaseDeliveryNotes.Lines.Quantity = %QUANTITY%;
        oPurchaseDeliveryNotes.Lines.Price = %UNIT_PRICE_DIFFERENT_FROM_PO%;
        oPurchaseDeliveryNotes.Lines.Currency = %CURRENCY%;
        first = false;
    oPurchaseDeliveryNotes.Add();
    Althought the unit price on the Purchase Order is for example 7 and in my code I assign the Price property for example 9, then when the document is successfully added, I see that on newly created document the unit price is still 7 (same as on PO). Value 9 is ignored without any errors or warnings.
    When I remove the code which connects this Goods Reception with PO (i.e. assignment to BaseType, BaseEntry and BaseLine properties), created document is correct. However when there is a connection to PO, I'm unable to set different unit price.
    Do you or anybody else have explanation for this? Or do you have some piece of working code you can provide?
    THANKS!

Maybe you are looking for

  • How in Flash CS4 to change text words of .fla file from a website template?

    I have a website template in which I am trying to change the header text words and menu text words to customize the template. How do I do this in Flash CS4? Thanks!

  • Is it fair that apple make your device out of date

    It really is not right that apple can make your device outdated when there is nothing wrong with it. I have 2 ipads ones, 1 ipad two,  1 iphone four, 1 iphone two, and 1 ipod touch two. The Ipod touch and the iphone 2 work fine but are becoming more

  • Dell 2405FPW 24" display problem. Please help

    Can anyone help me with this, I can't seem to get an answer from either Dell tech support nor from Apple. I just received my dell 2405FPW 24" display. Connected it to DVI port 1 on my powermac G5. It started to work just fine for the first hour or so

  • 4.7E Vs 5.0

    hi all 1. wts NEW GL 2. Difference in bet ween 4.7e & 5.0 3. wt are the additional fields are there in new gl coparing to old gl

  • BPartner Functions in CRM

    Hi, I am in CRM- BI implementation. In business content cube we have a dimension bpartner, in that we have few Bpartner functions(info objects) like contact person emp responsible prospect now reqt is to find the other partner functions like sales pe