<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570846#M1270784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 to enter a sales order. I need to enter item lines with a specific order. I've fill all the BAPI required parameters in order_items_in (material for matnr) and quantity in order_schedules_in. If i'm not wrong, fields itm_number in both structures are mandatory and I fill it respecting original order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem comes when I find a material list. I explain, if material B is a material list composed for B2, B3 i entered the following to the bapi:&lt;/P&gt;&lt;P&gt;itm_number    material&lt;/P&gt;&lt;P&gt;000010    A&lt;/P&gt;&lt;P&gt;000020    B&lt;/P&gt;&lt;P&gt;000030    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to generate a sales order like that:&lt;/P&gt;&lt;P&gt;000010  A&lt;/P&gt;&lt;P&gt;000020  B&lt;/P&gt;&lt;P&gt;000030  B2&lt;/P&gt;&lt;P&gt;000040  B3&lt;/P&gt;&lt;P&gt;000050  C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the order I create is like:&lt;/P&gt;&lt;P&gt;000010 A&lt;/P&gt;&lt;P&gt;000020 B&lt;/P&gt;&lt;P&gt;000030 C&lt;/P&gt;&lt;P&gt;000040 B2&lt;/P&gt;&lt;P&gt;000050 B3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that a solution is to check material list before itm_number assignment assigning like&lt;/P&gt;&lt;P&gt;000010    A&lt;/P&gt;&lt;P&gt;000020    B&lt;/P&gt;&lt;P&gt;000050    C&lt;/P&gt;&lt;P&gt;but I don't like this solution at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone face similiar problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some parameter at the BAPI to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Gimeno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 11:14:08 GMT</pubDate>
    <dc:creator>former_member220911</dc:creator>
    <dc:date>2009-05-21T11:14:08Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570846#M1270784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 to enter a sales order. I need to enter item lines with a specific order. I've fill all the BAPI required parameters in order_items_in (material for matnr) and quantity in order_schedules_in. If i'm not wrong, fields itm_number in both structures are mandatory and I fill it respecting original order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem comes when I find a material list. I explain, if material B is a material list composed for B2, B3 i entered the following to the bapi:&lt;/P&gt;&lt;P&gt;itm_number    material&lt;/P&gt;&lt;P&gt;000010    A&lt;/P&gt;&lt;P&gt;000020    B&lt;/P&gt;&lt;P&gt;000030    C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to generate a sales order like that:&lt;/P&gt;&lt;P&gt;000010  A&lt;/P&gt;&lt;P&gt;000020  B&lt;/P&gt;&lt;P&gt;000030  B2&lt;/P&gt;&lt;P&gt;000040  B3&lt;/P&gt;&lt;P&gt;000050  C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the order I create is like:&lt;/P&gt;&lt;P&gt;000010 A&lt;/P&gt;&lt;P&gt;000020 B&lt;/P&gt;&lt;P&gt;000030 C&lt;/P&gt;&lt;P&gt;000040 B2&lt;/P&gt;&lt;P&gt;000050 B3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that a solution is to check material list before itm_number assignment assigning like&lt;/P&gt;&lt;P&gt;000010    A&lt;/P&gt;&lt;P&gt;000020    B&lt;/P&gt;&lt;P&gt;000050    C&lt;/P&gt;&lt;P&gt;but I don't like this solution at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone face similiar problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some parameter at the BAPI to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Gimeno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570846#M1270784</guid>
      <dc:creator>former_member220911</dc:creator>
      <dc:date>2009-05-21T11:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570847#M1270785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;i was also facing the same requirment and the solution was possible as you mentioned by increasing the item number of the consecutive materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570847#M1270785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 with BOM Explosion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570848#M1270786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for you reply. After watching several notes from OSS I've finally found the solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just take a look at OSS note 522356. You can achieve your requirement by setting the IntNumberAssignment flag of the bapi to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 13:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-with-bom-explosion/m-p/5570848#M1270786</guid>
      <dc:creator>former_member220911</dc:creator>
      <dc:date>2009-05-21T13:09:29Z</dc:date>
    </item>
  </channel>
</rss>

