How to break a page in smartforms

Hi all experts
I want to break the page in smartforms i am using window in last cell of footer but it is giving me error message  "Page break is allowed  only in the main window"
can any body tell me the solution ........
thanx in advance

hi!!!!
The page to which you want to branch must exist. You can branch to a new page only as long as you are still displaying the contents of a main window.
Choose Create -> Command in the context menu to create a command node in the main window of the page.
On the General Attributes tab strips  Tick Go to new page.  Determine the new page using the list box next to the checkbox (it can be the same page if you want).
The output of the main window will continues on the new page.
reward if helful..

Similar Messages

  • I need to know how to break my page into two pages so i can send it

    I need to know how to break my page into two pages so i can send it

    Hi,
    You can add new form fields via the add item bar.  For example if you want them to fill in their name, you'd add perhaps 2 text fields, one for first name, one for last name.  Text field is the first icon on the add item bar.  Each field allows you to specify a custom label, you can click it to edit the label.  Are you seeing the add item bar?
    Once you've added all your form fields, you can test your form by clicking the "Test" tab, and then clicking the "Test Web Form" button.  That will open a browser to your form, that you can test filling it out.  When you've filled it out, you click the submit button.  The response will be saved to our service.  You can view the submissions, by going to the "View Responses" tab.
    Once you've finished testing your form, and want to distribute to your users, go to the "Distribute" tab, click the "Open" button. This will make sure your form is open and accepting repsonses.  Then copy the URL by clicking the "Copy Link" button.  You can then email that URL to your users, so they can fill in your form.
    Does this help?
    Thanks,
    Todd

  • How to Print two pages in smartforms

    Hi All,
    How to create two different pages in smartforms.In my requirement the first page contains Table data in main window and in second page only the hard coded desription should be printed containg instructions,but the second page is mandatory after first
    page is completed,the first page may have n number of pages after printing those pages my second page should trigger.Help me if any one knows.
    Thanks in advance............
    Regards,
    Satya.

    hi ,
    once a main window size is declared , then that space will be placed in each page created.
    eg. if a table with header and footer is created, first of all the space for header and footer are allocated and body page is allocated.
    so we cannot dynamically change the size of the main window , even it is a copied main window.
    Otherwise another option is to continue the main window into the second page.
    for that first page main window -> create table -> add page break command to page 2 -> hard code description in template.
    page attribute for first page --> GOTO assign same page ( for continuing the same page)
    Page attribute for second page --> no need default is enough

  • How to call specific page of smartforms

    i have smartform in which 5 different pages are there
    i want to call PAGE1 when my sy-tcode eq tc1
    and PAGE2 when sy-tcode eq tc2 like wise...
    how to pass the page name in function module of smartforms???

    HI,
    try this...
    case sy-tcode.
    when ' '.
    Populate the TDPAGESLCT of structure SSFCOMPOP include SSFSPOUTOP of OUTPUT_OPTIONS in form interface of the smartform.
    endcase.
    call the smartform functionmodule
    regards
    padma

  • How to print specific page in smartform !

    Hello Friends,
                  I like to print specific page in smartform. for Ex. page 4. But when I give page no. 4, the print preview not showing the exact page.
    Thank you for your time.
    Senthil

    Hi Senthil,
    chk this link you get a brief idea abt Smartforms.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Reward points if you find this helpful
    Regards,
    Harini

  • How to Print next Page in smartform ?

    Hello ,
    I want to print next page in smartform.
    The situation is :-
    I am passing an internal table containing list of personal numbers.
    I have to print their details . Every candidate's detail should be printed on a new page .
    I have designed the whole form , but I am not print their details on a New Page.
    Please guide.
    Thanks in Advance.

    Hi, Nikita.
    Please Have a Look the following Link
    [MODERATOR MESSAGE: SapScript/Smartform questions go in FORM PRINTING forum|/thread/1360534 [original link is broken];
    So, Please Post Questions Regarding SapScript and Smartform in FORM PRINTING.
    1. First of all you need to set a Flag at the end of every Personal Number.
    2. Than Right Click on the object Like Main Window
    --> Create --> Flow Logic --> Command
    3. From First Tab of Command General Attributes Check the Check Box Go to New Page and Select Your Page
    4. In the Conditions Tab Give you Flag Condition.
    Hope will help you to solve out your problem,
    Please Reply if any Issue,
    Best Regards,
    Faisal

  • How to modify total pages in smartforms?

    Hi All,
    In smartform Im printing ' page of total pages' as &SFSY-PAGE& of &SFSY-FORMPAGES(3CZ)&. All are working fine. Now at last I have to print one extra page without page no. So, If the total o/p pages are 16 ( including last page) I have to show i.e
    1 of 15, 2 of 15 .... 15 of 15 , and in the last pages nothing. For this Im moving SFSY-FORMPAGES to one variable and substracting one from it, but its not working, its showing as 1 of 0, 2 of 1 ... 15 of 14..
    so how to decrease the total page number. I think it generates in runtime and in my smartform all windows are in one PAGE.
    So how to do this ? any Idea?

    Hi,
    I think we can try this. Issue new page after all pages. If page less than or equal to total pages, display that, else issue new page.
    /: IF &SFSY-PAGE& LE &SFSY-FORMPAGES(3CZ)& .
    ' page of total pages' as &SFSY-PAGE& of &SFSY-FORMPAGES(3CZ)&
    /: ELSE.
    /: NEW-PAGE.
    /: ENDIF.

  • How to print last page in smartforms

    Hi,
    In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
    Rgds

    Hello,
    According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
    The best soln would be,
    1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
    2) In the driver program ,
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        control-no_open  = 'X'.
        control-no_close = 'X'.
        output-tdnewid  = 'X'.
       PERFORM ssf_open.
    CALL FUNCTION 'SSF_OPEN'
      EXPORTING
      ARCHIVE_PARAMETERS       =
      user_settings            = ' '
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
    output_options           = output
    control_parameters       = control
    IMPORTING
      JOB_OUTPUT_OPTIONS       =
    EXCEPTIONS
       formatting_error         = 1
       internal_error           = 2
       send_error               = 3
       user_canceled            = 4
       OTHERS                   = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT it-1.
        CALL FUNCTION l_fm_name
    endloop.
    CALL FUNCTION 'SSF_CLOSE'.
    2) In the smartform 
         FIRST  ->   next page -> NEXT
                   Beneath the main window -> Table,  put Command - Goto new page  as LAST.
         NEXT  ->   next page -> NEXT
         LAST  ->   Next page -> Blank
    I hope this will work as I have done a similiar dev.
    Regards,
    Radhakrishnan

  • How to call second page in Smartform without calling first page

    Hi Gurus,
    I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
    For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
    Thanks in Advance
    Gautam

    Hi,
    The smartform will always start with the first page in the structure by default.  However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
    Regards,
    Nick

  • How to use new page in smartforms

    hello friends,
                       i am using a smartform in which i have created a new page(page 2) ,in my page1 i have made next page as page2 ,but in page2 i cant make next page as page2 bocz page2 does not have main window,so in page2 i have made next page as page1 only.
    im not gettin any errors,but only page1 is been displayed,no page2 is displayed,can any1 pls tell me how to use an additional page in a smartform

    hi Siddhesh,
    there is simple method to do so.
    1. Your first page say 'PAGE_1' 'with main window is ready. This page points  
        to say 'PAGE_2' as next page. till here its ok.
    2. Now on second page i.e 'PAGE_2'  do the following.
            a. Copy main windown from 'PAGE_1' ( select node 'PAGE_1 -> right click -
                 -->copy ')
            b. Paste the same main window in 'PAGE_2' ( select node 'PAGE_2' -> right
                click -> paste).
            c. Set next page for 'PAGE_2' as 'PAGE_2'. (SAP will allow this)..
    Thats it u r done.... save activate and test... now your main window on page 1 is filled .. it will display content on page 2 and then on page 3 which is of type page 2...because for page 2 we have set next page as page 2..
    Hope this helps you..
    Let us know if u have any problem...
    Enjoy SAP.
    Pankaj Singh.

  • How to Print Particular Page in Smartform

    Hi ,
         Anyone Give me steps to Print Particular Page when Printing Several Forms in One Print Request .
        Am Using smartform Within the Loop , So  i Used SSF_OPEN And SSF_CLOSE. When am printing the Smartform i gave particular    Page in Dialog Box , But all the pages are Printed.
        Please Help me to Solve this Problem.
    With Regrds
    Kesavaperumal

    Hi Kesav,
    You can do this in Print Control Dialog, when you give printer name as LP01 or LOCL , just below that, one input field 'Page Selection' is available,
    You can give like
    Pages selected for printing
    You can define which pages should be output in the page selection.
    All pages are printed if an entry is not made here.
    You can either specify individual pages or a range of pages. These entries are separated by a comma.
    Examples:
    4     only page 4
    2-5   pages 2 to 5
    -20   up to and including page 20
    3-    from and including page 3
    4,8-10,15-   pages 4, 8 to 10, and page 15 onwards.
    And If you need to control the rpinted copies from the program , you can try with the OUTPUT_OPTIONS-TDPAGESLCT parameter of Functionmodule (which is generated from Smartform).
    Hope this solves your issue
    Rgds,
    Sripal

  • How to print headings in every page of smartforms.

    Friends,
    we have a requirement to print hedaings in multiple pages.
    like if we have  100 line items those will accomidate more tahn one page , i need to print headings in each page.
    pls help me.
    Regards
    Jagadeeshwar.B

    hi ,
    can u check this...
    how to use new page in smartforms
    If you are calling window to display header, then just un check the output option->display on first page only.
    regards,
    venkat.

  • 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

  • How to put a page break when a value changes

    Hi there, I am very new to BI Publisher. I realize this is a really SIMPLE question, but I can't seem to find a CLEAR answer.
    I have a set of data that I have a repeating group for in my RTF template and it works great. But I want to have a page break each time one of the values changes and I cannot figure out how.
    here is the xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle Reports version 6.0.8.28.0 -->
    <PIR05>
    <LIST_G_ITEM_NO>
    <G_ITEM_NO>
    <PAGE_NO>0</PAGE_NO>
    <ITEM_NO>4242301</ITEM_NO>
    <ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
    <LOT_NO>123</LOT_NO>
    <LOT_DESC>4242301</LOT_DESC>
    <SUBLOT_NO />
    <LOCATION>2IRE</LOCATION>
    <GRADE_CODE>NONE</GRADE_CODE>
    <ITEM_UM>Each</ITEM_UM>
    <ITEM_UM2 />
    <LINE_NO>614</LINE_NO>
    <COUNT_NO>614</COUNT_NO>
    <P_ITEMUM2LABEL />
    <P_ITEMUM2DASH />
    <F_ITEMUM2>1</F_ITEMUM2>
    <P_CSITEMUM2_LABEL />
    <P_CSITEMUM2_DASH />
    </G_ITEM_NO>
    - <G_ITEM_NO>
    <PAGE_NO>0</PAGE_NO>
    <ITEM_NO>4242301</ITEM_NO>
    <ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
    <LOT_NO>1232</LOT_NO>
    <LOT_DESC>4242301</LOT_DESC>
    <SUBLOT_NO />
    <LOCATION>2IRE</LOCATION>
    <GRADE_CODE>NONE</GRADE_CODE>
    <ITEM_UM>Each</ITEM_UM>
    <ITEM_UM2 />
    <LINE_NO>615</LINE_NO>
    <COUNT_NO>615</COUNT_NO>
    <P_ITEMUM2LABEL />
    <P_ITEMUM2DASH />
    <F_ITEMUM2>1</F_ITEMUM2>
    <P_CSITEMUM2_LABEL />
    <P_CSITEMUM2_DASH />
    </G_ITEM_NO>
    <G_ITEM_NO>
    <PAGE_NO>0</PAGE_NO>
    <ITEM_NO>4242301</ITEM_NO>
    <ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
    <LOT_NO>562354</LOT_NO>
    <LOT_DESC>4242301</LOT_DESC>
    <SUBLOT_NO />
    <LOCATION>WOR RECV</LOCATION>
    <GRADE_CODE>NONE</GRADE_CODE>
    <ITEM_UM>Each</ITEM_UM>
    <ITEM_UM2 />
    <LINE_NO>603</LINE_NO>
    <COUNT_NO>603</COUNT_NO>
    <P_ITEMUM2LABEL />
    <P_ITEMUM2DASH />
    <F_ITEMUM2>1</F_ITEMUM2>
    <P_CSITEMUM2_LABEL />
    <P_CSITEMUM2_DASH />
    </G_ITEM_NO>
    </LIST_G_ITEM_NO>
    <WHSE_DESC>OPM INVENTORY ORG</WHSE_DESC>
    <CS_NODATA>617</CS_NODATA>
    <CYCLE_NO>000000014</CYCLE_NO>
    </PIR05>
    I want the g_item_no (repeating group) to have a page break each time LOCATION changes.

    You can declare two variables, to hold the previous and current LOCATION values and break the page when it differs.
    Or just before your end-for-each, have this code.
    <?if:position()!=1 and position()!=last() and LOCATION!=following::LOCATION[1]?><xsl:attribute name="break-before">page</xsl:attribute><?end if?>
    Ensure that its placed in a form field.
    This will have a page break when LOCATION changes.

  • How to change the header and footer in the Section Breaks Next Page using OpenXML?

    I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page.
    Scenario of example, I have a doc file which has four pages with headers and footers and added fifth page in the section break next page, I want to change the header and footer of the fifth page only. This is achievable manually by deselecting the Link to Previous
    button in the Word Application but I don't know how to change it using XML?
    My code that adds the new page in the section breaks is:
    class Program
    static void Main(string[] args)
    string path = @"C:\Riyaz\sample.docx";
    string strtxt = "Hello This is done by programmatically";
    OpenAndAddTextToWordDocument(path,strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    using (DocX document = DocX.Load(@"C:\Riyaz\sample.docx"))
    document.InsertSectionPageBreak();
    Paragraph p1 = document.InsertParagraph();
    p1.Append("This is new section");
    document.Save();
    Please help.

    Here is the sample for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Wordprocessing;
    namespace WordAddNewFooterHeader
    class Program
    static void Main(string[] args)
    string path = @"E:\Document\TestHeaderandfooter-Copy.docx";
    string strtxt = "OpenXML SDK";
    OpenAndAddTextToWordDocument(path, strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    // Open a WordprocessingDocument for editing using the filepath.
    WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filepath, true);
    MainDocumentPart part = wordprocessingDocument.MainDocumentPart;
    Body body = part.Document.Body;
    //create a new footer Id=rIdf2
    FooterPart footerPart2 = part.AddNewPart<FooterPart>("rIdf2");
    GenerateFooterPartContent(footerPart2);
    //create a new header Id=rIdh2
    HeaderPart headerPart2 = part.AddNewPart<HeaderPart>("rIdh2");
    GenerateHeaderPartContent(headerPart2);
    //replace the attribute of SectionProperties to add new footer and header
    SectionProperties lxml = body.GetFirstChild<SectionProperties>();
    lxml.GetFirstChild<HeaderReference>().Remove();
    lxml.GetFirstChild<FooterReference>().Remove();
    HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rIdh2" };
    FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rIdf2" };
    lxml.Append(headerReference1);
    lxml.Append(footerReference1);
    //add the correlation of last Paragraph
    OpenXmlElement oxl = body.ChildElements.GetItem(body.ChildElements.Count - 2);
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    SectionProperties sectionProperties1 = new SectionProperties() { RsidR = oxl.GetAttribute("rsidR", oxl.NamespaceUri).Value };
    HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.HeaderParts.FirstOrDefault()) };
    FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.FooterParts.FirstOrDefault()) };
    PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
    PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
    Columns columns1 = new Columns() { Space = "720" };
    DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };
    sectionProperties1.Append(headerReference2);
    sectionProperties1.Append(footerReference2);
    sectionProperties1.Append(pageSize1);
    sectionProperties1.Append(pageMargin1);
    sectionProperties1.Append(columns1);
    sectionProperties1.Append(docGrid1);
    paragraphProperties1.Append(sectionProperties1);
    oxl.InsertAt<ParagraphProperties>(paragraphProperties1, 0);
    body.InsertBefore<Paragraph>(GenerateParagraph(txt, oxl.GetAttribute("rsidRDefault", oxl.NamespaceUri).Value), body.GetFirstChild<SectionProperties>());
    part.Document.Save();
    wordprocessingDocument.Close();
    //Generate new Paragraph
    public static Paragraph GenerateParagraph(string text, string rsidR)
    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = rsidR };
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    Tabs tabs1 = new Tabs();
    TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 5583 };
    tabs1.Append(tabStop1);
    paragraphProperties1.Append(tabs1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = text;
    run1.Append(text1);
    Run run2 = new Run();
    TabChar tabChar1 = new TabChar();
    run2.Append(tabChar1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    paragraph1.Append(run2);
    return paragraph1;
    static void GenerateHeaderPartContent(HeaderPart hpart)
    Header header1 = new Header();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Header" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    header1.Append(paragraph1);
    hpart.Header = header1;
    static void GenerateFooterPartContent(FooterPart fpart)
    Footer footer1 = new Footer();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Footer" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    footer1.Append(paragraph1);
    fpart.Footer = footer1;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Key Figure values in the Bex Report are different from the cube

    Hi all, When I tried to pull data of the cube, the values of the Key Figure 0Lotsize_cm was showing 100 EA. But when I try to run the query of the cube, then the key figure is LotSize is showing up as 500 EA. I don't understand why this is happening.

  • Cannot save Ibot  - Error message as insufficient buffer space

    Hi, I am trying to implement the ibots and I have followed the step by step procedure as in http://oraclebizint.wordpress.com/2007/09/13/oracle-bi-ee-10133-configuring-delivers-ibots/ Now when I create an Ibot and try to save it, I get the message as

  • How to not add songs from Playlists to the library (duplicate entries)

    In my iTunes library, I have lots of songs showing up more than once. When I right-click Get Info it seems this is because I have them on playlists that are also in the library. Songs in multiple playlists can even show up more than twice. I know I c

  • Major iPad 3 WiFi connection issues since 5.1.1 update

    Prior to the 5.1.1 update (which ironically was supposed to fix wifi issues), my iPad 3 worked great.  Since the update it has been a complete disaster.  Even though it always shows a strong wifi connection, certain apps seem to have no connection wh

  • Timeline Slider Problem

    hello, I'm having a problem with my timeline slider everything works great on it until I try and hide it when going to a new page in the flash. There are two pages, a homepage with the timeline and second page with the timeline hidden. When going to