<?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: How can you create a spoolfile from a program where have Error Message? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209331#M1522389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of either an Abend Message(Type 'A') or a Short Dump Message (Type 'X'), the entire spool list is erased and thereafter unavailable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you are using Error message (Type 'E') and it should retain a spool. The same logic works perfectly fine in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a wild guess, if there is any arrangement in your system to delete the spools for cancelled jobs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Aug 2010 21:06:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-19T21:06:09Z</dc:date>
    <item>
      <title>How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209328#M1522386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I need a report to come out  - even if I have an Error or Abort Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the report so that i can email the users in a second step of a Job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want the CANELLED to show in the JOB queue but when that happens by doing a message with the error it does not output any spool file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CONCATENATE c_errors&lt;/P&gt;&lt;P&gt;                c_error_645&lt;/P&gt;&lt;P&gt;        INTO  z_msg_line  SEPARATED BY space.&lt;/P&gt;&lt;P&gt;    WRITE z_msg_line TO z_output_line.&lt;/P&gt;&lt;P&gt;    WRITE:  z_output_line.&lt;/P&gt;&lt;P&gt;    lv_errors = 'X'.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZX' TYPE 'E' NUMBER '645'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job stops, shows CANCELLED but not output to the spool file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change message type to I for imfomation I get the spoolfile but the JOB queue shows COMPLETED so a Basis person will not catch the Cancelled job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 17:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209328#M1522386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209329#M1522387</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;raise a error message of type E , to see the reason just select the job and click the job log button in the tool bar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 19:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209329#M1522387</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-19T19:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209330#M1522388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the email processing have to occur within the same job?  Why not establish a polling process for cancelled jobs where you control the job name(s) to poll for and the linked users to email?  When you find a canceled job you can read the job log messages (assuming you have logged your errors using 'S' messages and then used a final 'E' message to stop the job) using function BP_JOBLOG_READ.  You could establish a spool from that (and attach it) or just embed the messages in the email body itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what your scenario is though - I would separate application errors from technical errors in your error notification process, i.e., handle error notification/emailing within your programs themselves and avoid abending jobs if possible.  Are these Basis-handled errors or user-handled errors that you're talking about?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Brad Bohn on Aug 19, 2010 3:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 20:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209330#M1522388</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-08-19T20:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209331#M1522389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of either an Abend Message(Type 'A') or a Short Dump Message (Type 'X'), the entire spool list is erased and thereafter unavailable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you are using Error message (Type 'E') and it should retain a spool. The same logic works perfectly fine in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a wild guess, if there is any arrangement in your system to delete the spools for cancelled jobs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 21:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209331#M1522389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T21:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209332#M1522390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found away to make it work within the way it behaves.  Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 21:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209332#M1522390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T21:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can you create a spoolfile from a program where have Error Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209333#M1522391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same situation.  Would you please explain what you did to make it work?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 12:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-you-create-a-spoolfile-from-a-program-where-have-error-message/m-p/7209333#M1522391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T12:29:26Z</dc:date>
    </item>
  </channel>
</rss>

