Skip to Content
author's profile photo Former Member
Former Member

getting page numbers in Sapscripts

Hi,

In my script, I want to display the page numbers on each page. For that, I have incorporated

Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)& in a window called PAGE.

But in the output of 2 pages, it is showing 'page 1 of 2' in both the pages.

Can anyone give me the solution for it..

thanks

Rakesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09:31 AM

    Hi,

    Refer to this link...

    total-number-of-pages

    system-symbol-for-total-number-of-pages-in-sap-scr

    i-want-the-page-number-by-total-no-of-pages-like-2

    Edited by: avinash kodarapu on Dec 19, 2008 3:02 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09:47 AM

    Hi,

    TRy doing like this:

    &PAGE&/&SAPSCRIPT-FORMPAGES(C)&.

    Also check that the page you are giving is the page window or the next page.i think you will have to mention the page as the next page.

    Hope it helps.

    Regards,

    Rahul

    Edited by: Rahul Kumar Sinha on Dec 19, 2008 10:48 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 09:51 AM

    hi,

    &SAPSCRIPT-FORMPAGES& --- Total Number of Script Pages

    &PAGE& -- current Page no

    &NEXTPAGE& -- next page no

    hope it helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 10:06 AM

    Hi all,

    Still it is showing as Page 1 of 2 in both the pages...not showing as Page 2 of 2 in the second page..

    I have defined this in a PAGE window..not in Main window..

    Is this causing the problem..

    Please let me know.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 11:05 AM

    Hi Rakesh,

    [Sapscript : Total Number of Pages|http://help.sap.com/saphelp_45b/helpdata/en/6c/897415dc4ad111950d0060b03c6b76/content.htm]

    Regards,

    Sravanthi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.