<?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: Spool generated more than 1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891836#M679643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;As i mentioned below, the smartforms was triggered by output type.&lt;/P&gt;&lt;P&gt;And i only call the smartforms once below then entry subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the smartform got loop this correct.&lt;/P&gt;&lt;P&gt;I also pass the table to the smartform also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 05:35:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T05:35:41Z</dc:date>
    <item>
      <title>Spool generated more than 1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891834#M679641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My functional assigned my program (subroutine entry) and my smartforms to output type in MB1B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to posted MB1B, and the smartforms display correctly. But when i check in SP02 spool generated more than 1 for the same smartforms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like the smartforms was called for several times (same with how many spool created) --&amp;gt; i checked in the code the smartforms was called one time only in subroutine entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this information make you guys more idea:&lt;/P&gt;&lt;P&gt;Before i forgot to clear my internal table in the print program (subroutine entry) that called the smartforms and the internal table was append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what happened:&lt;/P&gt;&lt;P&gt;1 smartforms = 1 page (itab 1 record)&lt;/P&gt;&lt;P&gt;When i posted MB1B --&amp;gt; 2 spools --&amp;gt; 1 is 1 page (correct), 2 is 2 pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 smartforms = 2 pages (itab 2 records) &lt;/P&gt;&lt;P&gt;When i posted MB1B -&amp;gt; 4 spools --&amp;gt; 1 is 2 pages (correct), 2 is 4 pages, 3 is 6 pages, 4 is 8 pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i try to show is, why the itab also append? Even i forgot to clear the itab should be 1 soubroutine entry called 1 time only every time posted MB1B right? so the itab should not be append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i clear the itab before call the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This what happened:&lt;/P&gt;&lt;P&gt;1 smartforms = 1 page (itab 1 record)&lt;/P&gt;&lt;P&gt;When i posted MB1B --&amp;gt; 2 spools --&amp;gt; 1 is 1 page (correct), 2 is 1 page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 smartforms = 2 pages (itab 2 records) &lt;/P&gt;&lt;P&gt;When i posted MB1B -&amp;gt; 4 spools --&amp;gt; 1 is 2 pages (correct), 2 is 2 pages, 3 is 2 pages, 4 is 2 pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pages correctly already, but why the spool still generated more than 1 spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea for the possibility why this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 01:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891834#M679641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T01:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spool generated more than 1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891835#M679642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why you are getting multiple spools is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You are looping out the internal table &amp;amp; call the Smartform FM&lt;/P&gt;&lt;P&gt;2. Inside the Smartform FM, you are again looping over the table to display data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not call the Smartform FM in loop. Only pass the table table to Smartform FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891835#M679642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Spool generated more than 1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891836#M679643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;As i mentioned below, the smartforms was triggered by output type.&lt;/P&gt;&lt;P&gt;And i only call the smartforms once below then entry subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the smartform got loop this correct.&lt;/P&gt;&lt;P&gt;I also pass the table to the smartform also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891836#M679643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spool generated more than 1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891837#M679644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems there are multiple loops in Smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please hardcode a BREAK-POINT in SMARTFORM &amp;amp; execute MB1B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug &amp;amp; check why its called multiple times.&lt;/P&gt;&lt;P&gt;That seems to be the only way out.&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;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891837#M679644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spool generated more than 1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891838#M679645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If let say inside smartforms got multiple loop? is it can cause multiple spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought only if multiple call on the smartforms (not multiple loop inside the smartforms itself) will create multiple spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw Prashant,&lt;/P&gt;&lt;P&gt;If you see what happened when i forgot to clear my internal table.&lt;/P&gt;&lt;P&gt;2 records --&amp;gt; become 4 records --&amp;gt; become 6 records --&amp;gt; become 8 records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What make me confuse is, this smartforms or the entry program that append that itab was called only by output type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible the ouput type itself that triggered the smartforms more than 1 time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 07:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-generated-more-than-1/m-p/2891838#M679645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T07:55:39Z</dc:date>
    </item>
  </channel>
</rss>

