Sapscript bottom text in Main, just for the last page, but printing only in the last page

I need to print a text but only for the last page in the main window.
I have tried with IF.
IF &PAGE& = &SAPSCRIPT-FORMPAGES&
BOTTOM
....TEXT
ENDBOTTOM
ENDIF
But it prints in all pages in every main window.
Can someone point me what I am doing wrong or how can I do this?
Regards,
Carlos

Hello Carlos,
the problem with this condition is the following.
The Sapscript composer cannot know during the processing of e.g. the first page,
how many pages will follow. So &SAPSCRIPT-FORMPAGES& still contains the same
value like& PAGE& and is filled with the correct values only at the very end of the processing.
(when the total number of pages is known).
So I suggest you to use the BOTTOM command in the print program,
when the processing of all item of the MAIN window is ended.
There is an other variable &NEXTPAGE&.  &NEXTPAGE& will always be 0
when it reaches to last page to print. The problem with this variable that
it can not be used in a condition in MAIN window too, only in a separate page window.
Regards,
Hedvig

Similar Messages

Maybe you are looking for

  • What are the benefits of Upgrading Apps 10.7 SC to 11i ??

    I am developing a small presentation for a client who uses Financial Management and Order Management suite under 10.7 SC. I am looking at the benefits that my client would get from upgrading: Here are the few points that I have come up with, AND I WO

  • How can I find out the serial number for my FCE 4.0 that came with my old MacBook Pro?

    When I try and open my old FCE projects on my new MacBook Pro, a dialog box pops up and asks me to input the serial number for my Final Cut Express program. The software came pre-loaded on my old MacBook Pro which died. Luckily, my local Apple store

  • How to edit Summary of Contents?

    I would like to edit the Summary of Contents of files I review.  The comments are mostly Sticky Notes and Highlights.  I want an end result that has just the page number, bookmark and note with all of them on one page, rather than separate pages. Is

  • Material Enqueue & Dequeue

    I hav designed a new application for store i wish to enqueue & dequeue  materials which store persons are using. So how can this be done.Please guide once i open any material in my applcation its locked untill i come out my application.I wishto unclo

  • Error packet

    how handling the errors in PL/SQL in order to show the errors from a packet thanks