<?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: try and catch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605746#M597161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on whether your report has the flag "Unicode-enabled" set or not you will get a different result of the syntax check (SLIN) for statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_struc-t_table = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Unicode-enabled = 'X': =&amp;gt; syntax error if the structures do not match exactly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Unicode-enabled = ' ': =&amp;gt; perhaps no syntax error but system-exceptions due to type conversion errors possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the latter case you would use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS &amp;lt;type conversion error&amp;gt; = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; s_struc-t_table = itab1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, please note that the CATCH SYSTEM-EXCEPTIONS is different from class-based exception handling because this statement does not return any error object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 11:08:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T11:08:28Z</dc:date>
    <item>
      <title>try and catch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605744#M597159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , i am getting a value from file . i have to check whether it is pacri decimal value or not . for this which exception should i raise in the try and catch block. can any one give me the code???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 10:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605744#M597159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T10:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: try and catch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605745#M597160</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;Try using  CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you can create an exception class specific to your need in SE24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605745#M597160</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-25T11:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: try and catch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605746#M597161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on whether your report has the flag "Unicode-enabled" set or not you will get a different result of the syntax check (SLIN) for statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_struc-t_table = itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Unicode-enabled = 'X': =&amp;gt; syntax error if the structures do not match exactly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Unicode-enabled = ' ': =&amp;gt; perhaps no syntax error but system-exceptions due to type conversion errors possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the latter case you would use the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS &amp;lt;type conversion error&amp;gt; = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; s_struc-t_table = itab1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, please note that the CATCH SYSTEM-EXCEPTIONS is different from class-based exception handling because this statement does not return any error object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-catch/m-p/2605746#M597161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:08:28Z</dc:date>
    </item>
  </channel>
</rss>

