Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms explicit page breaks

Vinod_Chandran
Active Contributor
0 Likes
738

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

7 REPLIES 7
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
689

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

Read only

Former Member
0 Likes
689

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.

Read only

0 Likes
689

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?

Read only

Former Member
0 Likes
689

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.

Read only

0 Likes
689

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

Read only

0 Likes
689

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.

Read only

Former Member
0 Likes
689

Hi Vinod,

did you solve this problem of page break