cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Sapscript page content

Former Member
0 Kudos

Hi Experts,

I'm currently developing a Sapscript form where it should have dynamic content.

i have the header of the form and the body.

if the body is short, it can be be placed on the first page of the form.

if the body is long and goes off the first page, it should be totally removed from the first page and placed in the second page (or more). if this happens, there should be a note on the first page, saying "see next page". also, this should be created in a different spool. (there would be 2 spool jobs)

how should i tackle this problem?

Thanks in advance.

shockadis

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shockadis,

For the problem of having the body completely on the next page you need to place it between PROTECT-ENDPROTECT. you can place your text element of body inside this set of keywords. this will check if the data flows to the next page, then it starts printing from the new page itself.

For displaying the message 'See Next Page', if your header gets accomodated on the first page, check the condition that if total number of pages is more than one then display the message.