Next page in Smart form

Hi Gurus,
I have the following problem.I created smartform with 2 pages.
These 2 pages are not similar but there is some thing in common.
In first page i have 4 windows (including main window) and in second page i have 2 windows including main window.
But the data to both these windows are coming from the same internal table from print program. This internal table is fixed always which means for ex there will be 10 rows every time.
In first page in main window i am showing only row 1 to 6 and in second page i am showing row 7 to 10.
Now the problem is: I only see first page not second page. I wonder what could be the problem?? any guesses??
FYI :After first page i gave page2 as next page.
Thx in advance.
Rajesh

Hi Rajesh,
  The problem might be that in the first page you might not reaching the end of main window.
  with out this it won't goto next page.
  what conditions did you keep to print first 6 records in first page and next 4 records in 2nd page?
  If you kept any conditions, then keep the height if the main window such that only 6 records fits
  or call the next page explicitly once you print the 6 records in first page using, CREATE->FLOW LOGIC->COMMAND. Here give the next page.
Check this once.
Regards,
Dinakar.

Similar Messages

  • How to mention two different next pages in smart forms

    Hi
    In our scenario there is smart form in which we have one main window, after that we need to print two different pages one for instructions and other for delivery address.
    In main window we can add a command and mention the condition for a next page e.g Instructions page. but for  delivery address page we are unable to specify condition in main window or in secondary window  in instruction page/main page.
    Kindly help us
    Regards
    Ammad

    Hi Ammad,
    Create two pages(page2 and page3), page2 for printing the "Instructions" and second(page3) for "delivery address".
    in the first page, at the end of main window create the command and specify as below
    general attributes->check the go to new page check box->choose the page which u wanted to be print on the second(for your case it is page2).
    In the page2->general attributes->next page->give "page3".
    Thanks,
    Prabhakaran
    Edited by: prabakar1998 on Dec 12, 2011 9:42 AM
    Edited by: prabakar1998 on Dec 12, 2011 9:44 AM

  • Unable to see the next pages in smart form

    in my smart form i designed 3 pages...
    in the first page i don't want data in main window...but i gave the main window dimensions as in 2nd and 3rd page(same height and width)...
    in 2nd and 3rd page i want to display the data in main window...
    but when i am trying to see the output i am able to see only the first page ...
    Please suggest me the suitable solution..
    Thanks in advance

    Hi,
    You've originally said.
    in the first page i don't want data in main window...
    yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
    Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change).  So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
    Remove the main window from page 1, set page2 as the next page for page 1.
    As for how to trigger page 3 you'll need to provide more detail on what the condition is.  Do you want multiple copies of page 2 to hold all of the main window data, or just one?  Do you want one copy of page 2 then the rest of the data on multiple copies of page 3.  Be specific.
    Regards,
    Nick

  • Trigger next page in smart forms

    Hi Experts,
    I need some adivce regarding this:
    IN my first page main window i will display data in 3 columns ( each row of internal table will go in to a column).
    If my internal table has more than 3  rows, i need to trigger next page and display only the main window with the same three columns ( This should continue triggering till the end of records in my internal table).
    Can any one suggest me how i can accomplish this.
    I know we can force the main window table to be filled up and trigger next page. Here i do not have any table to repeat lines etc.,
    Thanks in Advance

    First of all convert your table to the 3 column internal table which you can specify to print the data in 3 columns.
    To trigger the next page, adjust your main window height which can accommodate only one row of your main table. Or you can create a COMMAND to fire the next page after printing your line
    MAIN
    . TABLE  " 3 column table
    .. LINE
    ... CELL1
    ... CELL2
    ... CELL3
    .... COMMAND " Next page
    Regards,
    Naimesh Patel

  • How to know no of pages in smart forms to be printed ?

    Hi,
         How to know no of pages in smart forms to be printed ?
    though i got SFSY structure during run time of smartform , even that was not useful.
    &SFSY-FORMPAGES&
    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.
    for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
    during debug of smart form i don't  understand how it is calculating no of pages  ,as i kept break point before printing page no in smart form.
    please check my  two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
    Help Required.
    Thanks In advance.

    Hi Prakash,
    You will not get these values during debugging.. Let the program execute completely, you will get the right values.
    As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
    You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
    Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)&  as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • How do u get New page in Smart form dynamically

    How do u get New page in Smart form dynamically

    page break in smart form
    Re: New Page in Smart Forms
    Page break inside a loop  in smart form

  • Issue in printing second page in smart form

    in my smart form i have only FIRST page in tht i have pur order numberwindow, date window and all the item details in mainwindow. my problem is in my page 1 order number and date are getting printed at the exact position whre i  want but when it is coming to the next page that is page 2 order number and date are going out of scope. I cant even change the position of those two windows as it is getting printed properly on 1st page.

    Copy the first page and paste so as to create a second page, now give next page as this second page, and check, if there is any layout issue then make changes in this page, be careful as if you make any any changes, such as deleting some table or template or window in the copied [page it will get deleted in first page to, so only make changes to layout.

  • CREATION OF MULTIPLE PAGES IN SMART FORMS

    Hi,
    I have a smart form in which i need to create 2pages.First will be followed by next and next by next
    I created the first page and then i created the next page .
    when i created first page i got a default main window and when i created a second page i.e the next page ,i did not get any default main window and when i tried to save it gives an error saying page without window cannot be saved.
    WHEN I CREATED A WINDOW WITH MAINWINDOW BUTTON ENABLED IT SAYS ALREADY EXISTS AND TWO MAN WINDOWS CANNOT EXIST .cAN ANYONE PLS HELP ME OUT REGARDING THIS
    THANKS

    hi
    good
    1-go to smartforms
    2-in a smartforms there is only one main window you can create,it is not like sap script that you can create 0 to 98 main windows,so on main window ll come bydefault but if you want to create another window that would be called as subwindow and that you can create by right click on the main window node and select create window.
    3-After selectging the window one small window would arise over the main window screen , you can give any size of that window and on the right hand side of the window node you ll find three tab from there on general attribute would be there,from there you select secondary window ,because every second window other than the main window is called as secondary window.
    now you can try like this it ll definitely work fine.
    thanks
    mrutyun

  • Missing line on next page of Smarf Form - SAP bug?

    Hello!
    I have a Smart Form which prints whatever items in main window. However, on next page (second and others), <u>sometimes</u> the first item line under the table header is not visible. The space is there, but no content. This happens only occasionally. I tried to resize the main window just a little (one mm) and it worked for that particular printout - the line reappeared. And for some time everything worked fine. Then, all at sudden, in some other printout, the line dissappeared again. I can't resize main window every time this happens!
    To me it looks like a SAP bug.
    Any experience with this?
    Thanks in advance and regards,
    Igor

    hi
    strange!!!...
    ok r u using all the formatting options use the C when u r print in the data in the item..
    ex <b>&itab-xxx(c)&.</b> iam not sure... may be it can help u.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • Blank Page in Smart Forms

    Dear All
    A blank page is printing in Invoice through Smart Forms.
    Help Me?
    Thanks in Advance

    Look at these things:
    <b>check how manty pages you designed.</b>
    <b>on each page what you defined in next page box.</b>
    suppose you have 2 pages page 1 and page 2.
    for page 1 next page shold be page 2.
    and for page 2 it should be page 2.
    if still you have a problem then download your smartform and send it to me .
    reward if useful..
    Amit Singla

  • Pages in Smart Forms

    Hi Experts...
    I'm having a problem with the paging of a couple of Smartforms...
    I did not develop them but I've been asked to try to fix the issue.
    The forms have something particular, they have different PAGES (2 or more) and the customer wants the page counter to INITIALIZE for each PAGE.
    For example:
    One of the forms is an AUDIT Form. It has the pages FIRST and SECOND.And they're set up like this:
    FIRST:
    - Next Page: SECOND
    - Mode: Initialize Counter
    SECOND:
    - Next Page: SECOND
    - Mode: Increase Counter
    To Print the paging we're using:
    Page &SFSY-PAGE& of &SFSY-FORMPAGES&
    When we print, there are 3 pages on the form (2 for FIRST and 1 for SECOND), BUT, the paging is coming out like this:
    Page 1 of 1
    Page 2 of 1
    Page 1 of 1
    The correct would be:
    1 of 2
    2 of 2
    1 of 1 (because this is "a different form inside the same form")
    First 2 pages are for FIRST... and the last is for SECOND.
    I have already changes the config to both as INCREASE (still wrong 'cause then they show 1 of 3, 2 of 3 and 3 of 3)
    I've tried everything... any ideas?
    Thanks a lot in advance!
    Fernanda

    &SFSY-FORMPAGES& gives the total no of pages in a form and as per your example it is 3 .  You are trying to achieving something which is not possible with system variables.(  print 2 layouts using 1 smart form object ).
    You may review the data and see the how pages are displayed. .. if it is always 3 pages then you can hard code it or reset the counter based on &SFSY-PAGENAME& . otherwise you need to build a logic to determine how many second pages out of &SFSY-FORMPAGES&...
    It would have been better if the second page is kept as a separate smart form, however doing this now would be time consuming .
    In case you are not able to derive the no of pages from the total pages, then I would suggest you to convince the business  to use simple page numbering(1,2,3 ). and then you can reset the page counter based on page name .. ( use variable for page counter ).

  • How to deal with multiple pages of smart forms

    Hi everyone,
       i have two pages in smartforms but whenever i show smart form through my program only first page is shown not the second one. i tried with next page attribute of both pages but no resolution.
    thanks alot in advance

    Which solution did you choose ?
    (1) main window on the two pages
    - The first page contains the main window, and its next-page attribute is the second page
    - The second contains the main windows, and its next-page attribute is itself
    - The main windows
    - - Begins with nodes to print on first page
    - - Then a command node force end-of-page
    - - Then some nodes and a table node that are to be printed on second page
    (2) main window only on second page
    - The first page do not contain the main window, and its next-page attribute is the second page
    - The second contains the main windows, and its next-page attribute is itself
    - The main windows
    - - Some nodes and a table node that are to be printed on second page
    Regards,
    Raymond

  • How to creat 2nd page in smart forms

    hi
    in smart forms iam facing problem i'e if i gave 10 material's it was comming fine if i give 30 materials it was going to 2nd page in that again from starting it was comming like Header delivery adress.
    what i want is if materials increase than main window should increase size & rest of thing(footer )should comes in 2nd  window
    regards
    A K reddy

    Hi,
    For the header details not to print on the second page:
    -> Go to Conditions tab of the window in which u r printing Header  delivery address and check the condition 'Only on first Page'
    This will solve ur problem.
    thanks,
    Anon

  • How to supress a blank page in smart forms

    Hi,
    I am using a command in Smartforms to trigger a new page whenever a new BELNR(Accounting document). My problem is in the output i am getting a first page is blank and remaining pages are ok.
    What i did Is In conditions tab i written as temp NE belnr. So first time temp is nothing so blank page is coming. and in the following text elements i am passing a belnr value to the temp.
    Temp = belnr and in general attributes go to new page check box has been activated. Then how to supress a blnk page.
    Regards
    Ramakrishna .P

    Hi,
    I am not using loop.
    In main window i have the contents as
    Header---- Headers for table
    Main Area---- text elements ( i have fileds slno, belnr,glaccount,cost center,gtext,description,dmbtr,wrbtr)
    In belnr field i have created the command there i am comparing the condition temp ne Belnr and go to new page on conditions tab
    wrbtr text element i am passing the g_temp =belnr
    My requirement is whenever new belnr comes new page has to trigger and corresponding gl accounts need to be displayed and end of the belnr i want to display the footer.
    For your information passing the belnr values from the print program (select options) to smart form
    Footer---footer

Maybe you are looking for