<?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  sy-subrc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584741#M263605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   That is what I doing checking for some exepection catching into Return table which is not happening even though the recording not posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I found the reason for Return table not being filled up due to sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Why it is happening is biggg!!! wonder for me &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2006 15:06:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-17T15:06:07Z</dc:date>
    <item>
      <title>BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584735#M263599</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;    I am working with a BAPI. While i am testing my BAPI I found that BAPI is failing to put the data in SAP. But still i am seeing that sy-subrc returned by BAPI is "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Why is it happening?  How to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;SDN FAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584735#M263599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T14:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584736#M263600</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;  Bapi will not set the sy-subrc if there is any exception or successful..Instead you have to look at the parameter RETURN..Which will have error messages if there is any..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of how to check the error messages..&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;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Not successful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Successfull.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584736#M263600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584737#M263601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to give Commit work after sy-subrc check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584737#M263601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584738#M263602</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; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' after the BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the BAPI table I_RETURN :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT i_return INTO wa_return WHERE type = c_e    AND&lt;/P&gt;&lt;P&gt;                                            id  &amp;lt;&amp;gt; c_mepo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        PERFORM populate_error_log USING c_fail&lt;/P&gt;&lt;P&gt;                                         p_input-column1&lt;/P&gt;&lt;P&gt;                                         ws_po&lt;/P&gt;&lt;P&gt;                                         wa_return-message space space.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584738#M263602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584739#M263603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you have committed your BAPI call either success or failure will be returned as following:&lt;/P&gt;&lt;P&gt;- Success: either no return message at all or 'S'(uccess) message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Failure: at least a single 'AEX' message (abort, error, X = dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584739#M263603</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-10-17T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584740#M263604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madhavi-   My requirement was not save the record but to know why it is happening&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584740#M263604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T15:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584741#M263605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   That is what I doing checking for some exepection catching into Return table which is not happening even though the recording not posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I found the reason for Return table not being filled up due to sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Why it is happening is biggg!!! wonder for me &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584741#M263605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  sy-subrc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584742#M263606</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;  If there is no row of type 'E' in the return internal table..WHich means it is successfully posted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After calling the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Call the function module 'BAPI_TRANSACTION_COMMIT' to commit the changes..Then check the database..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 15:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sy-subrc/m-p/1584742#M263606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T15:25:51Z</dc:date>
    </item>
  </channel>
</rss>

