Skip to Content
0
Former Member
Nov 06, 2012 at 07:07 AM

manual page break problem in a table

33 Views

Hi,

I'm having some problems with the page break in my smartform. I have an internal table (I_MAT) from the data retrieval program which is passed to the Smartform. Now depending on some conditions I either need to print the data in a new page if the material number changes. What I did is I have a Table in my smartform which loops around the internal table (I_MAT). I have also inserted a code which checks the necessary conditions and marks a flag (v_flag) if the conditions are met and there is a new material. I have inserted a command node inside the table which checks the flag. If it is mark it will go to a new page.

The data is being printed in a new page however my problem is that the lines (vertical lines) I have designed for the table in page 1 is messed up. Instead of just stopping at the last record printed in page 1 the lines are displayed until the end of the page. I have tried removing the page break code and allowing smart form to do its own page break by increasing the number of records in the internal table (I_MAT) and the output is OK. This only happens if I do the page break manually. Is there a solution to this? Or is my approach to the problem incorrect? I'm using ECC6. Please help. Sorry for the long post. Thanks in advance.