<?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 spool to excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-to-excel/m-p/4007154#M957265</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 need to send a spool generated report to excel&lt;/P&gt;&lt;P&gt;the spool generated report output comes in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me plzz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 15:39:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T15:39:45Z</dc:date>
    <item>
      <title>spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-to-excel/m-p/4007154#M957265</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 need to send a spool generated report to excel&lt;/P&gt;&lt;P&gt;the spool generated report output comes in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me plzz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-to-excel/m-p/4007154#M957265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: spool to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-to-excel/m-p/4007155#M957266</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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHECK WHETHER STATUS OF JOB IS COMPLETED OR CANCELLED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHILE 1 = 1.

* GET THE JOB STEPLIST WHICH HAS THE SPOOL NUMBER
    CALL FUNCTION 'BP_JOB_READ'
      EXPORTING
        job_read_jobcount           = w_jobcount
        job_read_jobname            = w_jobname
        job_read_opcode             = '35'
*   JOB_STEP_NUMBER             =
     IMPORTING
       job_read_jobhead            = wa_jobhead
     TABLES
       job_read_steplist           = i_jobsteplist
* CHANGING
*   RET                         =
   EXCEPTIONS
     invalid_opcode              = 1
     job_doesnt_exist            = 2
     job_doesnt_have_steps       = 3
     OTHERS                      = 4
              .
    IF sy-subrc &amp;lt;&amp;gt; 0.
*      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

 

* IF STATUS OF JOB IS COMPLETED(F) OR CANCELLED(A)
* READ THE JOBSTEPLIST &amp;amp; GET THE SPOOL NUMBER
    IF wa_jobhead-status =  c_a OR wa_jobhead-status = c_f.
      READ TABLE i_jobsteplist INTO wa_jobsteplist INDEX 1.
      CHECK wa_jobsteplist-listident &amp;lt;&amp;gt; space.
      w_spool_number = wa_jobsteplist-listident.
      EXIT.
    ENDIF.
  ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM "RSPO_DOWNLOAD_SPOOLJOB".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 03:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-to-excel/m-p/4007155#M957266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T03:26:37Z</dc:date>
    </item>
  </channel>
</rss>

