<?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 Re: BAPI - Sales Order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173372#M997671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just made a quick test with an existing upload report where I am using 'BAPI_SALESDOCU_CREATEFROMDATA'. In case you pass in a material which doesn't exist, the BAPI errors out completely and no order is created at all. In your example you would not get the 9 valid items created but the whole order will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case we might get invalid ISBN numbers which we translate into materials before we call the BAPI. At this point I do a check to MARA to make sure that the material is valid. If not I am not even passing it to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example again, my check would find out that one of the materials is invalid and only pass the 9 valid items to the BAPI which will then successfully create the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2008 13:32:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-25T13:32:35Z</dc:date>
    <item>
      <title>BAPI - Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173370#M997669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simple question in regards to the sales order bapi.  If I have an external program call the bapi and it has 10 line items will the sales order be created if one of the line items is in valid.  For example, 10 line items are passed and line item 8 has an invalid material.  Will the order be created with 9 items or will the bapi call fail due to the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 23:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173370#M997669</guid>
      <dc:creator>former_member332696</dc:creator>
      <dc:date>2008-07-24T23:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173371#M997670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I think it will not create sales order. BAPI FM fails in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani Diwakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 00:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173371#M997670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T00:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - Sales Order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173372#M997671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just made a quick test with an existing upload report where I am using 'BAPI_SALESDOCU_CREATEFROMDATA'. In case you pass in a material which doesn't exist, the BAPI errors out completely and no order is created at all. In your example you would not get the 9 valid items created but the whole order will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case we might get invalid ISBN numbers which we translate into materials before we call the BAPI. At this point I do a check to MARA to make sure that the material is valid. If not I am not even passing it to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example again, my check would find out that one of the materials is invalid and only pass the 9 valid items to the BAPI which will then successfully create the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 13:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order/m-p/4173372#M997671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T13:32:35Z</dc:date>
    </item>
  </channel>
</rss>

