<?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_SALESORDER_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501435#M842222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION ' BAPI_SALESORDER_CHANGE&amp;#146;

&amp;#133;&amp;#133;&amp;#133;
&amp;#133;&amp;#133;..

IF NOT i_return[] IS INITIAL.
    LOOP AT i_return INTO wa_return.
         IF wa_return-type   = 'E'.
*              Collect the error message in a internal table suppose t_error
         ENDIF.
    ENDLOOP.
ENDIF.

Loop table t_error and Display the error messages by concatenating it with the sales order no.  

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 06:00:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T06:00:07Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501434#M842221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using bapi BAPI_SALESORDER_CHANGE, it is working fine , suppose if bapi fails i want to show the return parameter internal table information to user as information message.&lt;/P&gt;&lt;P&gt;can any one tell me how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its urgent please,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DVNS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 05:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501434#M842221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T05:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501435#M842222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION ' BAPI_SALESORDER_CHANGE&amp;#146;

&amp;#133;&amp;#133;&amp;#133;
&amp;#133;&amp;#133;..

IF NOT i_return[] IS INITIAL.
    LOOP AT i_return INTO wa_return.
         IF wa_return-type   = 'E'.
*              Collect the error message in a internal table suppose t_error
         ENDIF.
    ENDLOOP.
ENDIF.

Loop table t_error and Display the error messages by concatenating it with the sales order no.  

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 06:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501435#M842222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T06:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501436#M842223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;Internal table of type BAPIRET2&lt;/STRONG&gt; to collect all the error message.&lt;/P&gt;&lt;P&gt;And then you can also check for any error in the error message, by putting a check on field TYPE of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;ITAB-type = 'E'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error Message.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Commit using 'BAPI_TRANSACTION_COMMIT'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward points, if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 06:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-change/m-p/3501436#M842223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T06:00:40Z</dc:date>
    </item>
  </channel>
</rss>

