<?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: sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711702#M628637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need a LAST page in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of your first page (or MAIN) have a text element where you check if the page is the last page, if yes then print the total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 15:08:23 GMT</pubDate>
    <dc:creator>former_member378318</dc:creator>
    <dc:date>2007-08-16T15:08:23Z</dc:date>
    <item>
      <title>sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711701#M628636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help to define the the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have designed the sapscript form to calculate remittance amounts on a monthly basis. At the end of the form I need to display the total amount getting remitted. I have calculated it in the print program. I have defined that field at the FOOTER window on the LAST page.&lt;/P&gt;&lt;P&gt;I believe this works, if the number of records coming from the print program goes beyond the first page, what logic should I need to incorporate if the number of records does not go beyond the first page ? what should i do to display the total amount in the first page itself in such case?  How should i take care of it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to modify the form or the print program for it?&lt;/P&gt;&lt;P&gt;Any thoughts or ideas shall be very helpful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711701#M628636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711702#M628637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need a LAST page in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of your first page (or MAIN) have a text element where you check if the page is the last page, if yes then print the total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711702#M628637</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-08-16T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711703#M628638</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; dont take a footer window. instead put it in your main window... it will print at the last.&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;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711703#M628638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711704#M628639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;How do you check that? Do you check that in the form or the program?&lt;/P&gt;&lt;P&gt;The components of the page are HEADER and MAIN windows in the FIRST page. Should I need to create an additional text element in the MAIN window itself, I have the table defined in the main window with a table heading. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please elaborate on that?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711704#M628639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711705#M628640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined the table in the MAIN within PROTECT and ENDPROTECT tag. Should I declare that text element outside that tag?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711705#M628640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711706#M628641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check for last page using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; EQ &amp;amp;SAPSCRIPT-FORMPAGES&amp;amp;&lt;/P&gt;&lt;P&gt;/  (print your total here)&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;If you define a window at the bottom of your Main page and insert the above code the total should appear at the end of the last page (even if its the first page).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 15:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711706#M628641</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2007-08-16T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711707#M628642</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;Thanks for the reply, I used the same piece of code, but did not work, I believe should be missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain what I have done, declared another window in the FIRST page called 'FOOTER' then defined an text element within the window, then I entered the piece of code given above,&lt;/P&gt;&lt;P&gt;/E AMT&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; EQ &amp;amp;SAPSCRIPT-FORMPAGES&amp;amp;&lt;/P&gt;&lt;P&gt;/H Total Amount Remitted: &amp;amp;out1-total_amt&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the debugger mode, I checked the condition '&amp;amp;PAGE&amp;amp; EQ &amp;amp;SAPSCRIPT-FORMPAGES&amp;amp;' is working after that I do not know what happenned, also i checked the variable out1-total_amt it has amount value in it.&lt;/P&gt;&lt;P&gt;I do not know what am I mssing here? The element is not displaying on the form.&lt;/P&gt;&lt;P&gt;Any help is really appreciated,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 17:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711707#M628642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711708#M628643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue might be window is assigning to page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please assign window to next page and see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check the amt text element whether it is trigger correct place or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 17:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711708#M628643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711709#M628644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the funcion module I used to call that window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  ELEMENT = 'AMT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FUNCTION = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TYPE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WINDOW = 'FOOTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PENDING_LINES =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;  ELEMENT = 1&lt;/P&gt;&lt;P&gt;  FUNCTION = 2&lt;/P&gt;&lt;P&gt;  TYPE = 3&lt;/P&gt;&lt;P&gt;  UNOPENED = 4&lt;/P&gt;&lt;P&gt;  UNSTARTED = 5&lt;/P&gt;&lt;P&gt;  WINDOW = 6&lt;/P&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT = 7&lt;/P&gt;&lt;P&gt;  SPOOL_ERROR = 8&lt;/P&gt;&lt;P&gt;  CODEPAGE = 9&lt;/P&gt;&lt;P&gt;  OTHERS = 10&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Am I calling the FOOETR window incorrectly? If so, can anyone help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 18:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711709#M628644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T18:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711710#M628645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay ,now i got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do not use text element in footer window and also comment write_form -&amp;gt; footer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should get the total in footer window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711710#M628645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711711#M628646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the issue: The data I populate in the MAIN window,  comes from a different internal table. I get the total amount collected stored in a different internal table in the print program. Here is what I do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at out.  &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;populates the records into the table items of the MAIN window&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;         perform write_body.  &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at out2.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;populates the total amt collected and the subroutine total_amt has the FM module declared above for the FOOTER window.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    perform total_amt.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;perform close_form.&lt;/P&gt;&lt;P&gt;I hope you understood my logic, hecne I had to write another FM for it, if this is an incorrect way how can I do it? It is just one value in a separate window, that I am trying to call.&lt;/P&gt;&lt;P&gt;Any inputs is really appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711711#M628646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711712#M628647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use text element(write_form) for footer window -&amp;gt; you will have to perform complicate logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best thing would be ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep the total amount in one global variable ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use below following logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; = &amp;amp;SAPSCRIPT-FORMPAGE&amp;amp;&lt;/P&gt;&lt;P&gt;P1 &amp;amp;TOT_AMT&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here P1 is the paragraph format .&amp;amp;TOT_AMT&amp;amp; - Variable,please keep uppercase in se71 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 19:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711712#M628647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T19:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711713#M628648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your continued help here Seshu. I have taken off the text element and now in the FOOTER window, just declared  the three lines of code, now I am reading the data in the variable.&lt;/P&gt;&lt;P&gt;How do you call this single variable in the print program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 20:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711713#M628648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711714#M628649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay ,now keep the total amount in one global varaible, you are using open_form or start_form ,here you are mentioning the form name.&lt;/P&gt;&lt;P&gt;so no need to use any write_form here for single variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use that variable in footer window directly and you should get it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that no need to use write_form here ,there is communication between form and program using open_form or start_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 21:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711714#M628649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T21:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711715#M628650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for getting back to this a bit late, it did not work. Here is the piece of code I have written in the FOOTER window,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; EQ &amp;amp;SAPSCRIPT-FORMPAGES&amp;amp;&lt;/P&gt;&lt;P&gt;H1 Total Amount Remitted: &amp;amp;V_TOTALAMT&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While in the debug mode for the sapscript I found&lt;/P&gt;&lt;P&gt;&amp;amp;PAGE&amp;amp; = 1&lt;/P&gt;&lt;P&gt;&amp;amp;SAPSCRIPT-FORMPAGES&amp;amp; =  spacespace1&lt;/P&gt;&lt;P&gt;it did not go through the condition, is the number spacing making the condition false here? &lt;/P&gt;&lt;P&gt;Also checked the value in variable it is coming through fine,&lt;/P&gt;&lt;P&gt;Can anyone tell me what is the mistake am I doing here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711715#M628650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711716#M628651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Code looks good ,did you set page mode ?&lt;/P&gt;&lt;P&gt;if not   then set it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you go pages option at Se71 ,here when you define pages like first page ,next page...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first page - what is mode ? Start mode --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next page - What is mode ? should be INC Mode..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pages  - page  - first&lt;/P&gt;&lt;P&gt;                   next page - should be next page.. ( do it like this )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try like this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF &amp;amp;PAGE&amp;amp; EQ &amp;amp;&amp;lt;b&amp;gt;SAPSCRIPT-JOBPAGES&amp;lt;/b&amp;gt;&amp;amp;&lt;/P&gt;&lt;P&gt;H1 Total Amount Remitted: &amp;amp;V_TOTALAMT&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711716#M628651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711717#M628652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code needed a small  tweak, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;PAGE(C)&amp;amp;  EQ &amp;amp;SAPSCRIPT-FORMPAGES(C)&amp;amp; in the condition statement, it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 14:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2711717#M628652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T14:52:43Z</dc:date>
    </item>
  </channel>
</rss>

