<?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: exceptions in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600153#M269496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are the errors that functon module developer have handled in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors/ Exceptions can raise due to some conditions in function module, now what you can do is define your own exceptions. and when ever that perticulat error condition is faced simply raise the appropriate error/exception condition. &lt;/P&gt;&lt;P&gt;This is a very useful method to distinguish between different type of errors generater during function calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 10:06:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T10:06:47Z</dc:date>
    <item>
      <title>exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600147#M269490</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;What are the exceptions in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600147#M269490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600148#M269491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mallela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are the errors that can be generated when the function module is processed. they can be handled by checking the sy-subrc values after calling the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600148#M269491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600149#M269492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you get an error, instead of making the program going to dump,we will catch them and put them as EXCEPTIONS.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;if you get any unaccepted conditions,you will through them as Exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check any standard function modules&lt;/P&gt;&lt;P&gt;like,&lt;/P&gt;&lt;P&gt; GUI_DOWNLOAD,or GUI_UPLOAD to know how to define the exceptions and how to call them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600149#M269492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600150#M269493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exceptions in function modules or classes denote those situations where the function module or class has failed to perform the task for which it is intended.In such cases we fill the exception tab in function or class with all possible exception cases that can be anticipated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These exceptions can be caught in the program by using the system variable sy-subrc.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;*success.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;*exception.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600150#M269493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600151#M269494</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;Exceptions are used to return the error which happens in function module to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't show error messages directly from Function modules. So when there are some error occurs in function module it raises the desired exception. and this exception number is passed back to calling program. in this way calling program can trace out the error happens in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600151#M269494</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-09-19T10:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600152#M269495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exceptions are un foreseen situations in the flow of the Function module execution. &lt;/P&gt;&lt;P&gt;YOu cannot raise error messages in a function module but the calling program should know that something unexpected has happened.&lt;/P&gt;&lt;P&gt; In such situations, exceptions are raised.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;raise exception no_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These exceptions can be caught after the function module call using the sy-subrc value.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600152#M269495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600153#M269496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are the errors that functon module developer have handled in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors/ Exceptions can raise due to some conditions in function module, now what you can do is define your own exceptions. and when ever that perticulat error condition is faced simply raise the appropriate error/exception condition. &lt;/P&gt;&lt;P&gt;This is a very useful method to distinguish between different type of errors generater during function calls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600153#M269496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: exceptions in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600154#M269497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Exceptions in FM are used to handle errors in &lt;/P&gt;&lt;P&gt;   program like divide error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 10:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exceptions-in-function-module/m-p/1600154#M269497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T10:13:16Z</dc:date>
    </item>
  </channel>
</rss>

