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

Tables in smartforms

Former Member
0 Likes
1,100

Hello Gurus, i am printing many tables in a smartform. The problem is that when the page changes i have half of a table o the first page and another half on the second page. Can i set the table to be unbreakable, i mean that if there is no space on the current page the table should be printed on the second page.

I will reward points, please help it`s urgent.

Hello Gurus, i am printing many tables in a smartform. The problem is that when the page changes i have half of a table o the first page and another half on the second page. Can i set the table to be unbreakable, i mean that if there is no space on the current page the table should be printed on the second page.

I will reward points, please help it`s urgent.

9 REPLIES 9
Read only

Former Member
0 Likes
1,063

Hi Constantin,

You should include the Tables Element under a Page. YOu have a Checl box for the node for Page Protection. If you check that, data will always be on a new page(As per your requirement).

Regards,

Ravi Kanth Talagana

Edited by: Ravi Kanth Talagana on Feb 20, 2008 11:02 AM

Read only

0 Likes
1,063

Hello, thank you very much for the quick answer. The Page protection is inactive, can`t check the checkbox. Do you how can i activate it or what is the problem ?

Read only

sreelatha_gullapalli
Active Participant
0 Likes
1,063

hi

i think we can't do like that because we will mention size and all know?

regards

sreelatha gullapalli

Read only

Former Member
0 Likes
1,063

Hi,

It was easy with SAPscript, but how to do it with SF's. For 4.7 version if you are using tables, there are two options for protection against line break:

- You can protect a line type against page break.

- You can protect several table lines against page break for output in the main area.

Protection against page break for line types

- Double-click on your table node and choose the Table tab page.

- Switch to the detail view by choosing the Details pushbutton.

- Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.

Protection against page break for several table lines

- Expand the main area of your table node in the navigation tree.

- Insert a file node for the table lines to be protected in the main area.

- If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file.

- Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page.

In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page.

Regards,

Bhaskar

Read only

0 Likes
1,063

Thank you for the answer but the header, of the table, and the footer are in separate folders (files) and are shown on different pages. Is there no possibility to show the hole content of the table on only one page ??

Edited by: Ioan Constantin on Feb 20, 2008 1:58 PM

Read only

0 Likes
1,063

Hi Ioan,

Instead of giving the footer inside the TABLES element, create a window just below the window at the bottom such that it will print at all pages and in the corresponding page without problem.

Reward points if useful.

Thanks,

karthik

Read only

0 Likes
1,063

I need the table full, including header and footer. At page break if there is no space for the table, including header and footer, it should be printed on the second page, the table must not split.

Please anyone help ! I will reward points !!!!

I have posted 3 weeks ago on Form Printing category but no answer !

Edited by: Ioan Constantin on Feb 20, 2008 2:12 PM

Read only

0 Likes
1,063

I guess the reason the table can't be page protected is because the Smartform doesn't know until runtime whether the table is too big for the page area you're putting it on.

If you know which pages the tables are likely to be on, you could maybe create yourself some ABAP code (rclick on main window in navigator -> insert->flow logic->program lines) and in there describe the table.

Then in your table's "Conditions" tab, you could add the condition that the total number of lines wasn't greater than the allowed number of lines.

Just a thought - and it's kind of a workaround but hope it's useful.

Read only

0 Likes
1,063

Yes you`re right, but i thought that the smartform can do this, because i have more that one table in the page (including header and footer) the number of lines that can be printed on one page it`s not always the same.

But i think that there is no other way.

Edited by: Ioan Constantin on Feb 20, 2008 2:37 PM