Skip to Content

Print Images in last two pages of Script

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 22, 2014 at 10:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded