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

Similar Messages

  • 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

  • Dynamically call different pages in smart forms

    Hello Abap Gurus:
    I am creating a smart form for cobra letters, in which i need to display one letter for hourly employees, and other for salaried employees.
    For example in my variant if i have two employees one salried and other hourly then my cobra letters should print different letters for salried and hourly employees.
    Any suggestions are helpful.
    Thanks,
    Ratna.

    Hi,
    I am assuming that before coming to the Smartform you know the Status of the Employee. May be you can get the status from the Smartform Interface Parameters or else set the Variable (Used for comtroling the page printing) in the Driver Program and Import that variable to the Smartform.
    Now once 4 letters are printed after the 4th Letter Create a New Page Command and Check the New Page Check and give Page as "5th Letter Page Name" and Under the Condition Tab give your Variable Name with the Set Value.
    Similarly follow the same process for 6th Letter.
    I suggest to set the Variables Values in Driver Program and IMport this Variable to the Smartform unsing the Form Interface.
    Under the Condition Tab V_GROSS_HRLY(Say Identifier)  NE ' '. This is will take of Printing the New Pages. I think this logic should work.
    Let me know in case if you face any problem on this.
    Regards,
    Srinivas

  • 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

  • Display either ( first and second page ) or only second page on smart form

    Hi All,
    There is a requirement in which we get Program name and smart form name from table TNAPR.Now the smart form contains 2 pages.We have to check condition in the program and based on the condition we have to Display either ( first and second page ) or only second page of the smart form.
    Can any one please tell how to solve this .
    Tahnks in advance.

    SSFCOMPOP-SPONUMIV-->Number range number
    SSFCOMPOP-TDPAGESLCT-->Pages selected for printing
    Data: t_out type ssfcompop.
    If COndition.
    t_out-sponumiv = 'Number Range'.             " 1-2  or 2
    ESLE.
    t_out-sponumiv = 'Number Range'.
    ENDIF.
    OR:
    If COndition.
    t_out-TDPAGESLCT = '2'.        " Else Bot pages will print      
    ENDIF.
    Pass T_out to the function module.
    CALL FUNCTION 'FORM'
        EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    OUTPUT_OPTIONS             = t_out
    *   USER_SETTINGS              = 'X'.
    Regards,
    Gurpreet

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • 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 can skip other pages in smart forms ?

    Hi,
    In Smart forms I have 10 to 20 pages out put data, and I want print only Page no. 11th or 15th  only. How can skip other page or how can got output? Please suggest me.
    Thanks & Warm Regards,
    Sanjay Garhpandey.

    Hi,
    Use this parameter SSFCOMPOP-TDPAGESLCT .

  • How to make a last page in Smart Forms

    Hi,
    I'm using 2 pages in my form, the first one (PAGE1) has a main window and prints out a table. The "next page" goes to PAGE1 since i dont know how many results i get.
    Then I have a second page (PAGE2) without a main window, that prints out a text-module containing terms & conditions.
    The problem is that when i run it, only PAGE1 is displayed.
    How can i call PAGE2?

    Thank you so much Sasi, that solved it.
    I was going nuts about this.
    Best regards
    BTW: Right now there seem to be no way of rewarding points to you. Those options are missing on my screen.

Maybe you are looking for