<?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: sap script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807092#M656071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not have dynamic windows in scripts, so it is not possible to have footer window after your 10th record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative is to have a place of 10 records in the first window itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 13:53:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-30T13:53:42Z</dc:date>
    <item>
      <title>sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807091#M656070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IN a sap script i want to print 10 records in main window, there are header, main, and footer window, in main window there is a condition that only 8 records is limited and then the second page will print 2 records and the remaining space should not be shown and footer should come after the 10th record of the 2nd page how 2 handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 13:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807091#M656070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807092#M656071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not have dynamic windows in scripts, so it is not possible to have footer window after your 10th record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative is to have a place of 10 records in the first window itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 13:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807092#M656071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807093#M656072</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;You might try out to fill your internal table with pseudo (blank) lines.&lt;/P&gt;&lt;P&gt;1.line - 1. item&lt;/P&gt;&lt;P&gt;2.line - 2. item&lt;/P&gt;&lt;P&gt;3.line - 3. item&lt;/P&gt;&lt;P&gt;4.line - 4. item&lt;/P&gt;&lt;P&gt;5.line - 5. item&lt;/P&gt;&lt;P&gt;6.line - 6. item&lt;/P&gt;&lt;P&gt;7.line - 7. item&lt;/P&gt;&lt;P&gt;8.line - 8. item&lt;/P&gt;&lt;P&gt;9.line - &lt;/P&gt;&lt;P&gt;10.line - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And don't skip only the empty lines, but print them out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just clear your work area and use the APPEND command to enter it as a new line to your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 13:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807093#M656072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807094#M656073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number of records that print in a main window of sapscript depends on the length of the window, and how many printed lines each record takes.  This can vary if lines are in a PROTECT ENDPROTECT grouping that requires them to stay together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To vary where the footer prints, you need to either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Print it in the MAIN window after the final record is printed (together with any boxes, etc); or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Have FOOTER window overlap MAIN from end of first record, and print appropriate number of blank lines in this widow before any text / boxes so that start of footer information is below last printed detail in MAIN window. So to print after 2 records, would include 1 record worth of blank lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 14:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807094#M656073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807095#M656074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra Sekhar..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very easy..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the MAIN window itself, use a text element..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E FOOTER.. this will not allow the system to automatically print the contents of this text element..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In your driver program , you will be calling WRITE_FORM function, in a loop at the internal table conatining the data items..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) After the loop gets over, call function WRITE_FORM with window MAIN and element FOOTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will print the footer just below your last line item...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to have the footer window on all pages, then let it be as it is.. But the text that you are printing there make it in a condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;amp;w_last_page&amp;amp; NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print this..&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;Now, in the driver program, after the ENDLOOP, check this flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_last_flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Reward if useful&lt;/STRONG&gt;**&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 17:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/2807095#M656074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T17:23:08Z</dc:date>
    </item>
  </channel>
</rss>

