Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Print Images in last two pages of Script

former_member386063
Participant
0 Kudos

Hello Team,


I'm in need of your help. I have a SAP Script. Script is printing the contents with header, main window, some additional windows and footer. Script has two pages: first-> next and Next --> next. When we run the script mail is triggered with the output as PDF. Requirement is:


Two payment guides (images) needs to be printed in the last two pages. Second last page should always ddisplay the payment guide in English language without header footer and other windows and last page should always display payment guide in Arabic language without header footer and other windows.

I have created a new page Pay_gui with a window(Pay_gui) in it. In this window I have inserted both the images(Payment guides in English and Arabic). I have written '/: NEW-PAGE PAY_GUI' in main window of First page. Page Pay_gui--> Next. (If pay_gui is not pointing to any page or if Pay_gui--> Pay_gui, mail is not getting triggered hence I have given Pay-gui --> next for time being).


Now the result which is coming is: 3 pages :


1st page with correct content in it.

2nd page with both the images (Payment guides in English and Arabic).

3rd page with remaining next page content (which should come in 2nd page)


Both the images coming on the same page without header and footer. But I need, Second last page should always display the payment guide in English language without header footer and other windows and last page should always display payment guide in Arabic language without header footer and other windows.


The print program for the script is standard print program so can't pass coding in write_form.

Please suggest a solution to this problem marked in blue.

Regards,

Titiksha

1 REPLY 1

sireeshach
Explorer
0 Kudos

Hi Titiksha,

Create 2 pages say page1 & page2, first page having payment guide in EN and the second page having payment guide in Arabic.

In the first page after the text, give the command as below.

/: NEW-PAGE page2.


Regards,

Sireesha Ch