<?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: Creating 1 spool for every 1000 sapscripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-1-spool-for-every-1000-sapscripts/m-p/3009570#M711193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to count the records and then for every 1000 you have to make a new SPOOL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIke:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB.
CNT = CNT + 1.
ITCPO-TDNEWID = ' '.

IF CNT =  1.
  ITCPO-TDNEWID = 'X'.
ENDIF.

OPEN_FORM
 wtih OPTIONS = ITCPO.

WRITE_FORM

CLOSE_FORM

IF CNT = 1000.
  CLEAR CNT.
ENDIF.

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, 14 Nov 2007 21:47:38 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-14T21:47:38Z</dc:date>
    <item>
      <title>Creating 1 spool for every 1000 sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-1-spool-for-every-1000-sapscripts/m-p/3009569#M711192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be set in the beginning and when starting a new set of spool with 1000 forms . &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;Teresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 21:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-1-spool-for-every-1000-sapscripts/m-p/3009569#M711192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 1 spool for every 1000 sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-1-spool-for-every-1000-sapscripts/m-p/3009570#M711193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to count the records and then for every 1000 you have to make a new SPOOL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIke:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB.
CNT = CNT + 1.
ITCPO-TDNEWID = ' '.

IF CNT =  1.
  ITCPO-TDNEWID = 'X'.
ENDIF.

OPEN_FORM
 wtih OPTIONS = ITCPO.

WRITE_FORM

CLOSE_FORM

IF CNT = 1000.
  CLEAR CNT.
ENDIF.

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, 14 Nov 2007 21:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-1-spool-for-every-1000-sapscripts/m-p/3009570#M711193</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-14T21:47:38Z</dc:date>
    </item>
  </channel>
</rss>

