cancel
Showing results for 
Search instead for 
Did you mean: 

Last Page requirement is SAP script

Former Member
0 Kudos

Hi All,

My requirement in SAP Script is like follows:

1) First page should come only once

2) Second page should come if tables on first page overflows and should keep on repeating till data ends.

3) Last page should always come that is having terms and conditions on it.

Can anybody please explain what all settings i need specially for last page?

First two pages are coming fine but i m not able to handle last page .

Thanks & Regards,

Atul Patil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

One option is check if &PAGE& = &SAPSCRPIT-FORMPAGES&, that means it is the last page, then, you can print your TERMS & CONDITIONS text after a

new-page command.

Regards

Subramanian

Former Member
0 Kudos

Hello All,

Thanks for your instant replies.

I think now i will be able to solve my problem withthe help of ur suggestions.

Atul.

Former Member
0 Kudos

Hi Atul,

<b>write this code then the terms and conditions will be printed in last page itself

/: IF &NEXTPAGE& EQ 0

.......................

terms and conditions code write here

...................................

/: ENDIF </b>

Former Member
0 Kudos

Hi,

You can include the comany NEW-PAGE LAST_PAGE.

In last page you can have terms and conditions.

Former Member
0 Kudos

See i had requirment that Page containing Terms and Condition should be printed when Email program is triggered. Means when ZEMAIL program is run PDF document is generated. To this document it should have terms and condition. It was coded like this.

/: IF &TNAPR-PGNAM2& = 'ZEMAIL2'

/: NEW-PAGE SUMMARY

/: ENDIF

This was coded in Main window of next page.

SUMMARY is the name of the page containing Terms and condition.

In SUMMARY page Standard text object was included in which terms and condition were present.

Hope this helps you.

Regards,

VMMAgadi

Former Member
0 Kudos

HI ALL,

I WANT TO DISPLAY 3RD PAGE CONTAINING INSTRUCTION WINDOW. 3RD PAGE SHOULD GET PRINTED WHEN MAIN WINDOW ON THE FIRST PAGE FLOWS ON THE SECOND PAGE OR WHEN IT DOESN'T FLOWS.MY LOGIC WAS NEXT PAGE FOR FIRST PAGE IS PAGE 2 & NEXT PAGE FOR PAGE 2 IS PAGE 2 ONLY BECAUSE IT SHOULD FLOW WHEN MAIN WINDOW FLOWS.AFTER ALL THIS I WANT TO DISPLAY THIRD PAGE WHICH CONTAINS INSTRUCTION WINDOW.

I AM NEW TO ABAP. CAN YOU PLEASE GIVE ME SOLUTION IN DETAIL.