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

Similar Messages

  • How to achieve dynamic page break in Smart form

    Hi
              1.How to achieve dynamic page breaks in Smart forms.
               2.What are the various table types in Smart forms.
    Regards

    <i>Dynamic page break : </i>
    create a node of type COMMAND and in its attributes check "Go to new page".
    <i>There are Tables and Templates in smart forms :</i>
    Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
    Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
    Regards

  • Problem in page break of smart forms

    Hi Gurus,
    I am using smart forms for printing on cheque.  What is the problem i am facing is i have three entries in my internal table which i am passing to the smart forms from my driver program. But In the output i am getting four print outs last one having the details of the previous one.
    My logic flows like this,
    I have used one loop for main window and have added the command for page break, and then I have read the values for the other windows. I have tried in many ways like counting the number of values in internal table and added that in command but its not working.
    Anybody please help me to fix the problem.
    Thanks in advance

    Hello friend,
    If you have a problem of getting one page printed in addition to the other pages then handle the situation as follows,
    Try to create a folder and handle this problem or create alternatives and put the page break commands inside it so that you can handle the situation by giving condition in the alternatives.
    If your problem still exists please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Page Break In Smart Forms

    Hello Expert,
              while print invoice form on continuous stationary first page comes accurate but the next page  print start  before the line .
    Thanks in Advance.
    Annasaheb.

    Hi
    References
    1) http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    2)http://www.sap-img.com/smartforms/smart-006.htm
    This will be of help to you.
    Regards
    Shan

  • Issue tabbing across page breaks in dynamic form

    Hi all,
    I have a strange problem that I'm having trouble getting to the bottom of, relating to my dynamic form.
    This form grows and shrinks depending on how the user fills it out.  I have a questionnaire section where certain questions are hidden or shown depending on previous input.
    Things get interesting when I look at the tab order.  Sometimes when tabbing forward or backward across page breaks, the focus lands on a spot that I cannot identify.  There will be no cursor and I can not type.  However if I continue to tab in the same direction, I can see that it is still going in the correct sequence.  It just looks like for some reason, in those places, focus is put in the wrong component.  But if I type different input into the prior fields (ones that affect the length of the pages) that causes the field to move to different place where it's not adjacent to a page break, and then tabbing to the field in either direction works fine.  It seems that only when it's beside a page break, it becomes problematic.
    Also, it only seems to be a problem if the field gets moved to be adjacent to a page break AFTER the form is initially rendered.  If the field was originally beside a page break by default, then it seems to work fine.
    Just to rule out a possible problem with the tab order configuration, I set my from to Automatic tabs, and even went as far as removing all the <traversal> elements from the form.
    After doing either of those things, the problem still persists.
    Has anyone seen this before?

    Hi Eric,
    I have seen funny behaviour when tabbing within Preview in LC Designer. It may be picking up a read-only item in the Master Page.
    Good luck,
    Niall

  • Syntax for sum in Smart Form based on Selection criteria in Program.

    Hi,
    We have created smart form for printing confirmation entries in desired format. We have given some selection criteria in the program. Now, we want to do the sum of certain fields in the smart form based on selection criteria given in program and selection screen.
    But we are getting wrong sum in the smart form than expected.
    When we debug the program during run time, we are getting correct records as per our expectations. But result of sum in the out put is not as per given selection criteria.
    Do we need to establish link between "select option" and "Smart form"? How can we use internal table created for select option in the smart form?
    Thanks & regards
    Vijay

    Hi,
    There will be no option to sum the values in smartforms, You just have to sum and append the data to internal table and display the internal table data in the form.
    Regards,
    Satish

  • PAge Numbers in Smart forms

    Hi,
    I m trying to print the total number of pages in the smart forms using the system field SFSY-FORMPAGES. This is showing from page 10 and in the previous pages it is shown as *. Kindly help me on this.
    Thanks.
    Ashok

    Hi,
    Maybe there is an issue in the display of the page number. Rather than passing the sfsy-formpages to the text element directly, declare a global variable, and assign it the sfsy-formpages. then use this variable in the text element.
    data: v_page like sfsy-formpages. "declare in global definition
    move: sfsy-page-formpages to v_page.
    Also, try increasing the width of the window displaying the page number.
    Regards,
    Zaheed

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • Conditional Page break in Adobe forms.

    Hi all,
              In Adobe forms i am displaying the purchase order details.i want to create a conditional page break..
       i am displaying purchase order header details below that i am displaying the item details of the purchase order.
       i one page. i want to display only 4 purchase order header and 3 items for each purchase order. in total i want to display 0nly 16 lines in a page. my Hierarchy look like this...
    data
    ....Masterpage
    ---......page1
    .....static image
    ....bogypage(subform)
    ---......headertable(subform)                              
    ..............headerdata(subform)
    ........................ebeln
    ........................burks
    ........................table(table)
    ...........................group(group)
    ...............................row1(row)
    ..................................ebelp
    .................................matnr
    with regards,
        sivaprasath.s  SAP Consultant...

    try using the below java script:
    if (this.index != 0) { this.index%16 == 0 }
      let me know if it works.

  • Conditional Page breaks In Adobe forms

    hi experts...
    I have to do conditional page break for item table for each VBELN. if  vbeln has more than 5 line items ...Have to do page break and
    remaining items have to display on next page..
    thanks in advance
    bala...

    try using the below java script:
    if (this.index != 0) { this.index%16 == 0 }
      let me know if it works.

  • GRAND TOTAL SOULD BE DISPLAYED ON THE LOST PAGE OF THE SMART FORM

    Hi friend,
                    i calculated the grand total value in my smart form, i want to display it in a smartforms lost page only can any one help me pls.
    In my footer i gave the grand total in a separate line type and condition i gave only before end of main window check box activated but in every pages i got the grand total value.
    kindly any one help me to accuire the exact value.
    Thanks .
    M.S.Amirtharaj Vijay.

    HI Vijay,
    What Sowmya said is correct
    check the table SFSY
    and PAGENO holds current page no
    FORMPAGES holds all page numbers
    Check the condition like
    SFYS-FORMPAGES > SFSY-PAGENO
    or
    SFYS-PAGENO > SFSY-FORMPAGES
    any of above condition will work
    Thanks
    Surendra

  • Calling page 2 in Smart Form

    Hello all,
    I am trying to call Page 2 in my smart form. However the page doesnt get called at all.
    In general attributes for Page 1 i have kept Page to as Next page.
    In Main window Of page 1 I have created a COmmand .In genaral attributes of the Command I have check marked goto next page and pointed to Page 2 there also.
    My page 2 has a main window and a data windoow. Also page 2 points to itself.
    Is there anythingh else that needs to be taken care of when you point to page 2?
    Please let me know.
    Regards
    Dukhi

    Hi,
    I believe you need to specify another condition to the command used in the main window section to trigger a new page which is infact page 2.
    Moreover i believe in the main window of the page 1 there is not sufficient data so that it would spill over to the page 2.
    Regards,
    Ram

  • How to use At New Cntrol Break in smart form LAyout

    Hi all respected seniors and experts.....
    I am facing one problem in smart form I am creating layout for Tax Invoice in that I want to display in Header area "ARKTX" Short text for sales order item and sum of quantity "FKIMG" and Rate "GKBETR" and Gross amount after multiplying of FKIMG and GKBETR with respected to cheking Rate "GKBETR" and "ARKTX " .
    Rate is changing for diffrent documnet no. e.x VBELN .....
    means some time for changing of every  VBELN  rate is different "GKBETR"
    so i want to print the same RATE's quantiy on one page and changing of Rate should print on next page onwards .....
    and details of quantity with all diffrent vbeln should display on Body of layout....
    I think it will solve by using At New control break .....but can any body tell me what is the exact solution of this problem
    Thanx in advance

    Hi,
    Please check this link ... and please ensure you sorted the internal table prior to use the control break events (at new and at first).
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm
    Regards,
    Ferry Lianto

  • Page No. in Smart forms

    Hi,
              I want to print some 30 records in smart forms with the key item as invoice number, in this for a particular invoice number say '4' and it has 20 item data, all these item data cannot be printed in a single page so they extend to second page and third page, now i want the page no for this to be printed as
    Page <current page> of <total page>. (for the respective invoice number)
    Page 1 of 3 (in first page of the invoice number 4)
    Page 2 of 3 (in second page of the invoice number 4)
    Page 3 of 3 ( in third page of the invoice number 4)
    and when the next invoice no say '5' is to be printed this has to be cleared and must be printed again based on the item data of that invoice.
    please help me in this.
    thanks,
    Sarath.C

    I dont now if this can be done but a little easier approach would be ibstead of passing all the Invoice numbers at the same time, u can call your FM inside a loop for each Invoice....
    This would solve the purpose..
    Thanks.

  • Linking 3 pages in a smart form.

    Hi!
    I have created a smartform with about 5 tables in the main window. I need three copies of the same form with only the signatories at the bottom changing. U can say the last two rows of the last window in the smart form. Rest everything will be exactly the same. I created two pages and copied the details from the first page. Just the last window I have freshly created on each page. Now I am not able to link the three pages. Please suggest.
    thanks,

    Hi,
    To link the pages just do like this,
    right click on your main window of firts page,
    select create,
    select flow logic,
    select command,
    here in general attribute tab enable go to new new page check box, in the input give the your second page name,
    then for third page do same as above,
    finaly save and activate.
    seshu.

Maybe you are looking for