<?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 End Try. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393427#M1239597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any disadvantage in using TRY.. ENDTRY block.&lt;/P&gt;&lt;P&gt;But if you are expecting runtime erroe in your code then you should first try to fix the logic rather than using TRY..ENTRY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other cases for example sap standard FM or method call it is nice to keep it in TRY .. ENTRY...&lt;/P&gt;&lt;P&gt;Thats my opinion...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2009 14:12:57 GMT</pubDate>
    <dc:creator>Pawan_Kesari</dc:creator>
    <dc:date>2009-03-26T14:12:57Z</dc:date>
    <item>
      <title>Try and End Try.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393426#M1239596</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;Is there any disadvantage to use try and end try in the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a custom program. At starting of the program i have used TRY and at end of the program i have used catch and end try. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to avoid at any case short dumps in program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again inside the code at certain cases were the shot dump is expected i have used TRY and Catch, End try. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know is this good idea, to use try and End try in first and last of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code : &lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;Staring of the program&lt;/STRONG&gt;             TRY. &lt;/P&gt;&lt;P&gt;                         Select.... &lt;/P&gt;&lt;P&gt;                          Perofm..... &lt;/P&gt;&lt;P&gt;                            Write ,.... &lt;/P&gt;&lt;P&gt;                           Perofm..... &lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;End of the program&lt;/STRONG&gt;      CATCH  cx_root INTO l_oref. &lt;/P&gt;&lt;P&gt;                                          l_text = l_oref-&amp;gt;get_text( ). &lt;/P&gt;&lt;P&gt;                                          MESSAGE l_text TYPE 'E'. &lt;/P&gt;&lt;P&gt;                                         ENDTRY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Feroz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 14:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393426#M1239596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T14:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Try and End Try.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393427#M1239597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any disadvantage in using TRY.. ENDTRY block.&lt;/P&gt;&lt;P&gt;But if you are expecting runtime erroe in your code then you should first try to fix the logic rather than using TRY..ENTRY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other cases for example sap standard FM or method call it is nice to keep it in TRY .. ENTRY...&lt;/P&gt;&lt;P&gt;Thats my opinion...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 14:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393427#M1239597</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-03-26T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Try and End Try.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393428#M1239598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 14:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393428#M1239598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Try and End Try.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393429#M1239599</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 have developed an Input interface. For this interface i will get the data from the external system in text file format. If the text file contains any unexpected error data then program should not go to dump it should raise an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have added Try and EndTRY block for the whole program so i f any unusnally un expected cases this try block and avoid the short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : For all the expected cases i have did the required error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Feroz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 16:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-and-end-try/m-p/5393429#M1239599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T16:28:46Z</dc:date>
    </item>
  </channel>
</rss>

