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: 

SAPScript: Do not print LAST page if NEXT page is empty

Former Member
0 Kudos

Hello,

I have a SAPScript with pages FIRST, NEXT, and LAST. The requirement is, if the content of FIRST does not spill over to NEXT, do not print the LAST page anymore. Is this possible to do?

Thank you very much.

2 REPLIES 2

Juwin
Active Contributor
0 Kudos

I don't think you have to do anything specifically for this, if you have defined your main windows correctly.

Thanks

Juwin

Former Member
0 Kudos

The last page does not have a main window, it's independent of the rest of the form, which is why we were having a hard time with it. My apologies for failing to mention this.

We've fixed it in any case, we just wrapped the START_FORM, OPEN_FORM, etc. routines in the Print Program with a condition to not call the LAST page if only the FIRST page has been printed.

Thank you very much.

Regards,

Marc