<?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: Function Module Exception error as spool Request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489367#M227920</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;I tried as per your instructions, still i coudnt get the message in the spool ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest me some other way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sowmmya B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 05:06:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-23T05:06:44Z</dc:date>
    <item>
      <title>Function Module Exception error as spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489364#M227917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which i run a report in Background. I have used some Function modules in that, i need to capture the exception and display the error message in the Spool. &lt;/P&gt;&lt;P&gt;Kindly let me know the procedure to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sowmmya B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 04:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489364#M227917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T04:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Exception error as spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489365#M227918</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;&lt;/P&gt;&lt;P&gt;Inorder to display the message in spool, you have to only type a WRITE statement. eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_DEMO`&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            mandt        = sy-mandt&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NO_ROW       = 1&lt;/P&gt;&lt;P&gt;            ACCESS       = 2.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      IF Sy-subrc eq 1.&lt;/P&gt;&lt;P&gt;      WRITE :/`ERROR : No row selected`.&lt;/P&gt;&lt;P&gt;      endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am assuming that you want to capture Exception no. 1. If you want to capture any other exception, then just mention the value of the corresponding exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 04:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489365#M227918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T04:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Exception error as spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489366#M227919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding, for reports that are executed in background the spool request is created for the report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if there is a case where you want to capture some error from Function and display on the spool, what you should do is:&lt;/P&gt;&lt;P&gt;1. After calling the Function Module, check if there is a exception&lt;/P&gt;&lt;P&gt;2. If exception has occured write the exception output using WRITE statement, instead of giving I/E messages.&lt;/P&gt;&lt;P&gt;3. As this exception info is diplayed in the report output, the same will also be availble in the spool request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;P&gt;Award if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 04:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489366#M227919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T04:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Exception error as spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489367#M227920</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;I tried as per your instructions, still i coudnt get the message in the spool ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest me some other way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sowmmya B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 05:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489367#M227920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T05:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Exception error as spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489368#M227921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;HI
 
  Example given by Prasanth should work. As it is not 
working, can you post your code which can help friends 
here and advice.

Kind Regards
Eswar&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 05:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-exception-error-as-spool-request/m-p/1489368#M227921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T05:21:19Z</dc:date>
    </item>
  </channel>
</rss>

