‎2006 Aug 18 6:55 PM
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.
Your help will be highly appreciated.
Thanks in advance
‎2006 Aug 18 7:35 PM
you use trigger by using the following statement.
/: IF &NEXTPAGE& EQ 0
/: NEW-PAGE 'LAST'
/: ENDIF
You should not give the NEW-PAGE command with & sign
‎2006 Aug 18 7:35 PM
you use trigger by using the following statement.
/: IF &NEXTPAGE& EQ 0
/: NEW-PAGE 'LAST'
/: ENDIF
You should not give the NEW-PAGE command with & sign
‎2006 Aug 19 7:54 AM
Hi Sid,
Thanks for your Response,
Still not triggering the Last page.
‎2006 Aug 19 8:17 AM
May be the code for NEW page is in some text element and it is not being called,
Try the below option.
FIRST page attributes, set next page same as SECOND
SECOND page attributes, set next page same as SECOND
THIRD page attributes, set next page same as THIRD
Now in your print program, just before the close form
Call function module CONTROL_COMMAND, pass the NEW-PAGE as the command and new page as 'THIRD'.
The above function call will triger the independent THIRD page.
‎2006 Aug 19 1:07 PM
Hi Sid,
Iam using External subroutine,i dont have any FM .
Iam copying standard and iam adding one more page and iam including some Text.
No control form.
Thanks
‎2006 Aug 19 2:02 PM
One way is find the last write_form and its text element in the print program which is being called.
In Script go to that window and text element, at end of the text element call new page using
/: NEW-PAGE 'LAST'
‎2006 Aug 20 10:38 PM
You should not need any coding. For the LAST page set the 'LAST PAGE' attribute.
‎2006 Sep 20 8:09 AM
I am confusing with u r answer,How to set last page atribute in last page could you u please explain