‎2006 Jan 09 3:21 PM
Hi,
I am having some problem with the new-page command.
I have 3 pages in my SAPScript. The main window overflows from page one to page two. I don't have any problem till this point.
In the footer window I am putting the following code and it does not call the third page.
/: IF &NEXTPAGE& = 0
C2 HELLO HOW ARE YOU DOING???
/: NEW-PAGE TH1
/: ENDIF
It prints the text in the last footer but it never calls the third page TH1.
Am I doiong anything wrong? or do I need to do take care of something.
Please help ASAP.
Thanks..
Venu (Intelligroup)
‎2006 Jan 09 3:28 PM
Hi,
I second page <b>NEXT PAGE</b> attribute have you put THIRD page name.
Check that.
And give
IF &NEXTPAGE& EQ '0'.
NEW-PAGE.
Code----
ENDIF.
Try and see wether it works.
‎2006 Jan 09 3:36 PM
I can't do that, because the main window in second page over flows onto many pages which is dynamic. After complete the main window then I have to call the next page.
‎2006 Jan 09 3:42 PM
‎2006 Jan 09 3:43 PM
‎2006 Jan 09 3:45 PM
The condition here for me is not to touch the print program at all.
Actually my problem is explained more clearly at:
Please refer the forum question 'SAP Script: Printing the signature on main window at the end'.
Thanks.
Venu
‎2006 Jan 09 4:06 PM
I think the NEW-PAGE command works only for the MAIN window. just try using the same in main window n chk.
pl acknowledge if it helps.
Regards,
Bikash
‎2006 Jan 09 4:09 PM
I can't put this in the main window because the value for &NEXTPAGE& will never be zero.
Thanks.
Venu
‎2006 Jan 09 6:31 PM
but u can always execute new-page command in the main window by putting it in a text element and then calling this element from the program after ur loop( items in the main window) is over .
Regards,
Bikash