Smartform page break

Hi experts
        Can i print the data in one form to the first page and print in a different form to the second page.(same data)
        How to separate the page break in smartforms.
Thanks in advance.
Regards
Rajaram

HI ,
In smartforms
Right click->create->flow logic->command
In the conditions tab : give the condition for a particular filed so that a page break should trigger .
In general attributes tab : tick the go to new page cehk box and selexct the page from the drop down list .
Regards

Similar Messages

  • 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

  • Need help in smartforms page break

    HI Experts,
    I need yout help in Smartforms.
    My requirement is I want to check my current page count with total number of pages in smartform.
    Based on above , I wish to print some text only on the main window of last page.Currently, the text is getting printed on all pages.
    Steps taken:
    1) SFSY-FORMPAGES & SFSY-PAGE already checked but both of them get set simultaneously so the concept doesn't work.
    2) Tried creating a custom FM and using total number of line items available at ITEM level . Doesn't work .
    Any help would be highly appreciated.
    Thanks,
    Abhinav.

    Hi sap_wiz,
    I have 2 pages into my smartform ( FIRST & NEXT ). The SFSY-FORMPAGES parameter is not getting set at the trigger of MAIN window of FIRST page .
    If I check the value both FORMPAGES & PAGES parameter are 1 and on next page it gets set as 2 & 2. So I am not able to use SFSY concept.
    Hi DeepakNandikanti ,
    I wish to print the text at the end of MAIN window towards the FOOTER of table ( MAIN window has a table ) and not outside the window.
    Thanks,
    Abhinav.

  • 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.

  • Smartform issue with page break

    Hi All,
             I have an unusual issue with page break. Here is my scenario, I have a group of items in my table main area and for each group there is sort of header that prints. Similarly there are multiple groups needing a header whenever there is a new group printing. So far it prints fine. But whenever there is a page break and when items from the same group also print on the next page the same header needs to print on the top of next page similar to how the header area repeats on each page. Unfortunately I did not see any page break event for table main area.
    Here is an alternative I have tried but having issues: I have created two rows for this group header one printing from header and another printing from main area. Whenever there is a page break the same group header prints as part of the header and on the rest of the page it prints from the main area. But in a particular scenario, there is a new group starting at almost bottom of the page but as there is not enough space left on the same page (page protection) jumps to next page. In this case there are two group headers printed one coming from the preivous page main area and another coming from the next page header. I hope my explanation is clear enough to understand.
    Please suggest if there is any basic feature of smartform that I have missed out can solve this issue or if there is another alternative you can think of. I appreciate your responses.
    Thanks..

    I was able to solve this issue on my own.
    Instead of checking for a page break on header line I am using a flag that is prepopulated in the table. I set this flag whenver a new group of items starts. If the flag is set I print it from the main area and if it is not set I print it from the header. This helped in avoiding the multiple header lines..

  • 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.

  • 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

  • Smartforms: no page break between last line item and footer in table?

    Hello All,
    my smartform has FIRST and NEXT pages. I would like to avoid a page break between last item line of a table in MAIN window and the footer of the same table.
    Here is how it looks currently.
    Output of FIRST page, MAIN window, table ITEMS:
    1.line item
    2.line item
    3.line item
    4.line item
    page break
    output of NEXT page, MAIN window, table ITEMS:
    1.footer line
    2.footer line
    I would like that if a footer does not fit on FIRST page, it would be displayed on NEXT page with last item line.
    It should be like this:
    output of FIRST page, MAIN window, table ITEMS
    1.line item
    2.line item
    3.line item
    page break
    output of NEXT page, MAIN window, table ITEMS
    4.line item
    1.footer line
    2.footer line
    Any ideas?
    Thanks and best regards,
    Mindaugas

    Do you mean line item text or your want to print footer text?
    If your trying yo display some footer text, then you either place a footer window or you can create a table inside your main window and place text under the footer of the table, then it will display the text without any page break.
    If it is item tem.
    Then you need to build additional logic. As we cannot guess, the total number of item text upfront.
    Example: if page1 can hold 15 line items, check whether your header and item can fit in page one else call a new page by placing a condition FLAG = "X".
    I hope it will help you to solve your problem.
    Regards,
    SaiRam

  • 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 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 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

  • How can I be sure a table is printed with at least 1 item before page break

    I've got a form with several tables (small and large ones, depends on the selection) and I don't like to print only the header on the first page (without any items) while a page break is needed. I like to reserve lines for every table (like in smartforms) or to check a line counter of the page to trigger the page break on my own if not enough space is available
    Do you have any idea how I handle this problem?
    Thank you very much
    Lagogar

    To specify the minimum number of repetitions, select Min Count and type a number in the associated box. If this option is set to 0 and no data is provided for the objects in the subform at data-merge time, the subform is not placed when the form is rendered.

  • Page breaks in smart form based on condition

    Dear all,
    I want to give a page break based on month in smartform.
    How can i do it.
    Thanks In advance.
    Regards
    satish.

    Hello,
    sorry for the delayed response,
    1. Please put MAIN window first in the hierarchy. Then if you have other type of windows in your SSF will come. This is done to avoid the extra page in the output.
    2. In the end of the the main window, you can create an 'Alternative' node type for page break to check the month where you need a page break, if true, you create a 'Command' node type under 'True'. In the general attributes of this 'Command' node you check the 'Go to New Page' Option.
    I assume that you are working on SAP 46C
    Let me know how this goes about. Hope this helps you.
    Best Regards, Murugesh AS
    Message was edited by: Murugesh Arcot

  • How to change the page break in adobe forms

    Does anyone know how to change the page break on an adobe form?  I'm hoping it will be the same way you change the page view in excel.
    Can anyone help?
    Thank you in advance,
    Priscilla

    HI
          YOU CAN USE THE FOLLOWING SYSTEM FIELDS OF SMARTFORMS FOR THE MENTIONED PURPOSE
    <b>&SFSY-PAGE& </b>
         Inserts the number of the current print page into the text. You determine the  format of the page number (for example, Arabic, numeric) in the page node. 
    <b>&SFSY-FORMPAGES&</b> 
         Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output
    <b>&SFSY-JOBPAGES& </b>
         Contains the total page number of all forms in the currently processed print  request.
    REGARDS
    ANOOP

  • Space after Page Break

    Hi All,
    i have created a smartform and i use page break for  my requirement now my question is in second page it leave some space and after that dispaying the line item how to remove that space or how display the line item in first with out any space
    Thanks
    Surendra

    Hi,
    Create the second page 
    In that resize  the main window size according to your requirement    
    At page break -create command window give the next page as second page
    Let me know if any concerns...

Maybe you are looking for

  • Which iPhone should I buy if living in both the US and Europe (Spain)

    Hey everyone, My parents live in the US for half the year and Spain for the other half of the year.  I'd like to buy them an iPhone but am not sure which one to get.  I don't think getting a contract in the US would be a good idea, so am thinking of

  • After iOS 8.3 update, apps stuck on OPEN on App Store Updates page

    Did the iOS 8.3 update by backing up my iPad Mini in iTunes then doing a "Restore". I did that with the last update and all went fine. This time, it appears to have gone well except that I had some apps that had updates pending after the Restore. Aft

  • LaserJet Pro MFP M125a not printing

    Hi, my relatively new LaserJet PRO MFP M125a stopped printing today. Scan function is still working. All lights are on. Cannot print test page. When I try to print Word or PDFdoc, spool is empty, no job is waiting.  Uninstaled all HP software and dri

  • How can I keep the leading zero in zip codes from disappearing in Numbers spreadsheet?

    I have a spreadsheet with addresses, and the leading 0 of the zip codes (thanks New Jersey) keeps disappearing... How do I correct this?

  • Date problem when saving mail

    Hi, I'm using EWS Managed API 2.2 with Visual Basic 2013. I'm trying to import EML file to user mailbox using EMailMessage Save method, and it works great, but received date in Outlook is set to today's date. I'd like it to be date found in EML file.