<?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: Error Eandling in Sales Order creation Using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549370#M249396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;     The Bapi function which you are using will have return variable or internal table which will have the sales order number if successfully created and errors if any ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the table or variable you can update the status of the flat file and display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 05:20:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T05:20:25Z</dc:date>
    <item>
      <title>Error Eandling in Sales Order creation Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549369#M249395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using bapi_salesorder_createfromdat2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having flat file like 1 header and 3 line items like&lt;/P&gt;&lt;P&gt;  &amp;lt;--&lt;DEL&gt;-header&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&amp;gt;    &amp;lt;&lt;DEL&gt;-item&lt;/DEL&gt;--&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  doc_num  doc_type........item  material&lt;/P&gt;&lt;P&gt;  1        TA              10    100-500&lt;/P&gt;&lt;P&gt;  1        TA              20    100-501&lt;/P&gt;&lt;P&gt;  1        TA              30    100-502&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  2        TA              10    100-500&lt;/P&gt;&lt;P&gt;  2        TA              20    100-502&lt;/P&gt;&lt;P&gt;  ..&lt;/P&gt;&lt;P&gt;  ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display only one message either creted or not created a sales document in a flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created and internal with structure flat file and one extra field for Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me out please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549369#M249395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error Eandling in Sales Order creation Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549370#M249396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;     The Bapi function which you are using will have return variable or internal table which will have the sales order number if successfully created and errors if any ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the table or variable you can update the status of the flat file and display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549370#M249396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error Eandling in Sales Order creation Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549371#M249397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the tables parameter is 'RETURN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;return = t_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_return with key type = 'E'.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;write: 'Sales order was not created'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write: 'Sales document created'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sharath kumar R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-eandling-in-sales-order-creation-using-bapi/m-p/1549371#M249397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:37:55Z</dc:date>
    </item>
  </channel>
</rss>

