<?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: Passing exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401189#M534923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The exception of the FM is returned to the calling program via the SY-SUBRC field &lt;/P&gt;&lt;P&gt;You can evaluate the sme to know which exception has been triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value of sy-subrc is set to the exception number &lt;/P&gt;&lt;P&gt;if the first excpetion defined in the Excep tab is raised the subrc value will be 1&lt;/P&gt;&lt;P&gt;if the 2nd excpetion defined in the Excep tab is raised the subrc value will be 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can come to know which exception was raised inside the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 10:33:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-06T10:33:06Z</dc:date>
    <item>
      <title>Passing exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401187#M534921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to pass the exception of a function module so that it can be raised in a different program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 10:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401187#M534921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T10:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401188#M534922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Define different exceptions based on the value of SY-SUBRC field in the fun module&lt;/P&gt;&lt;P&gt;and when that fun module is used in the program based on the value of the Sy-SUBRC you just raise the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Sy-subrc.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;raise FILE_NOT_FOUND.&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;Raise UNABLE_TO_OPEN_FILE.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 10:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401188#M534922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T10:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401189#M534923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The exception of the FM is returned to the calling program via the SY-SUBRC field &lt;/P&gt;&lt;P&gt;You can evaluate the sme to know which exception has been triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value of sy-subrc is set to the exception number &lt;/P&gt;&lt;P&gt;if the first excpetion defined in the Excep tab is raised the subrc value will be 1&lt;/P&gt;&lt;P&gt;if the 2nd excpetion defined in the Excep tab is raised the subrc value will be 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can come to know which exception was raised inside the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 10:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401189#M534923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T10:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401190#M534924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The actual scenario is, I am calling perform statement in the include of a function module.The form is written in a different program(subroutine pool).I have to raise the exeption of the function module inside this program.How to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 12:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-exception/m-p/2401190#M534924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T12:29:40Z</dc:date>
    </item>
  </channel>
</rss>

