<?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: Error in output Spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644625#M609044</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;chk this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message s208(00) with 'Error'. --&amp;gt; where will the status bar msg. occur in bground&lt;/P&gt;&lt;P&gt;leave list-processing.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe the subrc might be false, and triggering this condition, which i believe will not work in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 08:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T08:14:20Z</dc:date>
    <item>
      <title>Error in output Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644623#M609042</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 need help, I'd like send spool of program as attachment PDF file, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, my solution is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Get Spool Number &lt;/P&gt;&lt;P&gt;   I get the Spool Number from table:TSP01, to get the last one.&lt;/P&gt;&lt;P&gt;2.Get Spool Data, useing function 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;3.Sendmail use function 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let the program running at background job, then I checked the job,&lt;/P&gt;&lt;P&gt;result as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status:            Frontend unavailable&lt;/P&gt;&lt;P&gt;Message:           Request on hold&lt;/P&gt;&lt;P&gt;Time:              2007/08/20 15:52:58&lt;/P&gt;&lt;P&gt;Job status:        On hold&lt;/P&gt;&lt;P&gt;Error class:       Delayed&lt;/P&gt;&lt;P&gt;Area:              Data transfer&lt;/P&gt;&lt;P&gt;Printout:          Not printed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody know about it?  plz help me, thanks a lot!...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following is my code (partial of parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Spool Number (get the spool last one)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select tsp01~rqident into v_spool&lt;/P&gt;&lt;P&gt;  from   tsp01&lt;/P&gt;&lt;P&gt;  where  tsp01~rqowner = 'SAPMIS'&lt;/P&gt;&lt;P&gt;  order by tsp01~rqident descending.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the spool data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      rqident = v_spool&lt;/P&gt;&lt;P&gt;      first_line = 1&lt;/P&gt;&lt;P&gt;      last_line = 0&lt;/P&gt;&lt;P&gt;      desired_type = ' '&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      real_type = real_type&lt;/P&gt;&lt;P&gt;      sp_lang = sp_lang&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      buffer = so_ali&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      no_such_job          = 1&lt;/P&gt;&lt;P&gt;      job_contains_no_data = 2&lt;/P&gt;&lt;P&gt;      selection_empty      = 3&lt;/P&gt;&lt;P&gt;      no_permission        = 4&lt;/P&gt;&lt;P&gt;      can_not_access       = 5&lt;/P&gt;&lt;P&gt;      read_error           = 6&lt;/P&gt;&lt;P&gt;      type_no_match        = 7&lt;/P&gt;&lt;P&gt;      others               = 8.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message s208(00) with 'Error'.&lt;/P&gt;&lt;P&gt;      leave list-processing.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Prepare the data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    plist-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;    plist-head_start = 0.&lt;/P&gt;&lt;P&gt;    plist-head_num = 0.&lt;/P&gt;&lt;P&gt;    plist-body_start = 0.&lt;/P&gt;&lt;P&gt;    plist-body_num = 0.&lt;/P&gt;&lt;P&gt;    plist-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;    plist-obj_descr = 'ReadMe'.&lt;/P&gt;&lt;P&gt;    append plist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    plist-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;    plist-head_start = 0.&lt;/P&gt;&lt;P&gt;    plist-head_num = 0.&lt;/P&gt;&lt;P&gt;    plist-body_start = 1.&lt;/P&gt;&lt;P&gt;    describe table so_ali lines plist-body_num.&lt;/P&gt;&lt;P&gt;    plist-doc_type = real_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Get the size.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    read table so_ali index plist-body_num.&lt;/P&gt;&lt;P&gt;    plist-doc_size = ( plist-body_num - 1 ) * line_size&lt;/P&gt;&lt;P&gt;    + strlen( so_ali ).&lt;/P&gt;&lt;P&gt;    append plist.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send the email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      document_data  = document_data&lt;/P&gt;&lt;P&gt;      sender_address = v_name&lt;/P&gt;&lt;P&gt;      sender_address_type = 'B'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      packing_list = plist&lt;/P&gt;&lt;P&gt;      contents_bin = so_ali&lt;/P&gt;&lt;P&gt;      receivers    = rec_tab&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      too_many_receivers          = 1&lt;/P&gt;&lt;P&gt;      document_not_sent           = 2&lt;/P&gt;&lt;P&gt;      document_type_not_exist     = 3&lt;/P&gt;&lt;P&gt;      operation_no_authorization  = 4&lt;/P&gt;&lt;P&gt;      parameter_error             = 5&lt;/P&gt;&lt;P&gt;      x_error                     = 6&lt;/P&gt;&lt;P&gt;      enqueue_error               = 7&lt;/P&gt;&lt;P&gt;      others                      = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message e208(00) with 'Error'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Send the email immediately.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    submit rsconn01&lt;/P&gt;&lt;P&gt;    with mode = 'INT'&lt;/P&gt;&lt;P&gt;    and return.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644623#M609042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in output Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644624#M609043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alchie Chou,&lt;/P&gt;&lt;P&gt;please have a look at one of my blogs: &amp;lt;a href="/people/pere.diaz/blog/2005/07/14/broadcasting-reports-via-mail-with-pdf-attachment reports via mail with PDF-attachment&amp;lt;/a&amp;gt;.&lt;/P&gt;&lt;P&gt;I think it can be useful. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644624#M609043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in output Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644625#M609044</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;chk this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message s208(00) with 'Error'. --&amp;gt; where will the status bar msg. occur in bground&lt;/P&gt;&lt;P&gt;leave list-processing.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe the subrc might be false, and triggering this condition, which i believe will not work in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644625#M609044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in output Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644626#M609045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sathish:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with you, then I try to remark these code of Program (every about msg statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I got the same of result..... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-output-spool/m-p/2644626#M609045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:25:00Z</dc:date>
    </item>
  </channel>
</rss>

