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

How to print a field on the last page of Smartform with more of 2 pages?

HI FRIENDS,

I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM

HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE

SFSY BUT NOT worked.

The form has more of 2 pages.

Thank you.

ROGERIO VAZ

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2008 at 12:31 PM

    hi,

    before the printing insert code lines

    and check sfsy-page = sfsy-formpages and set one flag ..

    i.e u are checking whethrer ur current page is last page

    to print that particular field in last page simply put that variable in text element and in condition tab check fr that flag ..

    hope it would prove useful to u

    regards,

    prashanti

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi, Prashant

      The counting is done and time of execution, debug I saw that the field formpage progresses along with the field page, I found that the field formpage would bring the total number of pages but not, it increases with the field page.

      You know another way for me to identify the last page of the form?

      Thanks friend.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2008 at 01:20 PM

    the window in which you have your element must be defined as window late. (i do not have an english version at the moment to be sure of the name). because SAP only knows the number of pages when the smartform has reached the end. after the end all pages will be executed again for the windows late. and at that time the pagecounter and total number of pages are working correctly.

    Regards,

    Guido

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2008 at 04:30 PM

    can you try this way.

    in your main window table in FOOTER event create COMMAND , in command general attributes

    check the checkbox GO TO NEW PAGE there you can use LASTPAGE.

    so you need to create one more page is LASTPAGE.

    Add a comment
    10|10000 characters needed characters exceeded

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

    HI,

    Try,

    If SFSY-PAGE eq SFSY-FORMPAGES

    Print u r text.

    endif.

    Otherwise.

    Check 'Only after end of the Main Window'

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi ,

    You dont have to hard code anything to achieve this functionality,

    just create a window and in that window define a text element to print

    that variable.In the conditions tab of that window check the check box

    "only after end of main window".i think you might have used a main window,

    so irrespective of the no of pages the smartform prints,it always displays that

    field in the last page of the smartform.

    regards,

    srikanth.

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi,

    Create a new window and select the option "only after end of main window".

    And here write ur variable to be print.

    Regards,

    adesh

    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.