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

Similar Messages

  • 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

  • How to go to the next Page while generating a text file ??

    All,
    I am generating a text File dynamically based on the information from the Database. I need to give some Page breaks after every 80 lines. Does any one has any clue how can I do that.
    I am able to generate the file though.
    Also I need to set the Font to Courier.
    Please let me know if anyone has done anything like this.
    I am using "BufferedWriter" for generating the text file.
    Thanx

    Basically - I have to repeat the header if the records goes to the next Page. My records can increase decrease dynamically as the data is coming from the Database.
    I do not know how to find out whether it has reached the next page or not ??
    If you know by any chance how can I repeat the header once it goes to the next Page that would be a great help.
    Thanx

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

  • 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

  • Looping the complete page in Smartforms

    Hi,
    How can I loop the entire page in smartforms which contain multiple windows?

    Hi Shah Kunal
    A Simple Smartform Tutorial 
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output). 
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions). 
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    *2. Define looping process for internal table  *
             Pages and windows *
    First Page -> Header Window (Cursor at First Page then click
    Edit -> Node -> Create) *
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)&*   (Total Page)* 
    *Main windows -> TABLE -> DATA  *
    In the Loop section, tick Internal table and fill in 
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
               lobal settings :
               Form interface
               Variable name    Type assignment   Reference type
               ITAB1               TYPE                  Table Structure
               Global definitions
               Variable name    Type assignment   Reference type
               ITAB2               TYPE                  Table Structure 
    4. To display the data in the form 
        Make used of the Table Painter and declare the Line Type in Tabstrips Table
         e.g.  HD_GEN for printing header details,
                 IT_GEN  for printing data details. 
         You have to specify the Line Type in your Text elements in the Tabstrips Output options.
          Tick the New Line and specify the Line Type for outputting the data.
          Declare your output fields in Text elements 
          Tabstrips - Output Options
          For different fonts use this Style : IDWTCERTSTYLE
          For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program 
    REPORT ZSMARTFORM. 
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming
                        http://sapr3.tripod.com
    TABLES: MKPF. 
    DATA: FM_NAME TYPE RS38L_FNAM. 
    DATA: BEGIN OF INT_MKPF OCCURS 0.
            INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF. 
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. 
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
       MOVE-CORRESPONDING MKPF TO INT_MKPF.
       APPEND INT_MKPF. 
    ENDSELECT. 
    At the end of your program.
    Passing data to SMARTFORMS 
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3. 
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif. 
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      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.
    Reward if helpful
    Regards
    Lakshman

  • How to get dynamic fields to spread to the next page?

    Thanks to a couple of wonderful folks on this board. I have found a way to get my dynamic field to move and I have gotten the static text fields below that to move. Now I have another problem. As my dynamic field has expanded towards the end of the page. The static fields ahead of it have disappeared. I know that there is a setting to have the static fields move to the next page. Or is there a way to do it? I would love some help on this.
    Thanks in advance

    I had this issue. I had to wrap the static fields below in a sub form and change the settings on that sub form to flow with content like I did with the original text box. This will push the static forms to the next page on the form, but there is one problem with this that I haven't gotten around. When the text box spans multiple pages, printing the page will not print all of the text. For example. A text box where 45 lines of text are entered, 20 are on the first page, 25 are on the second page. It will display properly, but when printed the text that prints on page 2 will be the same text you see on page one. If I wasn't clear enough on moving the static fields, let me know. I can give you the steps. Hopefully the printing thing won't cause you grief.

  • How can I get the page to curl when turning to the next page in iBooks author?

    How can I get the page to curl when turning to the next page in iBooks author?

    I don't think you can. If you need that effect, you should use ePub (that can be authored via Pages) not iBA.
    I hope Apple give us the option in the future though.

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can I insert text in Pages so it flows to the next page?

    I try copying a block of text into Pages but it cuts off at the end of the page instead of flowing to the next page. How do I fix this?

    You have probably started with a Layout mode template instead of a Word Processing template. See the sidebar in the Template Chooser for which is which.
    Alternatively you may have pasted an object (possibly from the Internet), not text into a Word Processing template. Click inside the object and copy the text, then delete the object and try pasting again.
    Peter

  • How to split table in the report so it shows on the next page?

    Hi,
    How to split table in the report so it shows on the next page? Im trying to fit long (many columns) table into my report page. It is too long however. I want it to wrap and show the rest on the next page. What I get now is table cut at the page end and rest is not visible.

    Yes, this might be that the amount of data will cause table to grow and exceed 1, 2, 3.. pages. In that case I would probably want to have, lets say , one half of columns on 1st page then the other on the 2nd page and then repeatedly the same sequence down across all pages. Is there a way to achieve this?

  • How do I stop automatic loading of the next page as I scroll to the bottom of an internet page that has a number of pages?

    When I search with Google, as I scroll to near the bottom of the page, the next page of results automatically loads. I can never get to and use the similar searches, or "Searches related to ***", which are at the bottom of the page, as the next page loads and focuses at the top of that next page. Also, there is a bar with the page number, and a field with a "Jump to" command with a pop down arrow with page numbers, and up and down arrows beside it which go up or down one page if used.
    This does not happen with, say, Bing, nor if I use Int Expl (aagh).
    I have no autopage type of add-ons, or plugins.. I may have had an add-on at one time. There are a bunch of autopager "strings", or lines, in about:config. How do you remove them, if that is the problem?
    How do I stop this from happening? It is extremely annoying.
    Thanks,
    SK

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • How to get the page number when click the(Next page) Icon on Tableview

    Hi all,
           I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
    Let us assume when we execute the BSP and a table view got 11 pages.
    How I can keep track of the page number when we click the  (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that  corresponding page number of the tableview when we click the corresponding Icon's??
    I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
    Any help will be appreciated.
    Thanks in advance.
    Thanks,
    Greetson

    Hi Greetson,
      I was thinking to write a weblog about that.
      But now I would like to have your opinion:
      I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class  me->firstvisiblerowlist (that is a table)
      DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
      DATA: ff  TYPE ihttpnvp,
            ffs TYPE tihttpnvp.
      me->request->get_form_fields( CHANGING fields = ffs ).
      LOOP AT ffs INTO ff.
        IF ff-name CP 'f*visiblefirstrow'.
          READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
          CASE sy-subrc.
            WHEN 0.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
            WHEN 4.
              IF sy-tabix = 0.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
              ELSE.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
              ENDIF.
            WHEN 8.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    Than you have to provide a generic method to read the firstvisiblerow for each tableview
    GET_FIRSTVISIBLEROW
    *IM_TABLENAME
    *RE_VALUE
      DATA: l_firstvisiblerow  TYPE zmmsp_tableview_1st_visi_row.
      READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
      IF sy-subrc = 0.
        re_value =  l_firstvisiblerow-value.
      ELSE.
        re_value =  1.
      ENDIF.
    And in the DO_REQUSET of each controller you could write something like:
    * Paginator
      DATA: l_tab1_visiblefirstrow TYPE sytabix.
      l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow'    ).
    As usual pass the value to the view via:
      o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
    Did you get it?

  • How to display header fields names in the next page in report6i

    how to display repeat header field names into the next page in report6i urgent plz......
    When i am runing report in 1st page only the header information is displaying in 2 page the header info is not displaying only records are displaying.So i want to display the header info in 2nd page also.
    Plz help out.

    Hello,
    Go to the report layout model and select those items/objects which are not getting display on next page and open the property pallet by pressing F4 key and set the property Print Object On to All Pages then it will display on all pages.
    -Ammad

  • How to automatically create a table on the next page?

    I was working on my Resume using tables on Pages 13.  When the first page is nearing to be filled in, I continue to put more details as I expected the table to be created automatically in the next page, like that of Microsoft Word but it did not happen.  What happened was the table continue to elongate only on the first page eventhough the last part cannot be seen anymore.  Please advise me how to do this, if possible.  Thanks.

    You need to make the Table Inline ie part of the text.
    Select the Table by clicking on the large dot top left > Cut > Click in the Text > Paste
    It will now flow from page to page, but there is a bug in Pages 5.2, which means text may not show in the table after a few pages.
    The table will also break at cell boundaries, it will not divide a cell over 2 pages.
    Peter

Maybe you are looking for