cancel
Showing results for 
Search instead for 
Did you mean: 

Line

Former Member
0 Kudos

Hi,

In the <b>main</b> window, for last page i need to draw a vertical line of 10 cm and for the rest of the pages i need to draw the vertical line of 15 cm. But if the number of pages are only one then i need a vertical line of 10 cm only. So,

to achieve this i am writing the logic as:

/: if &sapscript-formpages& eq 1

/: box xpos 'x' ypos 'y' width '0' cm height '10' cm frame 5 tw

/: endif

/: if &nextpage& eq 0

/: box xpos 'x' ypos 'y' width '0' cm height '10' cm frame 5 tw

/: elseif &nextpage& ne 0

/: box xpos 'x' ypos 'y' width '0' cm height '15' cm frame 5 tw

/: endif

But this logic in the main window is not working ok in my testing. For a two page form, vertical line is of 15 cm in both the pages. but i required 15 cm line for the first page and 10 cm line in the second page(last page).

I have created two pages. page1 and page2.

i gave next page for page1 as page2 and for page2, page 2 itself.

Any clue for this problem.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can do one thing. Declare a variable. set this variable equals to 'X' before printing totals or at the end of main window. Give conditions like this:

/: if &variable& EQ 'X'

/: box xpos 'x' ypos 'y' width '0' cm height '10' cm frame 5 tw

/: else

/: box xpos 'x' ypos 'y' width '0' cm height '15' cm frame 5 tw

/: endif

In this case the value of the variabe be detected only when the grandtotal will be printed and the value of variable will be set.

If it is helpful assign points.

Asvhen

Answers (0)