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

SFSY-FORMPAGES and SFSY-PAGE values in program lines of SMARTFORMS.

Hi,

I want to print the text "Contd...." on all pages except the last page of a document using SMARTFORMS. I am using the condition SFSY-FORMPAGES <> SFSY-PAGE. But the text "Contd...." is printing on every page.

I checked the values of SFSY-FORMPAGES and SFSY-PAGE in program lines and found that on every page the values of SFSY-FORMPAGES and SFSY-PAGE is the same. Eg: while printing page 1 SFSY-FORMPAGES = 1 and SFSY-PAGE = 1 and while printing page 2 SFSY-FORMPAGES = 2 and SFSY-PAGE = 2.

Kindly assist.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2010 at 10:50 AM

    Hi,

    How many pages you have created in your smartform? If it is more than one, does the content of table in main window spreads over til the last page?

    Thanks

    Nitesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 02, 2010 at 03:41 PM

    I want to print the text "Contd...." on all pages except the last page of a document using SMARTFORMS. I am using the condition SFSY-FORMPAGES SFSY-PAGE. But the text "Contd...." is printing on every page.

    I checked the values of SFSY-FORMPAGES and SFSY-PAGE in program lines and found that on every page the values of SFSY-FORMPAGES and SFSY-PAGE is the same. Eg: while printing page 1 SFSY-FORMPAGES = 1 and SFSY-PAGE = 1 and while printing page 2 SFSY-FORMPAGES = 2 and SFSY-PAGE = 2.

    Hi Kumar ,

    Do lke this

    in the bottom of the page create one window of type copy window (not secondary window)

    in that window create one text element with text "contd.... "

    For that text element put the condition as SFSY-FORMPAGES # SFSY-PAGE

    If u create copy window SFSY-FORMPAGES value will be 3 if the output pages 3 (in the copy window only u will get the correct value of the SFSY-FORMPAGES )

    Hope u will resolve u r issue .

    Let me know if u have any concerns.......

    Regards,

    Lokesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 08:23 AM

    Hello,

    You can check the number of entries that are being printed in the main table using describe table.

    Pass this value into a varible say lv_temp.

    You can pass this value from driver program to the smartfrom using Form interface.

    In the conditions for the page display text (sfsy-formpages) add another condition

    lv_page NE lv_temp.

    Regards,

    Radhakrishnan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 09:24 AM

    Hi,

    in the conditions tab, check the condition before end of main window.

    regards,

    Sakshi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2010 at 09:48 AM

    The field SFSY-FORMPAGES only reach correct value at the end of the form, then Smartforms update the already generated print data with this value ([Note 359009 - Postprocessing and query of the total number of pages|https://service.sap.com/sap/support/notes/359009]) so this field is not advisable to use in code node.

    Try to check the box "only before end of main window" in the condition tab, or define your window as a "late processing window"

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2010 at 08:44 AM

    Hi Friends,

    It works fine using Final Window.

    Thanks to all specially LOKESWARA.

    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.