Smartforms : Page Protection in Main Window

I am working on one smartform which his printing the invoice. In the main window there is one table defined which prints all the line items. After this table there is one more table which prints the subtotals. I want to protect the entire contents of this second table against the page break.
e.g. if i have 4 lines in subtotal table and there is not enough space on the current page to print all the lines, then all the 4 lines should print on the next page. If anyone has encountered the similar problem and have an solution please respond as soon as possible.
Regards,
Wasimkhan

Hi,
I have encountered an identical problem.
Is there any soulution ?
I do not want to count how many lines is used in the main window currently because it is to risky (each table record can ocuupy more than one line).
Regards,
Piotr

Similar Messages

  • Page Protection in Main window of smartform using Folder issue

    Hi Experts,
    We can fix the page protection issue of records in main window by checking the No Page Break check box at the line type level in a smartform.
    I tried to solve this issue by using the folder option. I created a folder inside the table of a main window and checked the page protection check box. Save and activated the layout. When i tried to add the table to the folder, the check box for page protection was reset to blank.
    Why does this happen? Cant we use page protection inside main window using folder ??
    Thanks

    Hi friend,
    We can do page protection functionality inside table of main window using Folders option. Follow the below steps,
    1. Assume rows are created inside table in a main window, with corresponding line types.
    2. Create a folder named PROTECT inside table, for example in Main area of table.
    3. Just drag and drop your Row(s) into folder PROTECT and simply click page protection check box of the folder PROTECT.
    4. This will help you to add the required functionality using Folders option in smartform.
    Try this and update me in case of any concerns. Hope this will solve your problem.
    Check the attachment also for your reference.
    Cheers...

  • Smartforms: Page break in main window

    Hello all,
    I am working on a smartform that has a loop in the Main window which finally shows a table with serveral rows. I would like to have a page break if one group of lines doesn't fit on the page anymore.
    I did some research on that and found the following solution:
    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.
    I did all this and activated the form. But when I go the generic output issue to see the form, following error message comes up:
    Output could not be displayed (it may not be complete)
    Any ideas why this is happening? (If I delete the folder with the "page protection" mark, then it is working fine again..)
    Thanks a lot
    Anne

    Hey Anne,
    If you are getting the error as soon as you check the box for page protection, it indicates that its not placed at correct position.
    I think you placed the folder at a wrong node. I placed the folder under the main area of the table and placed the row types under the folder. Then i checked the folder for page protection.
    Its working for me. I am working in ECC 6.0. I dont know if we have that provision in 4.6 C.
    Create the folder under the main area of the table node.
    put the row types under the folder and check the box for page protection.
    Thanks,
    Vamshi.
    Edited by: vamshi p on Jan 31, 2008 9:19 PM

  • Error in Smartforms a page without a main window

    Dear Friends
    I have suffred one problam in Smartforms, whe we create new page then system gives error
    "A page without a main window cannot point to itself as next page".
    Please provide solution.
    Regards
    Ajit Sharma

    Hello Ajit,
    In Smart Form Main window is optional but check if this satisfies in your case ....
    Main Window
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.
    You can define only one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger
    an endless loop. In such a case, the system automatically terminates after three
    pages.
    It means if you have Next page you need to use a Main window in your smart form.
    Regards,
    Kittu

  • Page breaks in main window

    hi
    when i am displaying the item data in main window, it is displaying half content of the item data in one page
    and half content in the second page
    how to protect the page breaks

    Hi,
    Check with the following link.
    use
    protect
    endprotect.
    http://help.sap.com/saphelp_nw70/helpdata/en/70/e17a37dec511d3b575006094192fe3/content.htm
    Thanks,
    Neelima.

  • Problem with printing the pages due to main window

    hi experts ,
       in my requirement i have 4 pages in smart form.It takes quotation number as input and dispaly all the contracts.
    1 potrait
    2 potrait
    3 landscape
    4 landscape
    i have used a main window in the second page contains 2 windows for printing address then
    one main window for printing contracts, and systems info in two tables .
    i have used a main window in the 4 th page too for printing some item details equipment list.
    both main windows having same width.
    i am getting  1 st & 2nd pages only as o/p if i mention 2nd page in the next page field of first page .
    i am getting 1 st  3 rd , 4th , 5th ........pages if i mention 3 rd page in the next page fileld of first page .
    i didn't use any extra page to populate if  2nd page is filled completely    .
    please guide me  .
    Thanks & regards.
    Srikanth

    Hi Srikanth,
    In the second page you can insert a command to set it to goto page 3,and an additional event in the command (only after the end of main window).
    As soon as the main window ends in the second page...u will get the third and rest of the pages.
    Keep the goto next page in PAge 1 as Page2
    and in Page 2 as Page 2.

  • Smartforms - page protection problem

    Hi,
    I have made an invoice form with smartforms. To protect the positions of page breakes, I have made all position nodes in one folder note and set the page protection flag for that folder. Because in tables the page protection option is not working, I have made it all with paragraphs...
    This is my problem now:
    If the form has more than one page, I have to show the sum of all positions of the first page on the bottom of the page and one the top of the next page. Therefore I have calculated the sum inside the loop of the positions (at the end of the loop).
    This is normaly working... But if I have two pages and only <b>ONE</b> position does not fit on the first page, the calculated sum contains the sum of <b>ALL</b> positions, although the last position is shown on the next page!
    Any ideas, how I can only calculate the positions that fit on one page <b>FOR REAL</b>?
    Thank You very much!
    Cheers Arne

    Hi,
    I encountered a similar problem as ur doing.In dat scenario what i did was that I created a <b>Loop</b> instead of a table and secondly based on the page size please create a style with proper an appropriate tab and use this through out while displaying the line items.
    Using a tab will ensure equal spacing everywhere and the data will not overflow from any line and where ur writing a variable place an addition (C) at the end of that variables between the &. This also ensures that the data doesnt overflow and confines to the space.
    Hope this will help.
    Varun

  • SmartForms Page Protection

    Using SAP's flights examples just to make it easier to explain .... I have a table in Main on my smart form set up as follows:
    Header
      CARRID Event on Sort Begins
      Header Text that Says "Bookings for XYZ Airlines"
    Main Area
      2 Cells that Contain the Flight and Price
      CARRID Even on Sort Ends
    Footer (nothing here)
    My output would be similar to:
    Bookings for XYZ Airlines
    AA017   $1200.00
    AA020   $1150.00
    Bookings for ABC Airlines
    CA002   $898.00
    CA076   $650
    I want to ensure that at each new Airlines, that the Airline Header Text "Bookings for XYZ Airlines" and all of the flights and prices under it stay on the same page.  How can I achieve this?

    Hi Janice,
    Page protection always works at particular folder level. In your case, "Booking for XYZ Airlines" which is in SORT event is one folder, and each line of data in TABLE MAIN AREA is under another folder. So you have to group the heading + data into one folder to get the required result. You can achieve this as follows-
    In your main table display, loop at gt_flights into gs_flight...Set the sort attribute..
    ANd in your sort event, create a folder and set page protection for that folder. Set PAGE PROTECTION for the folder created, not for sort event.
    Then display the header text under a table line in this folder and after that crate a loop which will have "LOOP AT GT_FLIGHTS  into GS_FLIGHT1 where CARRID = GS_FLIGHT-CARRID" and crate your table line under this loop and display the data.
    Don't have any thing in your main area. This way since everthing is in a folder, page protection works.
    If this is not clear, please let me know your mail id. I can send the xml file of a sample form and you can upload and check it.  good luck
    Hari

  • 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 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 print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • Smartform problem how to make second page main window dynamic?

    Hi SAP Community,
    I am facing a problem with designing a smartform. I have taken a table in the main window of the first page, and the main window length varies according to the number of entries in the table. If the records are more than that can be adjusted in the first page then the ramaining records move to the second page main window. After the second page main window i have defined a window which i have marked to get displayed after the main window, but the problem i am facing is that that the second page main window is geting overlapped with the window defined to come after it. Can any one help me with how to control the length of second page main window dynamically.
    Regards,
    Tushar

    Hi,
    Normally, to trigger next page the main window is mandatory.
    However, if the contents of main window are not sufficient enough to move over to next page then the next page would not get trigerred.
    Moreover, please check whether the table of contents in the first page are also existing in the next page otherwise you need to trigger a new page by using a command.
    Also please direct the next page of SECOND page to SECOND itself and check.
    Regards,
    Ram

  • Prob in Smartform in Main Window -- Footer part

    Hi,
    I have 2 rows with different 2 text in Main window -> Footer part.
    I want to always keep tht 2-text together either in first page or in second page.
    Currently both r printing in different page if first page do nt have enough space.
    But my requirement is both should print on first page or second page.
    Please let me know hw to control this ?

    You can use the FOLDERs for that.
    Create a FOLDER under the Footer.
    Set "Page Protection" checkbox ON on the FOLDER.
    Put your both line types under the FOLDER
    So, your SMARTForms should like this:
    > MAIN WINDOW
      > HEADER
      > MAIN
      > FOOTER
        > FOLDER - (with page protection)
          > LINE 1
          > LINE2
    Regards,
    Naimesh Patel

  • How to use Different Main Windows in Multiple pages to print internal table

    Hi experts,
    I have a problem regarding how to have multiple different main windows in  smartforms..the problem is that i want to print an internal table in the third page of the smartform and that table can have dynamic values ..sometime it may have more than 400 values also which can not be printed in one or two pages ...
    so to accomplish the same what i did was..
    i tried creating a new main window in the third page but it is throwing an error saying two main windows not allowed and i also tried by copying the first page's main window but it is just repeating the same content what was there in second page..
      i also tried by creating a secondary window in the third page and in that  window i tried giving my internal table and tried by giving the next page to itself but  that also is not allowed and it throws an error saying a page without a main window cannot point to itself as a next page....
    i also tried using a secondary window and in that window i was trying to display the internal table but it is only showing third page content and fourth page itself  was not created....although in my next page field value of the third page , i have given  the third page itself as a next page ....but this also is not working ,.....
    please suggest how to have different main windows(not copy of first main window) in smartforms in order to display the dynamic contents of an internal table

    HI ,
    Just check with your smart styles with assigned  paragraph  allignment   .
    Try to create character style  with your required  font ,size and  Allignment  .
    Hope u this will solve your issue  .
    Let me know if any concerns......
    Regards,
    Lokesh

  • Problem in printing multiple main window in smartforms

    Hi Experts,
    I have requirement form client to print PO which consists of 4 page.
    First page is cosists of header and some text.
    In second page different header and line item.
    Thirs page different header and line item.
    4th page different header and line item.
    I have printed tex in main window of first page and called command to trigger
    second page main window, but i am getting dump.
    How to print the line item in the multiple page of smartforms.
    Regards,
    Udupi

    Hello ,
    To print the text below are following steps which you can follow for your requirement :
    1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
    2. Create the Secondary Window in second, third & fourth page  which will be same size as the main window having the text which need to be print in respective pages.
    3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
              To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
    I hope this will  help you
    Thanks
    Romit Raina

Maybe you are looking for

  • Radio button variable not being emailed through php file.

    Dear Forum, I have a contact form in a AS 2.0 file that sends the form data just fine to my email. But it doesn't send the radio button selection variable. I am definately doing something wrong here.  Either with the setup of the radio buttons in fla

  • Answers Select clauses:  DISTINCT and ORDER BY

    When I run an Answers query two things automatically happend: (1) The DISTINCT clause is added to the Select statement (2) An ORDER BY is aded to the end. The DISTINCT appears to be inclusive of all of the columns selected as are all of the columns i

  • Bell TV receptor signal drop every 4 min caused by TimeCapsule

    I just got my Fibe 50 installed here in Quebec, Canada, and every 4 minutes there is a signal drop. I had 2 technicians coming home and finally we discovered that there is a DHCP conflit between both of them. When I turn off the TimeCapsule and uses

  • HT204088 How do I unsubscribe from The Magazine?

    I downloaded The Magazine for a trial period. I don't want to "renew" for a paid subscription. For the past 4 months, I have been charged $2.14/month..  I see no way to 'unsubscribe' via the App Store, iTunes, or in The Magazine app itself.  How do I

  • Who, last, uptime are not showing supposed data in Solaris 9

    Hello All, I see below comands are not showing data on my Solaris 9 box. Any clue ? who -b <<<< returns with no output last | grep reboot <<<< returns with no output uptime <<<< does not show since when is up Please advise. Thank you Regards, ~Anoop