on 02-13-2013 5:20 AM
Hi techies,
I have an existing script with two pages 'first', 'next' and i am adding 'last' page to it consisting of a letter in the content.
I have not changed anything in the print program for this.
In page attributes this is the sequence of next page,
FIRST -> NEXT
NEXT-> NEXT
LAST->LAST,
when i give this way i get "Output is continuous or contains too many pages >6" error as the last page is called again and again.
FIRST -> NEXT
NEXT-> NEXT
LAST->Blank,
with this format i get "control form invalid , start_form missing error"
i tried giving
/: IF &NEXTPAGE& = 0
/: NEW-PAGE LAST
/:ENDIF
But nextpage value is never zero.It keeps on incrementing for everypage only.
Please help on this.
Hi
Control it with the parameters
/: IF &SAPSCRIPT-FORMPAGES& =&PAGE&
* here write it with the proper format.
/: ENDIF
I hope this helps you
Regards
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Eduardo Hinojosa,
Problem solved.. i included main window in last page too and gave the following condition for stopping the looping of last page.
IF &PAGE& GT &NEXTPAGE&
NEW-PAGE LAST
ENDIF
Now i need to stop printing the main window contents in last page alone .
Is there any system variable for finding the current page name,
so that i could keep a check on pagename to restrict it from getting printed in last page.
I tried ITCTH-TDPAGE, ITCTG-TDPAGE, SY_PAGENAME,
SFSY-PAGENAME . nothing worked
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.