Going to next page in smartform

Dear friends,
I need ur help solving a problem in smartform.
I need to add a new page and the first page should goto the next page (page2) on a condition.
1. I created a new page (page2)
2. In first page (in PAGE1 properties) I assigned PAGE2 as next page.
3. At the end of MAIN in first PAGE1 I inserted a COMMAND where as next page
    I mentioned PAGE2.
4. In second page (in PAGE2 properties) I assigned PAGE2 as next page.
But this is not working and the command is not routing the first page to the second one. Any suggestions????

Dear Anji,
First of all Congratulations ! I see that u are the top contributor for quite some. Keep up the good work.
Generally when the MAiN window info exceeds more than a Page then the print goes to second page . But the case is different here. I want the next page to be triggered each time Movement type (ITAB-bwart) is equal to '101'.
In MAIN window of first page PAGE1 I have used a COMMAND and in command's Condition Tab, I mentioned the condition (if ITAB-bwart = '101') then it should goto the next page (PAGE2)

Similar Messages

  • Data printed twice on the next  page in smartform

    Hi all,
    I ahve created  a smartform where I  print the header details at the start and then below that details for all line items for a particular document.
    so i have data ;ike :
    Header data :
    field 1 : field 2:
    Field3 : field4:
    field5: field6:
    Item data :
    field1 field2 field3 field4 --> Item 1
    field1 field2 field3 field4 -->Item 2
    field 1 field2 field3 field4 -->Item3
    For the Header data,I use a template in a secondary window.
    However for the item data,i use a table in MAIN window (As i know the no of records only at runtime).Also another reason for usng table would be that I dont need the header on each flloowing page but only the Line item details on the following pages.
    Now i have created a second page with only the MAIN window from the First page as I need only the  remaining line item details  to be continued/printed on the following pages.I have actually copied the MIAN WINDOW from the first page to the second page adjusting only the  uppe rand left margin.
    However now when i see the rpint preview.the 1st page data,is printed corrrectly.however on the 2nd page,the 1st record is printed twice.
    Can anyone explan why is this happening?
    Thanks!

    Thanks for the replies.
    @Meghanandan,
    I dont want to set any command for going to next page as I dont have any condition to go ot next page.Im setting the width of the first page main window to print sufficient data.
    @satyajit
    I have the text elements under the MAIN AREA.Cna you pls elborate which Points i need to check undre the table node which might have been unnnecesssarily checked?
    Thanks again for your time.

  • 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 Branch to next page in Smartforms

    Hi all,
         In Smartform, i want to go to next page when all the records in the main window is displayed. For this I did Following thing,
    1) created command node, did the neceeasry things like go to next page ...condtions given.
        I did this in main area of Page 1.
    2) In Attributes of First page i specified next page as page 2.
        error- No output Window defined....although i defined Secondary Window with text.
    Regards

    I'm currently able to branch out to next page in smartforms but the data that is being displayed is duplicated
    Ex. Page 1
    data1
    data2
    PAGE 2
    data1
    data2
    data3
    PAGE 3
    data1
    data2
    data4
    Can anyone help/ provide advice?

  • How to skip secondary window if main window goes to next page

    hi gurus,
                  i m having a table in main window which lists items and its rate n quantity.
    the total price,discount and discount is calculated in secondary window.
    now if the list of item get more than window size it goes to next page but with calculation in both page in secondary window . i want to skip the calculation on 1st page.the calculation should only apear in scond page.
    thnx in advance.

    Hi..
    ******Case 1******************
    Suppose if you want display the Totals only in Last page :
    In the Secondary window:
    /: IF &NEXTPAGE(C)& = '0'
      <<DISPLAY YOUR TOTALS HERE>>
    /: ENDIF
    ***********case 2**************
    Suppose if you want display the Totals only in Last page :
    In the Secondary window:
    /: IF &PAGE(C)& = '2'
      <<DISPLAY YOUR TOTALS HERE>>
    /: ENDIF
    reward if Helpful.

  • How to dynamically give the next page in Smartform

    Hi,
    I have to give the LAST Page dynamically in Smartform. That only the last page the size of the main Window is shorter in length.
    So on Second Last page I want to dynamically give the Next Page as LAST Page.
    <b>I need to know how to give the next page dynamically in Smartform?</b>
    Regards,
    Nitin

    Hi Nitin,
    I am unable to get your requirement clearly but I can help you how to call a page dynamically.
    In the First Page, where you want to call the Last Page dynamically after displaying all the contents, right click and create a <b>COMMAND</b> node. In the General Attributes of the command selec the check box for Go to New page and select the page from the dropdrown.
    First page
       Main Window
             Table Contents
             Command
    Now, after the executing the contents of the First page when the control encounters the command node it dynamically goes to the Page you have mentioned in the command node.
    Regards,
    Tushar

  • Header Area of Table is not printing on Next Page in SMARTFORM

    Hi All,
    I am facing one problem while Developing a smartform for Delivery.
    I want the same data to be copied to the Next page which is coming on first page. I copied the Main window to Next page with all the details but the Header of the Table is not printing on the Next(Second) page.
    Please help me out regarding this...
    Thanks in advance for your help....
    Thanks & Regards,
    Digamber

    Hi,
    If you are talking about the table (which you created in the main window) and you want the header of the table to be printed on the next page. Is it because of overflowing that's why its printed to the next page?
    If yes, the header cannot be printout out.
    Just for your information. If you want a window in the first page to be copied to all subsequence pages, set the window type to be copies window.
    Hope it helps.

  • Continuation of line item data to next page in SmartForm

    Hi,
    Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
    If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
    Please try to send ASAP.

    You can print total by reading page numbers.
    Ex: IF <current page> EQ < next page number>
      Print total.
         ENDIF
    Regards,
    Sairam

  • Issue related to next page in smartform

    Hi expert,
    M working on a  smartform..i have used next page window in that with condition that if in the first page entries are more that '6' then it must trigger next page to show rest of entries..my code is.
    DESCRIBE TABLE GT_STRUCT LINES LINE.
    *BREAK-POINT.
    IF LINE > 6.
    NEXTPAGE = 'NEXT'.
    ENDIF.
    but next page is not working at all..can u plz tell some points that i should take care off before using next page..
    Regards,
    Raman

    >
    raman  sharma wrote:
    > yaa suhas this code is written in program lines in a seprate window
    I think this code should be there inside the "LOOP" or "TABLE" node in which you are printing the lines.
    You want to print only 6 lines per page & after 6 lines you want a Page-break. Is it correct?
    Then you can have a "PROGRAM LINE"  node or in the "Calculations" tab of your "LOOP" or "TABLE" node you can have a variable which you can increment:
    V_CNT = V_CNT + 1.
    And then create a "COMMAND" node in whichyou give a "Goto new Page" trigger with the condition:
    V_CNT > 6.
    BR,
    Suhas

  • Next page problem -smartform

    Hi Experts
                 we have configured a output type for VF02 billing and assigned a smartform also. I defined the next page also in the smartform.
                 Its working for first page only, not working for more pages, not even display the first page also, what could be the reason, pls suggest me, its very urgent.
    Thanks in advance.
    Regards
    Rajaram

    Hi,
    initially check in preview if it is showing then there is some problem with printer ask the concerned person if u r not even getting it in preview also then call start form function module and assign each page numer there if two pages call 2 times start and end form.
    try this this might work.
    Regards,
    sana.

  • Print next page with SMARTFORMS

    How can I print the next page with transaction SMARTFORMS?
    I connected the second page to the first in the general characteristics of the first, but when i execute the function only the first is print.
    What's the problem?
    How can I print the second page after the first?
    Thank you.
    CV

    hi,
    In the first page specify any condition, such that the condition get satisfied during the first page and result of which a second page is created with respect to the CHECKED CHECK BOX GOTO NEW PAGE.
    Check for the data on the first page, is it sufficing to the first page only in that case you wouldn't get a new page.
    Refer this wiki for more information
    [Page break|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/pageBreakin+SMARTFORMS]
    regards
    Sharath

  • How can i see the next page in smartform?

    i hav created a Second Page (%page 2) in Smart form.
    and in that page i created one Main window and a table.
    in 1st page, i defined the Next page as Page2 and
    in the second page i defined the Next Page as Page2.
    but only the 1st page is displaying. how can i see the next page?
    what i want to do in smartform...

    Hi,
    The second page will be displayed only when the data does not fit in the main window of the first page and continues to the second page.
    So make sure that you have enough number of line to print that it overflows to second page.
    Ajith

  • Next Page on Smartform

    Hi All,
    My smartform have 3 pages.
    Ist Page is showing the header
    2nd Page is showing the item details
    3rd page is showing the some other general details
    But I want to show the 3rd page only after printing all the item details ( 2nd Page).
    Please help how to do that?
    Regards,
    Nikhil

    Hi,
    don't declare u r third page,
    Arrange u r windows in the second page,
    but the hierarchy of windows is maintain after main window node.
    make all windows conditional i.e. only at end of the main window.
    and maintain next page as page2.
    if u have any line items it will call in next page or else it will print in second page,
    hope it will work,
    with Regards,
    Kiran.G

  • Problem with the table that goes on next page

    Hi all,
    In my template there is a table that stores detail information. The table property is set to display in box format meaning only the border and not grid. Also I have used <?if:position() mod 10 =0?><xsl:attribute name="break-before">page</xsl:attribute> to display only 10 rows per page. now if there are say 15 rows for detail then the remaining 5 lines are correctly printed in next page, but the table in first page is not displayed in box format.
    If needed I can provide you with the xml and template.
    Thanks in advance.
    Suresh

    quick work around
    put this table in another table
    give the box format for outer table,none for inner.

  • Automatically stop video when going to next page

    Hi,
    I have an article with a video with sound on the first page that plays automatically. When I swipe to the next page, I hear the video still playing. Is there a way to turn it off automatically as soon as I swipe to the next page?
    Thanks!
    Nick

    Not without auto startanother (silent) video on second page
    (that's a clue for a workaround
    (mobil gesendet)
    Am 02.09.2011 11:03 schrieb "nbervoet" <[email protected]>:
    >
    Hi,
    >
    I have an article with a video with sound on the first page that plays
    automatically. When I swipe to the next page, I hear the video still
    playing. Is there a way to turn it off automatically as soon as I swipe to
    the next page?
    >
    >
    Thanks!
    >
    Nick
    >

Maybe you are looking for

  • 870A-G46 - Issues installing windows 7 using Raid 0 on 2 SSDs.

    I took 2 60GB SSD's and created a RAID 0 array. After that I tried to install Windows 7. Put the disk in and went through the setup. Got to the point where it asks what drive I would like install it on. Nothing showed up. I successfully set up the 2

  • Help with JTree

    I wrote a cls that extends JTree....I have defined the root node in this class. Public class a extends JTree{ /// global variable nd constructor public void JTReader() DefaultMutableTreeNode root = new DefaultMutableTreeNode("root");            m_mod

  • Vendor Mass Update is Very Slow

    Hi All, We are running ECC6.0 and have just consolidated our HCM and Financial systems into one instance running in a virtualised environment. We also have a linked SRM 550 running in the same virtualised environment. I have been tasked with a projec

  • What does "domain name is used for your typekit fonts & SEO sitemap.xml" mean?

    Why is Muse now asking, on either uploading files via Muse or externally through another ftp, for a domain name that is used for your typekit fonts & SEO sitemap.xml? I used Muse for exporting my files to ftp externally a few months back and I could

  • Can you tel me the exact status values for TBTCO table

    Hi Experts, Can you help me any one to know about "Status" field in TBTCO table. what is the meanings of this status values. 1.P. 2.S. 3.F. 4.R 5.Y 6.A. 7.Z Can you tell me any function module to find status for the program and for the jobname. Thank