Last page in forms

Hi,
I have a requirement in script where there are three pages First page,Next page and Last page.
I have added the pages in this manner.
First page's next page is the Next
Next page's next page is the Last
Last page's next page is the Last.
but the last page is not getting printed.
Please suggest if I am doing anything wrong.
Thanks.

Hi Dolly,
Refer Re: Last Page problem on smartform
Cheers,
Pravin S

Similar Messages

  • Secondary window to be printed on the last page the form

    Hello,
    Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?
    Only 1 page is defined in the smartform for the layout.
    e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.
    Thanks and Regards,
    Paresh

    >
    paresh rane wrote:
    > e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. 
    > Paresh
    put a counter on which you are getting the line items.
    for the last page, the counter should be equal to the number of line items in the table .. right?
    so.. keep the number of records in another variable, lets say in the global initialization part.
    and for the secondary window condition tab
    keep
    counter = gv_number_of_lines
    only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

  • How to print a field on the last page of Smartform?

    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
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • 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

    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.

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • Print Footer Window of PO Form at end of Last Page of PDF Forms(Adobe)

    Hi,
    I am trying to print PO form using PDF form which includes multiple line items. At the end of last page I am trying to print the footer window that contains Comments and Signature.
    Right now my Footer Window is being printed immediately after the end of line items.
    I have included the Comments text box and image inside a Sub Form.
    Please let me know how to print the Footer window at the end of the page instead of printing immediately after the line items.
    Thanks,
    Rekha

    Hi,
    Please take the footer subform from the tables section and position it on the page where u want to print and write the script so that it will print only on last page.
    Regards,
    sasi

  • Over flow issue while printing footer in last page in PDF forms

    Hi,
    Could any one let me how to display footer in last page only at end of page reserving 5cm of space.
    I have designed my form with two pages:First Page and Next Page in Master Page
    Body Page contains table details and some texts after the table lines.
    First and Next Pages has footer(5cm) at the bottom.
    If Page <> Last Page,footer is not displayed.
    If page = Last Page, footer should be displayed at the very end of the page
    I have a table with multiple line items. If the line items end in First page the footer should be displayed at the bottom of the page. If the line items flow to the next pages footer should be displayed in the last page only. Next pages should be using the footer space at the end of each page if it is not the last page.
    If the positions are wrong can anyone suggest the position of the footer space and how to stop overflow of the line items onto the footer

    You have to place the footers in 2 main windows.
    write script to hide the footer if the current page is not last page. Use below script to find the total number of pages and current page in layout:ready event.
    Var no_of_pages   =   $layout.pageCount (  )
    Var curpage = $layout.page  (  ref  (  $  )  )

  • Print on the last page of a Sapscript form

    Hi,
    Is it possible (and how) to print something (a filed of an internal table) only to the last page of a sapscript form?
    Thanks

    Hi
    if you want to print something at the end of a page....
    You can write it as this...
    in the main window...
    in the data element write it...
    /E END_DATA
    /: IF &PAGE&  EQ  &SAPSCRIPT-FORMPAGES&.
    &W_VALUE&.
    /: ENDIF.
    SAPSCRIPT-FORMPAGES variable is a system variable which stores the total pages.
    PAGE variable stores the current variable accordingly it will check for last page and print it.
    Now call it in the driver program .
    Regards.

  • Printing Footer Only on the last page of adobe Form

    Hi Experts ,
    I have a requirement of printing text only on the last page of the adoe Forms.
    I know how to do this in Smart Forms , but being a novice in adobe forms i am unable to get the exact place to puth these conditions.
    Please reply ASAP.
    Thanks

    Thanks .
    Problem Solved.
    Here is the Code snippet in Formcalc language that i used in the intialize event
    var curpage  = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    if ( curpage ne totpages ) then
    $.presence = "hidden"
    endif

  • How do I determine whether the current page in Forms is the last page.

    I have a requirement of printing amount in words using SPELL_AMOUNT Funtion Module, in SAP Scripts.
    When I have only one Item Line, I am able to successfully, print the amount.
    The moment i have line items pouring to the next page, I see that the I am unable to retrieve the spelled amount from the Function Module.
    I think may be i need to find out if the current page is the last page, and if it is so, print the amount on the last page, .i.e., the page where the item lines have overflowed to. How do i find this out.
    Can anybody, suggest something.
    Regards,
    Owais...

    I wonder if you could do something like this.  Wrap your logic with this IF statement.
    /: IF &PAGE& = &SAPSCRIPT-FORMPAGES&
    /: ENDIF
    Regards,
    Rich Heilman

  • Problem regarding printing in first and last page of a form

    I need to print a some text only in the first page and last page. I have defined a window to print this text. The number of pages that will be created is decided on run time. Can some body please help regarding this issue. I have tried to use SFSY-FORMPAGES to calculate total number of pages in the begining but it does not work
    Edited by: subhajit bhadra on Feb 20, 2009 7:44 AM

    Hi Badhra,
    You can use conditions for that window or text element.
    in conditions, tick 'only befor main window' forr header
    and 'ONly after main window ' for footer.
    Sunil

  • Smart forms text to appear on last page

    Hi,
    I want signature text to appear on the last page.How we can acheive it.
    Regards,

    keep the signature in a separate window.
    put condition as
    SFSY-PAGE = SFSY-FORMPAGES
    that means the current page equals to total number of pages, that means the last page..

  • Printing text on last page of adobe form

    Hi abapers,
    My requirment is that i have to print a particular text in the footer.
    But this has to be printed only on the last page.
    how do i go about doing this.
    thanks in advance.

    Hi Aditya,
    Give the condition as.
    If &SFSY-NEXT-PAGE & = 0.
    print what text u wanna to print.
    endif.
    Best Regards,
    Flavya

  • A window to be displayed in last page In smart form

    Hi,
    I have to  display a window in last page  . Its actually like a footer in which some information is diplayed.
    so this footer shud be displayed in last page. Kindly any one guide me regarding this issue.
    Thanks in Advance
    Regards,
    Neelima.

    Hi,
    u can do this by using some concept......
    1. draw the main window upto the bottom where the footer is supposed to be....
    2. draw the footer window as secondary window overlapping the main window at the bottom.
    3. set the footer window event as 'Only after end of main window'.
    4. in the main window create ur table...
    5. In the footer of the table set Footer with height = 'same height as the footer secondary window'.
        tick the 'at end of table' and untic the 'at page break'.
    6. add a blank line type with blank text element(only few enters) on footer of table...
    7. In the table line types. press details and tick the 'no page break' for the footer line type.
    this will do the trick....
    what happens here is, the footer window will only print at the end of the main window...if the main window ends at the bottom, then it will check whether there is space for the footer...if no space is available then it will go to the next page.. otherwise it will print the footer of the table (which is blank) and then print the footer window over it(which is of the same height as the table footer)...

  • Terms and conditions not getting displayed on the last page

    Hi All,
    I have to display a smartform, on the front side of the page i have to display material details and on the back side of the page i have to display terms and conditions. I' am unable to print the material details and terms and conditions in duplex mode, but on the last page only material details are getting displayed, terms and conditions are not getting displayed.
    Can you please help me how to make the terms and conditions get printed on the back side of the last page.
    Thanks,

    I'm a bit confused by the statement "I' am unable to print the material details and terms and conditions in duplex mode".
    I suppose you meant to say "I am able to print the material details and terms and conditions in duplex mode", correct?
    If the problem is that on the last form page, the T&C is not getting printed on the back of the form, you could force the T&C page by using a flow logic command as the very last element of the main window, which gets processed when all the data is already output. For the command, use the 'Go to New Page' and specify the page name for the Terms & Conditions.
    In case this causes an issue that the last page is printed twice (since the T&C page is likely defined with the next page being NEXT_PAGE), then copy the already existing T&C page, call it LASTPAGE and leave the Next Page attribute empty.

Maybe you are looking for

  • Data selection tab from Info package.

    dear all, I'm using BI7 for my project. I have 1 simple question, how do you un-select a data target from the data selection tab? e.g. in the data selection i have 2 DSO 0DSP_1 and ZDSP_1... how do i remove DSO 0DSP_1 from the selection tab?

  • An error occurred (-65540) while connecting to the AirPlay device

    I get the following error when connecting to AppleTV on my Macbook Pro.  An error occurred (-65540) while connecting to the AirPlay device.  When I click on "mirror display" my desktop image flashes up on the AppleTV then disappears, the error is the

  • Image gateway doesn't seem to be working...

    When I tried to login to image gateway (for the first time...I've never used it before) it says communication error(?) Not sure why

  • Large insert op into table with indexes

    Hi, Oracle 8.1.7.0. Empty table (after truncate) with two indexes. Need to insert about 40 billions records. What is better way to complete this task: 1. Drop indexes, insert data then build indexes. 2. Simply insert data into table. Thanks.

  • FF 3.6.3 check boxes don't work well

    When I check the check box such as the one below in this Ask a new question, it takes several tries before it sticks. Before, I can easily tab and hit space bar, or use the mouse. Now it seems to be stuck or missed. FF 3.6.3 unfortunately seems buggy