SmartForms: Trigger NEXT page in a loop Not in MAIN Window?

Thanks for all of your responses. I know understand that my list I am creating in my loop does not trigger to NEXT page because it is not in my MAIN Window.
I am a little leary of moving this non MAIN window logic into my MAIN window, because I finally got everything looking pretty good, except for this issue. So, does anybody know of a way to trigger NEXT page to continue writing in a NON-MAIN window to a NEXT page?
As I am writing this I am thinking that I may be able to put a command inside the non MAIN window to go to NEXT page?    Any suggestions, it must be possible somehow.
     Thank-You.

hi
see this
[Sap help documentation for smartforms|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
check page number 84 of this.
its written over there.
Prerequistites:
The page to which you want to branch must exist. you can branch to a new page only as long as you are still displaying the contents of a main window.

Similar Messages

  • Problem in Smartform where next page is printing unnecessarily

    I have written a smartform to print our packing slip. In my main window I loop through the delivery items for printing and after I have finished printing all of the items associated with the one delivery item  I want to  print out a u-line so that the form will be easier to read(some sort of way of grouping the items visually) I am accomplishing this by using sy-uline. The problem arises though that sometimes Iwhen I hit a page break  the only thing that will print on the next page is this uline. I do not want this line to print at the beginning of the main window on a next page but I have been unable to figure out anyway to keep it from printing. I have tried page protection for the paragraph format being used but that does not work. Has anyone come up with a way to print out a dividing horizontal line across the main window after a loop but control it so that it would not cause the form to think  a second page is needed just because of this one line.
    Any help would be much appreciated.
    Karen

    HI,
    Create a Folder,  move your table and what ever code written in program lines under the folder.
    click on folder check page protection, it will solve your problem.
    Thanks,
    Sanjay Gogikar

  • SmartForm Set Next Page

    Dear Experts,
    I am new to Smartform.  I have created the first page (including the main window) and generated the function module.  When I test this first page using F8 in SE37 all the data is nicely displayed. 
    Now I have a second page.  This second page also has the main window which have some text element on it.  I link the first page to the second page using the "NEXT Page" selection in the "General Attributes" tab.  I have saved and activated the form.  Now this is where the problem comes.  When I test the Smartform using the Function Module SE37, I pressed the F8 (Execute) button and it gives me a screen dump occurs saying RAISE_EXCEPTION. 
    Does anyone knows any steps that I am missing.  
    Thanks.

    Hello,
    You want to print totally different data in the two page.
    In case if the data on the first page is more than one page i.e overflowing then it will directly trigger the second page.
    So please change the page == Next page settings...
    page      ==  next page
    First       ==  first
    second  ==  Second.
    so when the data on first page overflow it will trigger a new page with the same layout (page first).
    Then put a command statement , in which you call the second page and put the condition "After main window".
    So this will trigger the second page.
    Now if the data in second page overflow then system will trigger a new page of the same layout (page Second).
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • 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

  • Not display main window of page

    Hi,
    My requiremnet is ,i want to display each sales order number in each page in layout.when am giving the input two sales orders,
    the first sales order (0001)dispaly its header and item details in main window finely but in second page it disaply the header data of second sales order number(0002) but does not read the main window and not display the item details of second sales order number(not showing the main window).i used the command option still not working.please tell me where i do a mistake.
    Waiting for ur reply..
    Regards,

    Hi ALI,
      When you are using command to trigger new page( In that you have to check the check box 'Go to new page' ) In this case the  the main window name of the first page and the next page shoul be same.If it is different then it will not trigger the main window of the next page. It displays the details of all other windows but main window details will not be displayed. Check this once.
    Regards,
    Rajitha.

  • Two main windows in smartform or two loops in one main window?

    Hello All,
    I have requirement in smartform where i want to print two diffrent data header and item data in the same page.
    and in between these two data i want one template to be printed for item data .
    Smartform is giving me error if i use two main windows
    if i use two loop nodes in the main window thn how to restrict the data getting over flowed to template(item data)
    scenario is
    header data****
    **item header**
    item data****
    Pls comment....
    Regards,
    Sunny

    As main window can only be one, so try it this way:
    Under main window create a TEXT1 for header text( first header) than a LOOP1 for looping the header table, under that first create a TEXT2 for header data, than below it create another TEXT3 for header text ( Second header), than below it add a LOOP2 for looping item table and in that add a where condition than under it a TEXT4 for item data .
    MAIN_WINDOW
        TEXT1                                     " first header
        LOOP1                                    " header table
            TEXT2                                 " header data
            TEXT3                                  " Second header
            LOOP2                                " item table with where condition
                TEXT4                             " item data
    With luck,
    Pritam.

  • My netflix account used to work, but now it does not. Only the "my account" page is accessible and not the main page. Major problem. Please help. I'd rather run an older version than one that doesn't work.

    I believe I was running a 6.3.as.df,msad.f,masdf version of Firefox and my Netflix account was working wonderfully well. I happened to hit the quit button last time, instead of the save and quit button and for some reason, Netflix did not load properly. I cleared the day's history, as usual, and tried again. This usually works. I closed Firefox and tried to reopen it, but it said Firefox was already running, that I would have to restart my computer to solve the issue. I did that twice. Finally, I noticed Firefox was trying to download a new version -- even though I don't recall asking it to do so. Now I'm running 7.0 and my Netflix page doesn't work. I am logged in - great - but I can only access "My Account and Help" page and "Viewing History" but nothing else. Lame! I would love to know how to get this to work. I can't even pull up Netflix's main page on its own. All other websites seem to be working properly. PLEASE ASSIST!

    If this were just a Netflix problem, why can I access Netflix through Internet Explorer and not through Firefox? I've been using Firefox to access Netflix for at least the past year and starting yesterday (12/6/11) Firefox doesn't seem to recognize that Netflix exists. I've tried the suggested Firefox "help" which was of no help whatsoever and may even have made life more difficult in accessing other accounts. Anyone know how to contact Netflix or Firefox by phone?

  • LR4 upgrade on PC ,shows exposure ajustments in navigator window only not in main window. is there a

    navigator window shows ADJUSTMENTS BUT NOT MAIN PANEL. iS THERE A SETTING TO CHANGE THIS IN lr4

    Hi,
    If you are familiar with VBA, I suggest you try Application.ActiveInspector.currentitem
    to obtain the currently active Inspector object, you can find some examples from the link below:
    http://msdn.microsoft.com/en-us/library/office/ff863939(v=office.15).aspx
    Also learn from Inspector.CurrentItem Property:
    http://msdn.microsoft.com/en-us/library/office/ff869722(v=office.15).aspx
    Since I'm not an expert about VBA, if you need further assistance, kindly post the question in the Developers' forum:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support

  • Mail will not open main window

    I just upgraded to Leopard from Tiger. Everything seems to be working except for Mail... sort of. When I open Mail I do not see the main mail Window. I can see the Mail menus at the top and I went to Window -> Message Viewer. But I do not see my mailboxes etc. Any ideas what went wrong?

    Scott,
    If you Upgraded from 10.4.11 or earlier to Leopard 10.5.6, it is probably what has been covered by the support document at the link below:
    http://support.apple.com/kb/TS2537
    If you also find any files named to include MessageSorting (which would mean you once have upgraded from a version of OSX earlier than 10.4), remove those, also, but never restore those.
    To find the correct location for the Mail folder, open a Finder window, click on the icon of a house in the Sidebar (this is known often as "Home"), click on Library in that Home user directory, and then to open the Mail folder found there.
    Ernie

  • Mavericks Mail not showing main window.

    I have just upgraded to Mavericks and Mail doesn't work. The first time I opened it, it imported all of my mail from hotmail and gmail, but then failed to open the main window once it was done. I have to force quit to shut Mail down after I've opened it. The drop down menu's only have very limited options active...every option under 'File' is inactive. Help. Mavericks is really living up to its name unfortunately.

    Thanks for your help. Let me know if this helps.
    13/07/2014 12:32:50.060 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14388]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:32:50.075 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:32:55.019 am pacemaker[124]: drift value is zero, setting interval to 60 seconds
    13/07/2014 12:33:00.076 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14389]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:00.086 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:10.153 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14390]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:10.165 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:20.166 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14391]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:20.180 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:22.065 am Mail[14392]: CoreData: error: (11) Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:22.066 am Mail[14392]: CoreData: error: exception during fetchRowForObjectID: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed' with userInfo of {
        NSFilePath = "/Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr";
        NSSQLiteErrorDomain = 11;
    13/07/2014 12:33:22.068 am Mail[14392]: CoreData: error: (11) Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:22.068 am Mail[14392]: CoreData: error: exception during fetchRowForObjectID: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed' with userInfo of {
        NSFilePath = "/Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr";
        NSSQLiteErrorDomain = 11;
    13/07/2014 12:33:22.080 am Mail[14392]: CoreData: error: (11) Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:22.080 am Mail[14392]: CoreData: error: exception during fetchRowForObjectID: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed' with userInfo of {
        NSFilePath = "/Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr";
        NSSQLiteErrorDomain = 11;
    13/07/2014 12:33:22.385 am Mail[14392]: CoreData: error: (11) Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:22.385 am Mail[14392]: CoreData: error: exception during fetchRowForObjectID: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed' with userInfo of {
        NSFilePath = "/Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr";
        NSSQLiteErrorDomain = 11;
    13/07/2014 12:33:22.386 am Mail[14392]: Rethrowing (from nts_ValueForProperty:) NSInternalInconsistencyException: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:22.386 am Mail[14392]: Fatal error.  The database at /Users/timothytrevaskis/Library/Application Support/AddressBook/MailRecents-v4.abcdmr is corrupted.  SQLite error code:11, 'database disk image is malformed'
    13/07/2014 12:33:30.182 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14399]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:30.195 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:40.259 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14400]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:40.273 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:50.274 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14401]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:33:50.288 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:33:55.032 am pacemaker[124]: drift value is zero, setting interval to 60 seconds
    13/07/2014 12:34:00.289 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14402]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:34:00.301 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:34:10.303 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14403]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
    13/07/2014 12:34:10.314 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds
    13/07/2014 12:34:20.315 am com.apple.launchd.peruser.502[157]: (com.akamai.client.plist[14404]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd

  • Error in Smartforms a page without a main window

    Dear Friends
    I have suffred one problam in Smartforms, whe we create new page then system gives error
    "A page without a main window cannot point to itself as next page".
    Please provide solution.
    Regards
    Ajit Sharma

    Hello Ajit,
    In Smart Form Main window is optional but check if this satisfies in your case ....
    Main Window
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.
    You can define only one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger
    an endless loop. In such a case, the system automatically terminates after three
    pages.
    It means if you have Next page you need to use a Main window in your smart form.
    Regards,
    Kittu

  • Main Window display when line items are less in next page.

    Hi all,
           In the smartform,if the line items extend to second page, then to print complete main window in second page and if there are only few line items in second page, how to remove the empty spaces in the nmain window and to print other windows after the end of main window.?
    Nagesh

    design ur next page .....
    goto next page reduce the size of the main window and place the other window that u need....
    goto new window that is specified in nextpage , in condition tab check the checkbox(only at the end of main window).....
    here u will get the other windows only in the lage page....

  • 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

  • Print line items on next page if does not fir onto current page

    Hello Experts,
    I have a query related with Smartform.
    For every Line item, I have 4 lines. Means, if there are 4 line itmes in Internal table then it means, on form 16 lines should be printed.
    My Requirement - If any of the Line item does not fin onto a single page then shift the whole line item onto next page. Means, If Line item 1 and 2 are printing on 1st page completely, but line item 3 is not able to print completely on 1st page then shift all the 4 lines of line item 3 onto next page.
    I tried - Put the main table of main area in a Folder and checked the PAGE PROTECTION of that folder. And in the Foder itself, use a command with checked GO TO NEW PAGE. But it is not printing. Form goes into shortdump.
    Please help me to resolve this issue.
    Regards
    Kuldeep M.

    Hi,
    U try to fix the no of lines per page. If the no of lines in ur table are more than the lines per page then u call the COMMAND 'Go to New Page' and give the Page name.
    Eg:
    data : lv_lines TYPE i,
              lv_lines_per_page TYPE i value 12.    (Try to design the Window height to fit 12 lines or ur wish)
              lv_count TYPE i.
    describe table itab lines lv_lines.
    Now, u loop the itab table and put a condition in the LOOP:
    LOOP AT itab.
      lv_count = lv_count + 1.
    IF lv_count GT lv_lines_per_page.
       clear lv_count.
       create command 'Go to New Page'.             --->In COMMAND put condition lv_count GT 12
    endif.
    ENDLOOP.
    Hope it helps!!
    Rgds,
    Pavan

  • Frame line not display in next page of main window

    hi Xpert,
    I am creating layout in SAP SCRIpt,it working fine only the main window of next page  frame line is not display.
    i m define next page as a FIRST page and writing main window of first page following coding
    /:           POSITION XORIGIN '0.50' CM YORIGIN '7.75' CM
    /:           SIZE HEIGHT '17' CM WIDTH '19.25' CM
    /:           BOX  FRAME 10 TW
    when i run the program first page are coming properly and only when i go in second page of output then main window lines not displaying.
    please guide me how to solve this problem.
    Regards,
    pravin

    Hi Praveen,
    In that case why you have to make the main window in the first page and secondry window.
    You can use it as manin window itself. Print the total amount in the main window itself in the first page. and copy that main window to the second page.
    In the first page under the main window create a text. and there u print the total value and text.
    Now copy the main window to the second page..only COPY DONT CREATE NEW.
    In the second page now under the main window create the table to print the line items. What every u add in the second page main window it will come in the first age also in the smartforms. But it will nto get printed in the first page.After the text to print the totals call the COMMAND option and call next page in that.
    Hope you got me..
    Regards
    Ansari

Maybe you are looking for