Table footer when page break in smartform

I put a table component into a loop control, and in the table footer, there are some texts in several lines and a command component.
the problem is that, when there's not enough space to print the whole table footer texts in one page, the extra part of will be output in the next 2 pages.
for example, I suppose  there are 3 pages totally. and for the first page, it's all right about the main window. when there's no enough space, the footer is still output, the rest is printed on the 2nd page. but on the 3rd page, the footer texts in the 2nd page is output again and followed main windows on the 3rd page.
Could anyone help? Thank you in advance.

Hi,
Create a folder for that window and set page protection.
Regards,
Prashant
Message was edited by:
        Prashant Patil

Similar Messages

  • How to insert a page break in smartform

    hi all
    i have to print only ten records per page. Is there anyway to insert a page break in smart forms?????

    hi
    To insert a page-break you have to Create a Node Called COMMAND.
    Here you can Specify a Different PAGE as next page if u want.
    Smartforms: protect lines in main window.
    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.

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • Dynamic tables and conditional page break

    I have inserted a table in my form and have included an Add New Row button to insert additonal rows.   I want a maximum of 16 rows added with a subtotal field.  I want the table, then to automatically go to a new page with a subtotal field.  At the end of all pages I want to include a total field.   The table goes to the next page after a number of rows are entered, but there is not a break;  the original form continues.  How do conditionally break the page and have a (new) table display in the second page?
    Thanks for your help.

    Hi Paul,
    Thanks for working with me on this.   I have sent a copy to the gmail.com address.  I'm new to LiveCycle, so please forgive me.
    Date: Thu, 29 Jul 2010 09:18:53 -0600
    From: [email protected]
    To: [email protected]
    Subject: dynamic tables and conditional page break
    You can accomplish that with a single table and some creative script. I suggest that you get the table worked out and working correctly then we can add in the page totals and final total afterwards. Once the table is ready email the form to mailto:[email protected] and I will put together a sample for you that shows what to do. Please include a description of what you want to do with the email as the mail message and this forum are not tied together. Also if you have a data file  that fills out the table that would be useful as well.
    Paul
    >

  • Page break for Smartform with multiple main window on pages

    Hi Experts,
    I have a requirement for printing 3 pages. The difference among the 3 pages is the main window part.
    The main window contains not only internal table, also complicated texts like payment instructions etc.
    The requirement is in each page, the data in internal table should be changed, also payment instruction should be changed accordingly.
    e.g:
    Main Window of Page 1
    Part 1 for Internal table
    VAT on ITEM ------- 4O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 1
    Main Window of Page 2
    Part 1 for Internal table
    VAT on ITEM ------- 5O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 2
    Main Window of Page 3
    Part 1 for Internal table
    VAT on ITEM ------- 6O-------60,00------0.00%-------EUR
    Part 2 for Payment Instructions
    Texts for Page 3
    At first, I was using only one page 'Page1' with a variable page_no = 1 as default value, and use program line page_no = page_no + 1 as counter. when page_no = 2, use command for force page break to 'Page1', then under the command, change the internal table and payment instruction texts. when page_no = 3, ...
    But I encountered an error saying:
    Runtime Errors         GEN_BRANCHOFFSET_LIMIT_REACHED
    Short text
         Jump distance is too large and cannot be generated.
    So I created 3 pages, with different main window M_window1, M_window2, M_window3 for each page. In page1, after printing the M_window1, page_no = 2, use command to go to page2, but page2 is never printed. I think this is because only one main window can exist in a smartform? but why smartform allows creating individual main window for different pages? what's the use of such main window?
    By the way, what's the use of command for force page break? only work for one main window in a smartform?
    Getting back to my requirement, I think I should still use one page and command for page break. I am trying to solve this.
    Thanks.
    Li Jun Da.

    Now I am using 3 pages: Page 1, Page 2, Page 3.
    Page 2, Page 3 are copies of Page 1 with main window renamed as second window: mw 2, mw 3.
    I also created 2 command nodes in main window of page 1: cmd 2, cmd 3.
    cmd 2 is for page break to Page 2, cmd 3 is for page break to Page 3.
    The second window mw 2, mw 3 in Page 2, Page 3 can be displayed.
    Even though, I still can't understand how main window of pages (not 1st page) can work.

  • How to code subtotal of itemlines for page-break in SmartForms in 4.6C?

    Hi,
    There's no functionality in SmartForm 4.6C in order to make a subtotal at a page-break.
    Can you please tell me how to code in the SmartForm to catch the page-break and put the subtotal?
    Please help me its very urgent! Points assured!!
    Tarick.

    Hi,
    in the events tab of table u can find the event at page break for both header and footer.
    i think u can  try with this.
    reward points if useful.
    Regards,
    Pavani.

  • How to determine page break in smartforms...

    hello,
    i have a problem in smartform...
    if my output exceeds more than one page...then i have to print CONTINUED in first page...
    how can i do that? pls help me..
    thanx in advance..
    regards,
    Maya.

    hello Sujatha...
    i couldnt control the page break...i can display 14 lines in my main window....even if my document contains only 14 items, all the 14 items r displaying in the first window....then it is trigerring page break....displaying nothing on main window of second page, not even table header....
    i tried to increase the height of main window......if my doc contians more than 14 items , then 15 items will display on first page..
    even then if my doc contains exactly 14 items ...then its displaying 14 items in the first page and trigerring a page break , displaying nothing on second page....
    pls help me...
    thanx in advance...
    regards,
    Maya.

  • RTF template table does not page break correctly.

    I have created a purchase order document template. Each po line has 7 rows that are in a rtf table. When I create the po document the po lines get split between pages but I want to keep all lines and print on the next page. I have unchecked the 'allow rows to break between pages' and that doesn't seem to work. Can anyone provide some assistance.
    thanks,

    Yes, :)
    anything is possible, provided the data is there in XML :)
    use <?../../ASSET_NUMBER?>
    .. will take you one level up, and use them and go the the level where you the field to be displayed.

  • IF CONDITION DOES NOT WORK WHEN PAGE BREAK IS THERE

    Hi,
    In my page I have some text and then I have put if condition and then Page Break (Next) and then some text and closed the if condition. When I run this if condition is simply ignore and it displays the data within if condition I do not know how to avoid.
    <?if: country = 'US'?>
    <?call-template:templateUS?>
    <?end if?>
    <?if: country = 'UK'?>
    <?call-template:templateUk?>
    <?end if?>
    <?template:templateUS?>
    Testing Data if mkt = 'US' (Section Break (Next Page))
    This should only come for US
    <?end if?
    <?template:templateUK?>
    UK Should only come
    <?end if?
    When I run the above template if the country is UK then also This should only come for US gets printerd how can I avoid this.
    Thanks

    Hello,
    Did you get this to work? Pls let me know. I am facing the same issue.
    Thanks,
    Krishna.

  • How to insert page break in smartforms?

    Hi.
    I want to insert page break after printing 15 rows on each page.how to do it. please give me solution

    hi Badhe,
        WELCOME TO SDN
         Try with command  <b>GO TO NEXT PAGE</b> or <b>&SFSY-PAGEBREAK&</b>
    <b>A page break to a new page occurs as soon as the processing of a page is finished and</b>
    i.     The output control of the main window has not yet been completely processed or
    ii.     A manual page break was executed in the output control of the main window or
    iii.     The page does not contain a main window
    Regards,
    Santosh

  • Orphan table header at bottom of page when page breaks a table across multiple pages

    Hi all,
    I think similar questions have been asked before but I have not found an answer.
    Here's the scenario:
    I have several dynamic tables in a dynamic form.  The layout is flowed, and everything can grow and shrink as needed.  That all works.
    However, my tables have headers.  Occasionally when one of these tables is large and needs to break across multiple pages, there will be just enough room at the bottom of the previous page to show the next table header, but not enough space to show any of the related table rows.  So it ends up looking silly, with just an orphaned header at the bottom of one page, and then the table continues on the next.
    I have my tables set up so that headers get repeated on subsequent pages, by setting the header row to "repeat row for each data item" on the binding tab.  I would like to keep that functionality, but I just want to find a way to avoid these "orphaned" table headers that sometimes appear.
    I have tried the "keep with next" option.  However, although this does push the rendering of the header to the next page, it seems that according to livecycle the table still officially began on the previous page.  Therefore I get a duplicate header because of the "repeat row for each data item" option.
    I have also tried having two header rows, one that is set to only be displayed on the initial page, and the other that is set to appear only on subsequent pages (pagination tab).  This did not work - I ended up with duplicate table headers.
    Can anyone help me?
    Thanks!

    You shouldn't have "repeat row for each data item" selected for header rows.
    You should have "include header row in initial page" and "include header row in subsequent pages" selected on the Pagination tab.
    Then using a "keep with next" might work ok.

  • Table in main window with page break in smartforms

    I want to print data with heading and items in tabuler form (grid form) using table with PAGE PROTECTION in main window in smartform.
    if you would say staight way to use Table or Template under FOLDER with page protection, will not work.
    So, it is little bit tricky. So,if any body have a proper solution please help.
    Thanks and regards,
    Vijay Kr. Gupta

    Hello,
    Include the Text ELEMENT U have used to draw the table in the loop of the main window.
    Vasanth

  • Page break in Smartforms

    hello friends,
    I'm displaying the following data in the smartforms main window.
    line1
    line2
    line3
    line4.
    sometimes line 1 displays on page 1 and then the rest of the data in page 2.
    I need to print all the 4 lines on the same page without any split.
    I know this can be achieved in Script by using Protect endprotect but how to do it in Smartforms?
    Appreciate any replies.
    Thanks..

    Hi,
    Create a file folder and keep put the line items in it.  In the folder you have protect check box . Just check it.
    Reward points if useful.
    Regards,
    Nageswar

  • In MS Word, it is possible to prevent tables from breaking at page breaks.  So, if a table, when populated with data gets too big for the spae allotted on one page, the table will move in its entirety, to the next page. Can this be done in "Pages"?

    I am trying to figure out ow to prevent tables from breaking along a row when there is a page break in "Pages".  This is done in MS Word by going under Table properties under "Rows".   I have a document with small three row tables and I want to keep the tables together and move to the next page in its entirety when there is a page break.  Help!

    The table that I don't want to break between rows looks like this, except it fits the width of the page:
    quilt name
    picture of quilt      
    source
    Size: XX; Difficulty Level: 3
    I inserted a Inline Text box into the document, copied the table inside the text box, then pasted it through the document (which lists quilting projects).  When the table spans a page break, even when in an inline text box, the picture which is in the right hand column splits, as well as the information pertaining to the particular quilt.
    Jerry - thank you for your help.  I tried to give you a "solved my problem" rating, but I am adjusting to the Mac slowly after 20+ years on a PC.

  • REGARDING TABLE FOOTER IN SMARTFORMS

    hi
    i hav to pritn 6 items in page1 and 13 items in page2 and so on.
    but while calculating total for fields
    if pages exceed more than one i hav to fill with constant value'total' for corresponing fields in table in all pages except in last page
    in last page i hav to total all the values from page1 and so on and i hav to print in the last page in table footer.
    how to do this?
    and what code i hav to write and where i hav to write it?
    wether in code lines for text or in initialization of global definitions?

    Hi,
    Another idea is to have a structure declared in the smartform with the same type of the table being displayed.
    In the table body section in the end  you can insert program lines to add the required fields in another structure or simply some fields ( declared again in global definitions ) passing the table line data just got processed.
    Then use the footer at page break option checked and the option footer at the end of table in the events tab of the table node.
    And display the totals per page and also at the end of the table.
    Hope this solves your problem.
    Ram

Maybe you are looking for