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

Page number in script

Hi frnds,

Can anyone help me out to find the page number of the script? so that i can use that in my program for calculation purpose.

Im using an perform statement in my script and the form is in driver program and it is not working too.

thanks

Suganya

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2007 at 10:07 AM

    Hi...,

    the system symbol <b>&page&</b> contains the current page number..

    <b>&nextpage&</b> next page number...

    U can send this &page& parameter through perform... endperform to the program and u can use it there !!!

    &sapscript-formpages& contains the total no.of pages of the form...

    reward all helpful answers...

    sai ramesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ramesh,

      my perform is not going inot the form itself????

      /: Perform <formname> in program <prgm name> using <f1> changing <f2>

      /: endperform

      this is wat i have written, but its not going inside my form which has been given in the diver program

      thanks

      Suganya

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2007 at 10:07 AM

    Use this syntax to get something like this ---> PAGE 1 OF 2

    PAGE &PAGE& OF &SAPSCRIPT-FORMPAGES&

    Or you can use to get something like this ---> PAGE: 1

    PAGE: &PAGE&.

    Hope I got your question right & hope the abov help you.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 26, 2007 at 10:09 AM

    Hi,

    You can use static variable in your subroutine and and calling the subroutine other than your main window you can have that page number.other wise you can use &page& variable in script for your use.

    regards,

    veeresh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2007 at 10:11 AM

    hi Suganya,

    use <b>&PAGE& OF &SAPSCRIPT-formpages(2)&</b> to display your page numbers as 1 of 3, 2 of 3, 3 of 3

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2007 at 08:47 AM

    Hi frnds,

    Got the result by own and thanks for the replies

    thanks

    Suganya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2007 at 08:47 AM

    Got by myself

    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.