<?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: Reading spool data into excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520403#M1261798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be a roundway solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating the spool keep the line to the maximum by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    call function 'GET_PRINT_PARAMETERS'
      exporting
        destination            = 'LOCL'
        immediately            = space
        new_list_id            = 'X'
        no_dialog              = 'X'
        user                   = sy-uname
      importing
        out_parameters         = wa_params
        valid                  = v_valid
      exceptions
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        others                 = 4.

    wa_params-linct = 1000000.   "&amp;lt;&amp;lt;&amp;lt;&amp;lt;  Keep this to maximum number of lines in 
    wa_params-paart = ' '.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'RSPO_RETURN_ABAP_SPOOLJOB'
        exporting
          rqident              = wa_spool
          first_line           = 4   " Give the value here to skip top lines on each page
        tables
          buffer               = i_spldata
        exceptions
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          others               = 8.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the Spool Heading part will come ONLY in the first page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 14:43:49 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2009-04-15T14:43:49Z</dc:date>
    <item>
      <title>Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520396#M1261791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt; while downloadng spool data into excel...&lt;/P&gt;&lt;P&gt;in my spool table i have 60500 records.here i am skipping first 3 records (some junk text)which i don't need in output excel,by adding sy-tabix &amp;gt;3 condition.with this am gettngs 59999 records in one page correctly.&lt;/P&gt;&lt;P&gt;when its turn to 60000 reocord which should be displayed in second page.here problem is in second page am getting those 3 records which i skipped initially as 60000th n so onrecords.i don't want to display those 3 records again here.can any one explain me how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 18:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520396#M1261791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T18:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520397#M1261792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are using fm to read the spool , then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      call function 'RSPO_RETURN_ABAP_SPOOLJOB'
        exporting
          rqident              = wa_spool
          first_line           = 4   " Give the value here to skip top lines on each page
        tables
          buffer               = i_spldata
        exceptions
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          others               = 8.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 19:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520397#M1261792</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-14T19:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520398#M1261793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, let me try with this FM..am already using but not passing the parameter ' FIRST LINE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sunny on Apr 15, 2009 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520398#M1261793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520399#M1261794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this ...may be helpful for you ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2062672"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520399#M1261794</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-15T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520400#M1261795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi a@s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'RSPO_RETURN_ABAP_SPOOLJOB'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          rqident              = wa_spool&lt;/P&gt;&lt;P&gt;          first_line           = 4   " Give the value here to skip top lines on each page&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          buffer               = i_spldata&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          no_such_job          = 1&lt;/P&gt;&lt;P&gt;          not_abap_list        = 2&lt;/P&gt;&lt;P&gt;          job_contains_no_data = 3&lt;/P&gt;&lt;P&gt;          selection_empty      = 4&lt;/P&gt;&lt;P&gt;          no_permission        = 5&lt;/P&gt;&lt;P&gt;          can_not_access       = 6&lt;/P&gt;&lt;P&gt;          read_error           = 7&lt;/P&gt;&lt;P&gt;          others               = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one working for only first page...in the same way i want to skip lines for 2nd page n 3rd page..how to do..can u suggest me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 11:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520400#M1261795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T11:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520401#M1261796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you solved your problem. I am also having the same type of requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 11:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520401#M1261796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T11:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520402#M1261797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at solved..Don't know how to solve this..still trying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 12:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520402#M1261797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520403#M1261798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be a roundway solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating the spool keep the line to the maximum by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    call function 'GET_PRINT_PARAMETERS'
      exporting
        destination            = 'LOCL'
        immediately            = space
        new_list_id            = 'X'
        no_dialog              = 'X'
        user                   = sy-uname
      importing
        out_parameters         = wa_params
        valid                  = v_valid
      exceptions
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        others                 = 4.

    wa_params-linct = 1000000.   "&amp;lt;&amp;lt;&amp;lt;&amp;lt;  Keep this to maximum number of lines in 
    wa_params-paart = ' '.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'RSPO_RETURN_ABAP_SPOOLJOB'
        exporting
          rqident              = wa_spool
          first_line           = 4   " Give the value here to skip top lines on each page
        tables
          buffer               = i_spldata
        exceptions
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          others               = 8.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the Spool Heading part will come ONLY in the first page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520403#M1261798</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-15T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520404#M1261799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must be having something in your TOP-OF-PAGE which can distinguish between your TOP-OF-PAGE and your actual data. You can read the spool as suggested by aRs and then deletes the header generated from TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program to generate the Spool&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ztest_np_1 LINE-COUNT 10 NO STANDARD PAGE HEADING.

start-of-selection.
 do 55 times.
   write: / sy-abcde.
 enddo.

top-of-page.
  write: / 'Top'.
  write: / 'Something'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the spool and deletes header&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: lf_spool TYPE tsp01-rqident.

DATA: lt_buffer TYPE STANDARD TABLE OF txmisporow.

lf_spool = &amp;lt;spool&amp;gt;

CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
  EXPORTING
    rqident              = lf_spool
    first_line           = 2
  TABLES
    buffer               = lt_buffer
  EXCEPTIONS
    no_such_job          = 1
    not_abap_list        = 2
    job_contains_no_data = 3
    selection_empty      = 4
    no_permission        = 5
    can_not_access       = 6
    read_error           = 7
    OTHERS               = 8.
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.

DATA: la_buffer LIKE LINE OF lt_buffer.
LOOP AT lt_buffer INTO la_buffer WHERE ( line+0(3) = 'Top' or line = 'Something' ).
  DELETE lt_buffer.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 15:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520404#M1261799</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-15T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading spool data into excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520405#M1261800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 14:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-spool-data-into-excel/m-p/5520405#M1261800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

