on 07-25-2008 8:40 AM
Hi all.
I have a smartform with table and a template after it. And if the template does not fit into the page, on which the table ends (then is transferred to the next page), i also need to transfer the last line of the table to the next page as well. The point is that template cannot be separated from the table and the page which contains the template should also contain at least one line of the table. How can it be solved?
TIA, award for helpful answers guaranteed.
Nikolai.
Hi,
One idea ...
why dont you incude the last line of the table as the first line of the template.
use program lines in which first determine the no of lines of the table.
then print the table data upto the second last line.
then use before the template another program line wherein you transfer the last line data of the table into a similar structure and then print it in the template as the first line.
A bit tedious ...but there is no other way...
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this...
in the main area of the table add a program lines.
in the program lines add this code.
increment a v_index with each loop
if v_index = lines( your_table)-> that is at last line
if &SFSY-PAGE& = &SFSY-FORMPAGE& - 1
v_flag = 1.
endif.
endif.
after program lines add a conditional page break.
giving the condition v_flag = 1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this
Go to your table layout and drag down the last row. I mean to say increase your last row height. So automatically the last line data flows.
Jus try this and let me know if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.