‎2006 Sep 20 8:43 AM
Hi
I have 3 pages,and 2 pages has main window.
last page is independent to these 2 pages and it has only one window(not main window)
My question is i need to trigger that last page after 2nd page.
I did like
IF &NEXTPAGE& EQ 0
&NEWPAGE& = 'LAST'
ENDIF.
I have designed two pages which has main windows and in third page I get the terms and conditions
I am printing the Purchase order I have to print last page has terms and conditions. The problem is if i have one line item it should print in first page and then the next page should have terms and conditions and if line items exceeds more than two pages it has to print all line items and then terms and conditions has to print
Your help will be highly appreciated.
Thanks in advance
‎2006 Sep 20 8:53 AM
U can handle that via your print pgm.
print header.
loop at itab.
print item details.
endloop.
print terms&conditions.
If you follow the above it would print as you require.
‎2006 Sep 20 9:02 AM
i cannot make any changes in the print program. I need to do changes in the SAP SCRIPT form only
‎2006 Sep 20 9:47 AM
Hello,
U can try like this.
IF &NEXTPAGE& EQ 0
NEW-PAGE last
endif.
Please check and let me know.
regards