on 08-07-2008 10:40 AM
Hello guys!!!
i have a script with 2 pages.
i want a page to be printed with some text on it at the end of the script printing.
that means... if i've 3 pages of script , then i want a 4th page with some text on it.
i've tried &PAGE& EQ &SAPSCRIPT-FORMPAGES&
AND &NEXTPAGE& EQ 0
BUT, they did not work.
is there ny otherway we can achieve dis? or i did nything wrong??
i was writing the code at the end in the main window. shud i wrtite it somewer else??
how does this page printing works in the script.. some1 help
<removed_by_moderator> <= please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] here.
thnx
ziden
Edited by: Julius Bussche on Aug 7, 2008 12:02 PM
hi,
check this condition
if &nextpage& = 0.
/: new-page <page name>
endif.
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand... If your code is in MAIN window, why don't you just make a page break before it and it will always appear as last page. You don't need this IF NEXTPAGE ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you try out what I suggested? Does it work? If yes, why more concerns?
MAIN window is triggered only once. You see it triggered more times, because when the page is full, all other windows are triggered and after that MAIN window is continued from the point, where it reached the page end (just check the page number in debugging screen)
create a variable window and in that try
IF &NEXTPAGE& EQ 0
NEW-PAGE
ENDIF
With luck,
Pritam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.