<?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 Type 1 report program - printing total pages. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170460#M997079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on Type 1 report program. I want to print the total no of pages Eg: Page : 1 / 10, Page : 2 / 10 .... so on and so forth .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the page no. from sy-pagno but am unable to derive the total pages for the report, i.e. 10 in the above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly assist in deriving the total pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 14:41:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T14:41:14Z</dc:date>
    <item>
      <title>Type 1 report program - printing total pages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170460#M997079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on Type 1 report program. I want to print the total no of pages Eg: Page : 1 / 10, Page : 2 / 10 .... so on and so forth .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the page no. from sy-pagno but am unable to derive the total pages for the report, i.e. 10 in the above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly assist in deriving the total pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 14:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170460#M997079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Type 1 report program - printing total pages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170461#M997080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming that u r working with classical report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. check this sample code:&lt;/P&gt;&lt;P&gt;REPORT ZLTEST3 NO STANDARD PAGE HEADING&lt;/P&gt;&lt;P&gt;LINE-COUNT 65&lt;/P&gt;&lt;P&gt;LINE-SIZE 80.&lt;/P&gt;&lt;P&gt;DATA: NUM_PAGES_C(10) TYPE C.&lt;/P&gt;&lt;P&gt;PERFORM WRITE.&lt;/P&gt;&lt;P&gt;PERFORM GET_TOTAL_PAGENO.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;WRITE:/(SY-LINCT) 'TEST - TEST' CENTERED.&lt;/P&gt;&lt;P&gt;WRITE: / SY-DATUM, 60 SY-PAGNO,'of', '*****'.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form WRITE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM WRITE.&lt;/P&gt;&lt;P&gt;DO 200 TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'TEST', SY-LINNO.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDFORM. " WRITE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form GET_TOTAL_PAGENO&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORM GET_TOTAL_PAGENO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WRITE SY-PAGNO TO NUM_PAGES_C LEFT-JUSTIFIED.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DO SY-PAGNO TIMES.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ LINE 2 OF PAGE SY-INDEX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE '&lt;/STRONG&gt;***&lt;STRONG&gt;' WITH NUM_PAGES_C INTO SY-LISEL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY LINE 2 OF PAGE SY-INDEX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDDO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM. " GET_TOTAL_PAGENO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique only works with foreground, in background it will not work.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 14:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170461#M997080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Type 1 report program - printing total pages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170462#M997081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapreports.blogspot.com/2008/06/total-pages-of-abap-report-output.html" target="test_blank"&gt;http://abapreports.blogspot.com/2008/06/total-pages-of-abap-report-output.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 14:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170462#M997081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T14:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Type 1 report program - printing total pages.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170463#M997082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 12:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-1-report-program-printing-total-pages/m-p/4170463#M997082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T12:41:54Z</dc:date>
    </item>
  </channel>
</rss>

