cancel
Showing results for 
Search instead for 
Did you mean: 

Last page in SAP Script

0 Kudos

Hi All,

I have a requirement of printing terms and conditions of PO on a new page of SAP Script.

I created a new page as LAST and called it through NEW-PAGE command from MAIN window.

On my LAST page I created 1 window, which calls Standard Text.

Issue I am facing is in spite of having data of more than 1 pages , print preview is displaying only 1 page of Terms and Condtions.

Can you please let me know what am I missing?

Accepted Solutions (1)

Accepted Solutions (1)

Florian
Active Contributor
0 Kudos

Hi shraddha,

you need to do that in your MAIN window. If you do that stuff not there, there is no automatic page-break.

If you already put it in your main-window, then you might miss to set a next-page for it.

~Florian

0 Kudos

Hi Florian,

If I call my standard text in Main Window,it will show all the text in all the main window, but I want to display it in a separate page without any contents from Main window. The NEW-PAGE is calling the last page but its getting triggered only once and it does not display all the contents.

Florian
Active Contributor
0 Kudos

Yeah,

I know what you want to do. At your last page, just design your main window all over the page. So the your text, does have a chance to print on the next page too.

Another solution will be, to just call your last page, create another page and trigger both. Of course, you have to split up your text into two , so you can switch at the specific page.

~Florian

0 Kudos

I tried both the ways, its not working, only displaying 1 page of terms and conditions.

Is the only option available is to make a Z copy of Standard Driver program?

Florian
Active Contributor
0 Kudos

Hi Shradda,

you also can just add an additional processing.

You know, something like

/: PERFORM 'YOUR_ROUTINE' IN PROGRAM 'YOUR_PROG'

/: ENDFORM

See here: https://help.sap.com/saphelp_crm700_ehp02/helpdata/en/4e/34f87463de02c2e10000000a15822b/content.htm?...

But in my opinion it is the best to make a copy of the original because I'm pretty sure, there will be more additional requierements in the end and just to enhance or to use this technique is very hard to understand after the second implemented spot

Can you share your stuff how you tried it?

I mean, calling two sites in a row should definitv work fine.

/: NEW-PAGE 'LAST1'

/: NEW-PAGE 'LAST2'

I tried it on my own and it works perfectly fine...

Did you gave your last-page a followpage while testing the first suggestion? That is of course a must-have.

~Florian

0 Kudos

Hi Florian,

Its working now.

earlier there was 1 condition which I was using in LAST page: IF &NEXTPAGE& EQ 0. before calling the standard text due to which it was not working. Now i removed that and tried again and its working.

Thanks a lot for you help.

Answers (0)