cancel
Showing results for 
Search instead for 
Did you mean: 

terms and conditions in the last page of sapscript

Former Member
0 Kudos

Hi friends,

I have a problem is sapscripts.There are 2 normal pages of PO layout.Now the requirement is to get 2 pages of terms and conditions after the last page of PO.The pages tht i defined are-:

first,second and terms.

the next page of first is second and next page of second is second and the nextpage of terms is terms.second page and terms page both have the counter mode as increment .

I wrote the NEW-PAGE command in the last element of main e of window that is getting triggered.

Now the terms page is getting triggered at the right place but , the problem is only 1 page of terms is getting triggered whereas the remaining information of the terms page is not coming as the next page.

The terms page contains 3 windows : main,termsl,termsr.termsl has a stnd text and termsr has a stnd text in which the terms and condition infm is written.When the infm gets overflow from these windows i m supposed to get another page of terms in the output which i am not getting.Hope u understood my problem.

Please help me in this regard .

Thanks and Regards,

Sakshi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi sakshi,

u need to create another form and make the page as a variable page and in the main form call the Forl containing the Last Page details using the code:

code:

CALL START-FORM.
                             "Call the Last page within this code


CALL WRITE-FORM.

CALL END-FORM.

thanks

ravi

Former Member
0 Kudos

HI,

You have an option for this :

create another form and call the form at the end of the of your form.

Example:

zscript1 is one form you have.

create zscript terms and conditions.

i.e. write the terms and conditions in the main window of the zscript terms and conditions form and call it by FM start form and end form in the driver program ,

this is because you cannot have different main windows in scripts and you cannot trigger the new-page from the variable window.

Finally you will have 2 scripts one is for data display and the other for terms and conditions.

this will definitely work for you.

thanks

sarves

Former Member
0 Kudos

HI,

Only MAIN window can trigger if the data in this window overflows, Varible window doesn;t have this property. You need to print the Terms and condition in Main window instead of Variable window.

Instead of using the termsl,termsr You can use the Template in the MAIN window for sepearting right and left.