‎2005 May 09 2:14 PM
Hi,
I am getting the error message 'Avoid explicit page breaks within tables' when I use the command option to have a page break. This is inside the MAIN window and a table. Inside the table I am displaying many lines. After processing each record of the internal table, which is attached to the smartform table, I want a page break.
Please let me know how this can be achieved?
Thanks
Vinod
‎2005 May 09 2:32 PM
Hi,
Check this whether this suits your requirement..
http://www.sapgenie.com/abap/smartforms_detail.htm
Refer standard programs sf_example_01 and sf_example_02.
Rgds,
J.Jayanthi
‎2005 May 09 3:08 PM
Yes it is possible.
Create the node called "Command" after each row.
Check the "Goto new page" option and specify teh page layout name.
Hope this helps.
Remember to reward the post that answers ur question.
PP.
‎2005 May 10 6:59 AM
Hi Prashanth,
This option I have already tried (pls see my first mail) and exactly there I am getting error. Because page break is not allowed inside a table node. Any other alternative?
‎2005 May 10 8:00 AM
Hi.
You cannot use page breaks between table.
But the command can be implemented in " Loop " Statement.
Insted of creating a table You can Create a Loop And incorporate the same logic in it. in Loop You can use explicit page Break Command.
I guess this will solve that problem.
bye.
‎2005 May 10 8:08 AM
Hi Sravan,
I have used almost the same logic and it worked.
I have included the table inside a LOOP node and passed one row at a time to the table. After processing each row, I called a page break.
I have used TABLE for formatting purpose.
Thanks
‎2007 Jan 25 6:03 PM
I am not sure how it is possible to pass one row at a time into the table from the loop. How did you declare the internal table for the loop and the internal table for the table formatting. I really doubt you can do that.
‎2006 Jun 28 10:49 AM