on 01-24-2012 8:50 AM
Hi
I have copied the MEDRUCK sapscript to Zmedruck and created a last page and added one VAR window in it for printing Terms and conditions.
This page should print at the last of PO form.
I tried the following way :
Written the following code at the last of the main Window.
/: IF &PAGE(C)& EQ &SAPSCRIPT-FORMPAGES(C)&
/: NEW-PAGE LAST
/: ENDIF
But could not achieve to print the last page. Is there any other way to do this(WITHOUT MAKING ANY CHANGES IN DRIVER PROGRAM?).
Hi,
The standard MEDRUCK from has got two pages, First & Next.
It seems you have created a new page for terms & conditons. Make the new page as next page to the sencond page. You can do this in the page attributes.
Regards,
Vijaymadhur.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have checked the FM 'ME_PRINT_PO'. the subroutine 'ENDE' is responsible for closing the form.
In the perform ENDE, the element LAST of MAIN WINDOW is called.
I have checked the MAIN window of the MEDRUCK form, the element 'LAST' is called in the below fashion.
/E LAST
/: PROTECT
AS
AS
/: INCLUDE &T024E-TXGRU& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS&
/: ENDPROTECT
If you don't want to change the program, then you can use the element LAST.
Trigger the NEW-PAGE event after the above lines of code like below.
/: NEW-PAGE
Create a standard text for tems & conditions and call it here using INCLUDE statement.
In your new page, you should create a main window but not a variable window to achive this.
Hope this resolves your issue.
Regards,
Vijaymadhur.
User | Count |
---|---|
86 | |
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.