<?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 message in ABAP class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874928#M1687529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give class name which u r using and how u r using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;if you want to capture error message which is raised in bapi then create z class and modify it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2012 06:33:24 GMT</pubDate>
    <dc:creator>bharat_rathod2</dc:creator>
    <dc:date>2012-08-05T06:33:24Z</dc:date>
    <item>
      <title>Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874923#M1687524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; standard class, in this class there is a bapi used . In this bapi a error messaged is raised.&lt;/P&gt;&lt;P&gt;How can i capture this error message in my z FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there is no expection in the standard class and error message is raised by the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZFM ---&amp;gt; standard class ----&amp;gt; Bapi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 05:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874923#M1687524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-02T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874924#M1687525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please call the ZFM within TRY...CATCH..ENDTRY block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CATCH, you can catch exception into a reference variable (for example CX_ROOT) and get the message from GET_TEXT method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 13:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874924#M1687525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-02T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874925#M1687526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to OP, standard class does not raise any exception, so TRY...CATCH... has nothing to catch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874925#M1687526</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-08-02T19:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874926#M1687527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the standard class doesn't expose the error to you, there's nothing you can do about it. Check to see if the class has any error parameters, or sets any attributes, with the error data. That's the point of classes, give the calling program (in your case, ZFM) access to what it needs, and hide from it everything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post which class you are using, and how you're calling it, someone with experience with that class may be able to be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874926#M1687527</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-08-02T19:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874927#M1687528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex,&lt;/P&gt;&lt;P&gt;thanks for ur help. &lt;/P&gt;&lt;P&gt;FM : /SAPRCX/SHPPLC&lt;/P&gt;&lt;P&gt;Class :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;METHOD&lt;/SPAN&gt; g_shp_appl-&amp;gt;place_railcar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;I am calling the above fm in another z fm.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;amit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 19:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874927#M1687528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-03T19:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874928#M1687529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give class name which u r using and how u r using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;if you want to capture error message which is raised in bapi then create z class and modify it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 06:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874928#M1687529</guid>
      <dc:creator>bharat_rathod2</dc:creator>
      <dc:date>2012-08-05T06:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in ABAP class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874929#M1687530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't catch CX_ROOT. You should only catch exceptions you're expecting to have raised, and react to those accordingly. If you get an unexpected error and use CX_ROOT, it can be a pain to find the cause of the error - as those who use BW will know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-abap-class/m-p/8874929#M1687530</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-08-09T14:16:48Z</dc:date>
    </item>
  </channel>
</rss>

