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: 

Terms and Conditions at Last page in Script

Former Member
0 Kudos

Hi SDN's,

How can we print Terms and Conditions at last page in the script form with out modifying the print program?

Right now i have FIRST and NEXT Pages... I have created LAST Page and one window with Terms and conditions( Using Standard text-SO10). But i am unable to print this last page...

What r the steps i need to take to get print this in the last page...

Please help me..

Thanks in advance...

Regards,

Rahul

2 REPLIES 2

Former Member
0 Kudos

Hi,

In MAIN WINDOW of First Page ...write at end like

IF Terms = 'X' ( variable to check whether T & C available or not )

NEW-PAGE LAST

ENDIF.

Reward if useful

PRa

juan_suros
Contributor
0 Kudos

Rahul,

The easiest way is to create a page with a MAIN window that covers the entire printable area of the page. Determine which is the last text element called in the standard print program before the CLOSE_FORM command. Insert the following command into this text element:

/E   TERMS_AND_CONDITIONS
/:   NEW-PAGE TCS                                                          
/:   INCLUDE 'ZT&C_ENGLISH' OBJECT 'TEXT' ID 'ST' LANGUAGE 'EN'

In this example, text element TERMS_AND_CONDITIONS calls page TCS, then writes the contents of standard text ZT&C_ENGLISH into the MAIN window of this new page.

Standard texts are created and maintained in transaction SO10. They can easily hold an entire page of "fine print" like a Terms and Conditions statement.

Juan Suros

Kyocera