This website is not affiliated with, sponsored by, or approved by SAP AG.

Terms & Conditions as Last Page in SAP Script

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Terms & Conditions as Last Page in SAP Script

Postby shails81 » Tue Jun 19, 2012 7:03 am

Hello All,

In the script form, i need to add a last page which prints the Terms & Conditions.

I created a new page called LAST and created a Variable Window to display the same. I deleted the MAIN Window in the LAST Page. Now, from the MAIN Window in NEXT Page I am calling the LAST Page. But, this results into an infinite loop and SAP Script terminates the output.

The reason is because of the recursive call (LAST -> LAST). Can somebody guide me how to end this loop or a workaround to this issue, so that I can print the Terms & Conditions as the Last Page?

Page Sequence:
FIRST -> NEXT
NEXT -> NEXT
LAST -> LAST

Regards.
shails81
 
Posts: 14
Joined: Mon Sep 07, 2009 3:11 am

Re: Terms & Conditions as Last Page in SAP Script

Postby Gothmog » Tue Jun 19, 2012 7:35 am

shails81 wrote: I deleted the MAIN Window in the LAST Page.

Why?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Terms & Conditions as Last Page in SAP Script

Postby shails81 » Tue Jun 19, 2012 7:46 am

Reason to delete MAIN Window:

As it contains tables with columns which i do not need in the last page.
shails81
 
Posts: 14
Joined: Mon Sep 07, 2009 3:11 am

Re: Terms & Conditions as Last Page in SAP Script

Postby Gothmog » Tue Jun 19, 2012 8:01 am

Without a MAIN Window, you can't have LAST->LAST in the page sequence - try leaving the subsequent page blank.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Terms & Conditions as Last Page in SAP Script

Postby shails81 » Wed Jun 20, 2012 7:30 am

The issue has been solved. I had to change the type of Window from Variable to MAIN. And from the the MAIN window of NEXT PAGE i call the LAST Page (with only MAIN Window in it). Using Variable Window in LAST page doesn't seem to work.
shails81
 
Posts: 14
Joined: Mon Sep 07, 2009 3:11 am


Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 2 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.