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

Page Break Issue in Smartforms

akshatrander1990
Explorer
0 Likes
2,750

Hi All,

I am facing problem in page break.

We have two pages in a smartform. Both Pages are having different header and item details.

While using page break in the first page main window. The main window of the second page is not displaying but the header details are displaying.

Please help me in resolving it out.

Regards

Akshat

11 REPLIES 11
Read only

thangam_perumal
Contributor
0 Likes
2,604

Hi Akshat,

                 Please check whether you have given any condition on Main window?

Read only

0 Likes
2,604

Hi Akshat,

Were do you want to apply the page break, please elaborate.

Read only

0 Likes
2,604

Hi Thangam,

We have not given any condition on main window,

Regards

Akshat

Read only

0 Likes
2,604

Hi Shadab,

I want to apply the page break after the end of first page main window.

Regards

AKshat

Read only

0 Likes
2,604

Hi Akshat,

Is there a table in second page main window.?

You can set the page break here for your table please check the screen shot(choose the correct line type here which you have used in your main body).

Read only

0 Likes
2,604

No, those checkboxes control something entirely different - whether or not the contents of that table row can split over two pages on pagebreak, or if the row in its entirety should appear on the next page.


Once again, this time from the SAP Help:


Main Window on Several Draft Pages


Even though only one main window per form is allowed, you can copy it to several draft pages. Each main window then points to the same output control. You use this technique if you want the pages on which a table with items is printed to have different layouts. Height and position of the main window may differ on the different pages, but the width must remain the same throughout.


One can either have the same main window copied to all of pages of the form, OR one can have several, differently named main windows, but then the main windows on second and subsequent pages must not have any content assigned to them. If there is content assigned to second and subsequent differently named main window, it will not be output.

cheers

Janis

Read only

Private_Member_7726
Active Contributor
0 Likes
2,604

Hi,

There can only be one main window with contents defined per form. So on the second page you can only change the attributes of main window like position, height (but not width!), shading, etc.

cheers

Jānis

Read only

Former Member
0 Likes
2,604


Have you checked output without any page break. Please check once.

BR,

Prakash

Read only

Former Member
0 Likes
2,604

u have to share the MAIN window defined over the pages

so for example - group your logics/templates/tables etc in folders - and apply a condition on the folders - depending on the page number

i.e.

if &SFSY-PAGE& = 1

if &SFSY-PAGE& # 1

etc


this way you can control what elements in main window get printed on which page

Read only

Former Member
0 Likes
2,604

Hi go to properties on Window for soltion

Read only

thangam_perumal
Contributor
0 Likes
2,604

Hi Akshat,

               Have you Resolved the Issue?

Regards,

     Thangam.P