<?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: how to do errorhandling in bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255125#M488159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use bapiret2 structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 12:09:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T12:09:12Z</dc:date>
    <item>
      <title>how to do errorhandling in bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255122#M488156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;errorhandling in bapi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255122#M488156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to do errorhandling in bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255123#M488157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After excuting BAPI, see the RETURN table, this will have all the successful and failiure details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255123#M488157</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-05-22T11:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to do errorhandling in bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255124#M488158</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;Check the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Call the BAPI to Create the Return Order&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            return_header_in    = gs_return_header_in&lt;/P&gt;&lt;P&gt;            return_header_inx   = gs_return_header_inx&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            salesdocument       = gv_salesdocument&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            return              = gt_return&lt;/P&gt;&lt;P&gt;            return_items_in     = gt_return_items_in&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Commit Work&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM error .&lt;/P&gt;&lt;P&gt;  CONSTANTS: lc_e TYPE c VALUE 'E'.&lt;/P&gt;&lt;P&gt;  LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  CLEAR: gv_errflag, gs_error1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To display BAPI return messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT gt_return INTO gs_return.&lt;/P&gt;&lt;P&gt;    gs_error1-type = gs_return-type.&lt;/P&gt;&lt;P&gt;    gs_error1-message = gs_return-message.&lt;/P&gt;&lt;P&gt;    APPEND gs_error1 TO gt_error1.&lt;/P&gt;&lt;P&gt;    IF gs_error1-type = lc_e.&lt;/P&gt;&lt;P&gt;      gv_errflag = gc_x.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR gs_error1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Commit Work&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM commit.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " error&lt;/P&gt;&lt;P&gt;FORM commit .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no errors Commit work else Roll Back&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF gv_errflag IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " commit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 11:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255124#M488158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T11:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to do errorhandling in bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255125#M488159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use bapiret2 structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-do-errorhandling-in-bapi/m-p/2255125#M488159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T12:09:12Z</dc:date>
    </item>
  </channel>
</rss>

