Component item duplicated in Posting Purchase Order (BOM Template) from XML

Hi,
I have a SDK program that posts draft document using XML.  I have a problem in posting a Purchase Order using a bom template from XML, it duplicates the component items of the document. Here is an example of the transaction.
Draft Document to be posted----
Card Code - PM0013
Status - Draft
ItemCode         | Quantity           | UOM          | Warehouse         | Profit Center        | Price     
PMBX13            1                        set               DHO                      KAP                        
PMBX13-B        1                        piece            DHO                      KAP                      USD 0.8000
PMBX13-C        1                        piece            DHO                      KAP                     
PMBX13-P         1                        piece            DHO                       KAP
Draft Document to be posted----
Posted Document----
Card Code - PM0013
Status - Open
ItemCode         | Quantity           | UOM          | Warehouse         | Profit Center        | Price     
PMBX13            1                        set               DHO                      KAP                        
PMBX13-B        1                                            DHO                      KAP                      
PMBX13-C        1                                            DHO                      KAP                     
PMBX13-P        1                                            DHO                       KAP
PMBX13-B        1                        piece            DHO                      KAP                      USD 0.8000
PMBX13-C        1                        piece            DHO                      KAP                     
PMBX13-P        1                        piece            DHO                       KAP
Posted Document----
Thanks!

Hi Cecille,
When adding template BOMs to a marketing document via the DI API, you only need to add the BOM header item and not the components. When the DI API adds the document it will copy the components from the BOM definition. This is why your components are doubling up. If you want to be able to edit the components then you'll need to add the PO using the DI API (with just the BOM header in your XML) and then reload it in to a PO object. You'll then be able to loop through the component lines and edit quantities etc.
Kind Regards,
Owen

Similar Messages

  • Sales Order - Using Item Category 'TAB' - Individual Purchase Order

    All,
    I am configuring for the first time utilizing Sales Document Item category "TAB" - Individual Purchase Order.  I have a few questions:
    Is there a best practice configuration guide specific for this process?  I have found the 'third party' document/best practice, but nothing so far  on "individual purchase order from sales order'. 
    Is there a way to default Purchase Order Type "UB" stock transfer from the Purchase Requisition NB?  I thought this could be done based on the schedule line "CB" configuration, changing the 'item category' to 7 stock transfer, then this would carry into the mapping for purchase requisition type NB/item category stock transfer to purchase order type UB/item category stock transfer.  However, when I set '7' on the schedule line CB, I then receive a hard error when creating my purchase req to set the supplying plant.  I have more than one supplying plant, so I'm not sure if setting the '7' is the right setting for this process.  From what I've been able to find for documentation, the item category of the schedule line should be set to '0' standard.
    When I perform the post Goods Issue 601 of Special Stock "E" - to the customer (once the stock has been received into the right plant), the system is not creating an Accounting/FI Document to relieve the inventory and charge cost of goods sold.  I have reviewed automatic account assignment entries and these appear correct for 601 E.  Are there special settings for special stock "E" that I need to consider. 
    If you cannot answer all of these questions, but can answer one of them, I am most interested in teh last question above. 
    Regards,
    Sandra Miner

    Hi Reazuddin,
    What I don't understand is why:
    if I don't create PO --> I can create Outobund Delivery in Individual Purchase Order but if I create PO (not MIGO) I cannot create OBD in IPO.  (Note: in both cases I agree PGI is not possible)
    The flowchart is: Sale Order (IPO) --> Purchase Requisition --> Purchase Order (PO) --> MIGO (inbound delivery) --> MIRO (Vendor invoice verification) --> Outbound delivery ( delivery [OBD] + picking + posting[PGI]) --> Sales Invoice
    As per your comments:
    System will not stop you to create delivery, though you customize delivery item cat: as Check min qtty "0" - error message. because system checks for PGI qtty, but not the delivery qtty.
    But then in the case I create Sale order (IPO) + PO (without MIGO) --> the system should not stop me executing Outbound Delivery. It should stop me only if I execute Posting goods issue. But actually in this case, the system is stopping me at outbound delivery.
    I agree with Posting Goods Issue behaviour. It is logical in the following cases:
    Only Sale order (IPO) created --> PGI is not possible
    Sale Order (IPO) created + PO created --> PGI is not possible
    Sale Order (IPO) created + PO created + MIGO executed (inbound) --> PGI is possible.
    Thank you very much for your feedback.
    Regards,
    Alberto Ramos.

  • Sales order items refers to different purchase order items

    Hello SAP Experts,
    I have a requirement where sales order items are referring to different purchase order items. For eg. Item 1 from SO exist in PO no. 11 where as item 2 from SO exist in PO 12. Transaction MIRO allows to post items belonging to different purchase orders, but we have to do invoice verification using IDOCs. In EDI process, it is taking PO number from the SO header and not from the SO items.
    Can anyone suggest how to get PO number from the SO item and not from the SO header.
    Thanks.

    Not possible to create sales order with reference to PO.
    but if to capture cost, you can consider adding cost to customer's invoice.
    e.g.
    SO -> PO -Inb/IR -> GR -> OB -> Inv(Add here)
    to add in that invoice, its either manual or through automatic condition.

  • Posting Purchase Orders (IDOC  Adapter) according to Vendor using BPM's

    Hi,
    My requirement is to post purchase orders into SAP r/3 according to vendor wise using IDOC adapter using BPM's.
    Input is a FLAT File which contains all the Purchase order items/records for various vendors.
    We need to process these items/records according to vendor and post it into SAP r/3 using IDOC Adapter within 8hrs processing time(Time Bound).
    What i mean is: the process should collect all respective vendor related items/records from the flat file and post respective purchase orders in SAP. That means if  5 items out of 20 are from one vendor,  we shud create a PO in SAP with 5 items for that vendor and likewise for the rest of the items.
    Please explain the procedure and detail Mapping in step by step procedure... how to send 'n' items for a PO.
    Regards,
    Ravi

    for idoc configuration refer 
    https://wiki.sdn.sap.com/wiki/display/XI/SAP+R3+%28Idocs%29+To+XI+--+Steps+Summarized
    Source WIKI. As far as BPM is concerned, set the correlation based on vendor number. this will ensure u collect the message according to vendor number.
    there are two option set for ur for posting the PO WRT vendor number:
    1. using BAPI
    2. using idocs
    The mapping for both the methods are straight forward except care need to be taken for mapping the data segment esp WRT the vendor number.

  • Add field to item position overview of Purchase Order

    Dear SRM gurus,
    I'm working on a change request of a customer.
    They want to add a field to the item overview position of Purchase Orders.
    They are using SRM 4.0 in Extended Classic Scenario.
    When displaying the list of Purchase Orders only the headers are shown. When clicking on a header the item positions are shown below the header. In this item overview the customer wants a field to be added.
    The field to be added is the GL Account. The customer wants this field to be visible before opening the item of the Purchase Order.
    We already know which screen should be changed to display the field.
    The screen is SAPLBBP_PO_UI_ITS and screen number 4000.
    Is it possible to add fields to this screen?
    If it is possible, how can this be done?
    Thank you in advance for your support,
    Best regards,
    Jean-Pierre

    Is there a solution yet?
    At my company they also want  to add a column to block Items in Shopping Cart.
    The structures mentioned in the note are all in the item details but not in the overview.
    regards,
    Wim

  • Add restriction while create item by "Old Purchase Orders and Templates"

    We are consider to add restriction while create shopping cart item by "Old Purchase Orders and Templates".  After implement such restriction, create item by copying old shopping cart item is not allow for particular matereial group number.
    Is there any BADI can be used in our case?  If there is no, could modify HTML template the only solution?
    Regards,
    Donald

    Hi,
    If the restriction is for certain group of people,then you  have 2 options:
    1.Make the link invisible for those group of people by implementing the BADI BBP_SC_MODIFY_UI.In the BADI,first check the user attributes like particular role and based on that make the link invisible.
    2. Assign certain role to the  group of users who should not see the link "Old Purchase order and templates".You can hide this link in the MENU by removing this from the lits of trasctions in that particular role.In PFCG,go in that role and then under MENU tab,remove the entry for "OLD PURCHASE ORDER AND TEMPLATES".
    BR,
    Disha.
    Do reward points for useful answers.

  • Error when posting Purchase Orders

    Hello,
    Client gets the followin error for a particular item when doing purchase order : -
    No matching records found 'withholding tax'  (OWHT)
    The error does not appear when purchase order is done from the server directly, but appears on SAP clients.
    What could be causing this error ?

    hello Martin,
    is this error occur in only one particular BP or it occurs in all BP?
    if this error only occurs in one BP
    1. goto the BP master data - Accounting Tab - Tax sub-tab
    2. Check the tick box "Subject to withholding tax"
    3. WT Code allowed - clikc the button in the right side "This will open WT Code allowed window" set default one of the existing WT code available.
    4. Update BP Master Data.
    hope this helps...
    Fidel

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Error in posting purchase order delivery

    Hi
    I got an error while posting purchase order delivery through Tcode- MIGO
    This is the Error Message:
    Posting only possible in 2009/04 and 2009/03 in company code XXXX
    I checked everything Fiscal year variant,Posting period variant,etc.
    And in Tcode- OMSY.
    Let me know as early as possible how to solve this issue.
    Thanks and Regards,
    Deepthi.

    Hi Deepthi,
    You need to understand that posting periods 3 and 4 does not necessarily mean march and april in SAP.
    Check your fiscal year variant for the months which correspond to periods 3 and 4.  Then you will be able to solve your problem by yourself.
    Open and close periods in FI -  OB52
    Close periods and open new periods in MM Side - MMPV
    Hope this helps you....
    Regards,
    Sreekanth....

  • Old Purchase orders and template - Price Information not taken into account

    Hi experts,
    In MDM catalog, I have a product with 'Price Information' and with 'Contract price'. I create a shopping cart with the 'Price Information'.
    Then, I create another shopping cart using the anterior througth the functionality 'Old Purchase orders and template'.
    The price taken into account is the 'Contract Price'
    Is this the standard procedure?
    Thanks in advance,
    R Silva

    as far as i know the price preference is in this order
    1. Contract price
    2. Purchase Info record
    3. list price
    so in that case - this is standard procedure
    you can confirm - by doing the same process for an item that  has ONLY price information (list price) and see if that price is copied from old to new SC
    thanks
    -Adrivit

  • Creat SC from Old Purchase Orders and Templates - Price not copied

    Hi Experts,
    When Creating SC usinfg  Old Purchase Orders and Templates interface ,
    All details are copied from Old SC to the New one , except the unit price of the item (It is created with price O )
    Please advise where we can set to copy the price also.
    Best Regards,
    Moshe

    15.02.2010 - 14:10:05 CET - Reply by SAP     
    Dear Moshe,
    Thank you for contacting SAP Active Global Support.
    I have logged on to the system and have checked the behaviour with the
    SC: 1000007814. The item in this SC is an catalog item, that means it
    has an catalog price too, which is 0 in this case.
    If you are using the copy function, the system validate the item, and
    set the original values (in this case the price) back to the standard.
    This is the standard behaviour of the system.
    Please use the catalog with price, as designed scenario.
    Kind Regards,
    Laszlo Tordai
    Support Consultant
    Active Global Support - Logistics

  • Purchase order Confirmation data from SRM to MM

    Hi,
    I am trying to send Purchase order Confirmation data from SRM to MM via PI. In SRM portal i am able to see that the data has been send successfully. But i am not able to receive any data in PI nor iam able to any messages going from  SRM in SXMB_MONI.
    Please help me.
    Thanks & Regards
    Kasturika Phukan

    Hi,
      In SRM check in sxmb_moni is there any queue is blocked.
      If not then,
      Check your proxy settings.Select Go To and check connection Test.
      Go to sm59 and check H type RFC destination is maintained.
      Go to sxmb_adm check the Global setting value,
      Application system,dest://RFC destination is maintained.
      In XI,
      Go to SLD.
      Check Technical system (client with logical system) maintained.
      Check Business System maintained with role of application system,Related integration engine
      maintained.
    Regards,
    Prakasu.M

  • Interfering in "Old Purchase order and Templates"

    Hi Experts,
    We use Extended-Classic scenario.
    We use ECC contracts and transfer the contracts details to the SRM-MDM catalog.
    When the user creates SC the contract details come from the SRM-MDM
    catalog as the source of supply correctly.
    But when the user copy the SC, using "Old Purchase order and Templates", the source of supply (contract details) does not being copied from the old SC. (this happends because we use Extended scenario and we use backend contracts).
    Is there any way we can interfere in "Old Purchase order and Templates" and force the contract details to be copied from the old SC?
    Thanks in Advance,
    Keren

    Hi,
    Thanks for your answer.
    Yes, the old SC was created from catalog but we need the Source of supply (contract number) to be copied to the new SC.
    Thanks,
    Keren

  • Old Purchase Orders and Templates

    Hello,
    I would like to deactivate and/or remove the u201COld Purchase Orders and Templatesu201D from the shopping transaction in SRM.
    How can this be done?
    We are currently running SRM 5.5
    Best Regards

    Hi
    You can achieve it by this BADI BBP_SC_MODIFY_UI -Method SC_MODIFY_SCREEN
    regards
    muthu

Maybe you are looking for

  • Report for material moved from blocked stock to unrestricted stock

    Hi, Is there a standard report in WM showing list and qty of materials moved from blocked stock to unrestricted stock. Regards, Pratap

  • A suggestion for pacman

    Right now if you want to use "makepkg" effectively, you have to install and setup "sudo" just to be able to get the dependencies for a build (makepkg -s). My suggestion is for pacman to have a new parameter, like "pacman -P" for example, that would r

  • Webdynpro Callableobject - RFC model

    Hi,   I am creating a webdynpro component, which will be available as callable object in GP.this involved interface and component controllers.   In our scenario we use a rfc model.But, we are stuck up in the java conding for Interface controller and

  • Install of the OCS portlets on Weblogic Portal 8.1

    is anybody who has installed the whole stack of Collaboration Suite on a Weblogic Portal v8.1? if yes, had you encounter any problems? do you have some tips ? or documentations ? do you keep the WebCache in front of the WLS ? do you keep the HTTP Ser

  • Document's transparency blend space?  Destination color space?

    I need some hand-holding please. I just exported to pdf, and got this message, and would be happy to fix it if I had a clue what to do: The document's transparency blend space doesn't match the destination color space specified in the Export Adobe PD