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

Page number problem in Tax invoice form

Hi Experts,

We have a problem in page number header in Taxinvoice form. Like if the total page number comes with 2 digit it shows like (Page 1 of * ) . When the page number cross 10(i.e double digit) we have this problem( Replaced the star instead of number). Please give some ideas related to this issue. Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 06:30 AM

    Hi,

    Use:-

    &SFSY-PAGE& for page number

    and &SFSY-FORMPAGES(3ZC)& for total pages.

    So take Page: &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&

    Hope this helps you.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2014 at 06:37 AM

    Hi Kavi,

    &SFSY-FORMPAGES(3ZC)& will give you the desired result. Please refer to SAP note: 588352.

    Or you can also try &SFSY-FORMPAGES+0(4CZR)& / &SFSY-FORMPAGES(4CZR)&.


    NOTE: The page window must be the Last window in your smartform.


    Thanks,

    Anubhab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 06:45 AM

    Hi,

    Use &SFSY-FORMPAGES(3ZC)& for total number of pages where the information inside the parentheses represents formatting options, as follows:

    3 = output length of data

    Z = suppress leading zeroes

    C = compress blank spaces

    Regards

    Danny

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2014 at 12:00 PM

    Hi Kavi,

    please write as shown below, your problem get resolved

    &SFSY-PAGE(4Z)& of &SFSY-FORMPAGES(4Z)&

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2014 at 06:36 AM

    Hi,

    Increase your window size in which you have wrote page number.

    Regards,

    Siddhesh Satghare.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 06:18 AM

    can u give the coding or screen shot of the form..?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2014 at 06:52 AM

    Hi Kavi,

    Use below code.

    /: DEFINE &SAPSCRIPT-COUNTER_1&

    P6 <C4>Page : </><C4> &SAPSCRIPT-COUNTER_1(+)&</><C4> of</>

    = <C4> &SAPSCRIPT-JOBPAGES(3ZC)&</>

    Regards

    Gangadhar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 06:54 AM

    Hi Kavi,

    First Increase the size of Window &

    Change the window type as Final Window.

    Regards,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 01:24 PM

    Hi Kavi ;

    Please try like below ;

    &SFSY-PAGE& / &SFSY-FORMPAGES&

    It is working correctly.

    Regards

    Özgün



    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.