<?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: Report will be split into different spools in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886074#M371646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ONe easy way to do this is to have the ouput as a separate program and then use the SUBMIT statement with the TO SAP-SPOOLER  extension.  This will allow you to create multple spools from one driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2007 15:49:27 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-01-19T15:49:27Z</dc:date>
    <item>
      <title>Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886072#M371644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to display a report using WRITE statements. I have an internal table that contains all the data that I will be needing for the report. Then I will loop at the internal table and display the workarea one by one. But then, I need to split the spool into different files when the customer is changed. Will it be possible to split the spool into files? What Function module should I use? I will not be using Smartforms or sapscript. This will be run every night through a batch job in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lalyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 15:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886072#M371644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T15:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886073#M371645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AT-NEW kunnr control statement for your internal table. Then perform function modules for background job scheduling. &lt;/P&gt;&lt;P&gt;Job Open, Job Submit &amp;amp; Job Close. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 15:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886073#M371645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886074#M371646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ONe easy way to do this is to have the ouput as a separate program and then use the SUBMIT statement with the TO SAP-SPOOLER  extension.  This will allow you to create multple spools from one driver program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 15:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886074#M371646</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-19T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886075#M371647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalyn!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it's possible. For some help about the flags look &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="201117"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM SET_PRINT_PARAMETERS and GET_PRINT_PARAMETERS to get and set the print parameters (yes, you guessed by the name); have a look at both documentation, too - they are quite long and usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 15:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886075#M371647</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-01-19T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886076#M371648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that FM GET_PRINT_PARAMETERS with the option 'new spool request' (PRI_PARAMS-PRNEW) should work. It would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: params TYPE pri_params,
      valid.

params-prnew = &amp;#145;X&amp;#146;.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      no_dialog      = 'X'
      in_parameters = params
    IMPORTING
      out_parameters = params
      valid          = valid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then when you need to start new page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your requirements you might need to populate additional fields when calling the FM (it is pretty well documented).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 'no dialog' option should be selected in both places for background processing. It is also possible that params-prnew should be set up &lt;U&gt;after&lt;/U&gt; the FM call - I haven't got a chance to test it, sorry!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 16:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886076#M371648</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-01-19T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886077#M371649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Christian and Jelena. I'll try to make a sample code with the FM. I'll let you know what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lalyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 16:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886077#M371649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T16:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886078#M371650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually have done early what Jelena as suggested and it did not work for me.  Instead it just put all pages in one spool request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 16:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886078#M371650</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-19T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886079#M371651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something could be done by manipulating different options in PRI_PARAMS (or other fields in GET_PRINT_PARAMETERS)? For example, the request can be separated by forcing the request name to be different. Here the request name is the 3-part 'Name' field that can be seen after double-clicking on the request entry in SP01. PRI_PARAMS has the field PLIST, which is labeled 'name of spool request'. I'm wondering what it would do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing just crossed my mind. If a report runs as a background job maybe there is some spool assignment linked directly to that job and maybe it is overriding whatever the report is trying to do? Just a guess though...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very curious how this turns out. Please keep us posted, Lalyn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 16:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886079#M371651</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-01-19T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Report will be split into different spools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886080#M371652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help. FInally, I was able to make my codes work. I just added the line NEW-PAGE PRINT OFF after the first spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA PARAMS LIKE PRI_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: DAYS(1)  TYPE N VALUE 2,&lt;/P&gt;&lt;P&gt;      COUNT(3) TYPE N VALUE 1,&lt;/P&gt;&lt;P&gt;      VALID    TYPE C,&lt;/P&gt;&lt;P&gt;      ARPARAMS LIKE ARC_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;  EXPORTING DESTINATION           = 'LP01'&lt;/P&gt;&lt;P&gt;            COPIES                = COUNT&lt;/P&gt;&lt;P&gt;            LIST_NAME             = 'TEST'&lt;/P&gt;&lt;P&gt;            LIST_TEXT             = 'Test NEW-PAGE PRINT ON'&lt;/P&gt;&lt;P&gt;"            IMMEDIATELY           = 'X'&lt;/P&gt;&lt;P&gt;"            RELEASE               = 'X'&lt;/P&gt;&lt;P&gt;            NEW_LIST_ID           = 'X'&lt;/P&gt;&lt;P&gt;            EXPIRATION            = DAYS&lt;/P&gt;&lt;P&gt;            LINE_SIZE             = 79&lt;/P&gt;&lt;P&gt;            LINE_COUNT            = 23&lt;/P&gt;&lt;P&gt;            LAYOUT                = 'X_PAPER'&lt;/P&gt;&lt;P&gt;            SAP_COVER_PAGE        = 'X'&lt;/P&gt;&lt;P&gt;            RECEIVER              = 'MSANTOS' "'SAP*'&lt;/P&gt;&lt;P&gt;            DEPARTMENT            = 'System'&lt;/P&gt;&lt;P&gt;           NO_DIALOG             = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING OUT_PARAMETERS        = PARAMS&lt;/P&gt;&lt;P&gt;            VALID                 = VALID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VALID &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE / 'first line..'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.&lt;/P&gt;&lt;P&gt;  WRITE / 'Second Line...!'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NEW-PAGE PRINT OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lalyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 17:59:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-will-be-split-into-different-spools/m-p/1886080#M371652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T17:59:08Z</dc:date>
    </item>
  </channel>
</rss>

