Smartforms - cannot hit second page

All,
  I have created a smart form in which I need two copies.  The second copy varies slightly from the first by having a DUPLICATE text on it.  I had been calling this form twice, however it creates two print spools and is causing an issue for our BASIS guys (form is called a lot).
  I copied the FIRST_PAGE to COPY_PAGE.  On FIRST_PAGE, i set next page to COPY_PAGE.  I have attempted to print this, but the second page is never called.  I even put a breakpoint in a code sectioin in the main window of COPY_PAGE.  The first page prints normally.
  I have never done a multi page form, and this seems very elementary, but does anyone have any clue what I'm missing?
Thanks,
Aaron

Is multiple spool request is the only problem?
You can group multiple smartform output in a single spool.
New spool request creation, using exiting spool request and closing spool request can be control by paramater OUTPUT_OPTIONS of smartform interface FM.
Look the documentation of field
SSFCOMPOP-TDNEWID
SSFCOMPOP-TDFINAL

Similar Messages

  • Restrict second page

    Hi,
    In one of the smartform printing, the second page is blank but still it comes. How can I restrict the blank page so that only one page should display.
    Regards,
    Jeetu

    hard to guess where it comes from since there can be various reasons for it.
    But most probably you are printing some empty lines with paragraph formats not having tagged the option "no empty line".
    This leads to the main window overflowing due to empty lines.
    He then prints those overflowing empty lines to next page.
    Since they are empty you cannot see them, but all the other stuff that is on next page and not in main window.

  • Tomcat 5.025 : i cannot hit my web application

    Hi all,
    I just upgraded to Tomcat 5.0.25 and i was trying to hit my application as usual using
    http://localhost:8080/InterMenu/index.jsp
    But i cannot hit the page at all and i get the following error
    HTTP Status 404 - /InterMenu/index.jsp
    type Status report
    message /InterMenu/index.jsp
    description The requested resource (/InterMenu/index.jsp) is not available.
    I tried to hit a simple html also...but it doesn' t work.
    This application used to work fine on Tomcat 4.0.4...
    Can anyone help me to find a solution...does it have anything to do with the web.xml file...coz the other inbuilt application works fine...like the jsp-examples that comes with the tomcat...
    Thanx...i have been trying one whole day....

    hi...here is the error frm the log file
    2004-07-05 16:39:39 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-07-05 16:39:40 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-07-05 16:39:40 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-07-05 16:39:41 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-07-05 16:39:41 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-07-05 16:39:41 StandardContext[InterMenu]Error configuring application listener of class listeners.ContextListener
    java.lang.ClassNotFoundException: listeners.ContextListener
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3753)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4321)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:476)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
    2004-07-05 16:39:41 StandardContext[InterMenu]Error configuring application listener of class listeners.SessionListener
    java.lang.ClassNotFoundException: listeners.SessionListener
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3753)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4321)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.core.StandardService.start(StandardService.java:476)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
    2004-07-05 16:42:45 StandardContext[jsp-examples]SessionListener: sessionCreated('DB609499144F90179F129F32E4D3B45C')
    2004-07-05 16:42:53 StandardContext[jsp-examples]SessionListener: attributeAdded('DB609499144F90179F129F32E4D3B45C', 'numguess', 'num.NumberGuessBean@d5c0f9')
    2004-07-05 16:57:13 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-07-05 16:57:13 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-07-05 16:57:13 StandardContext[jsp-examples]SessionListener: attributeRemoved('DB609499144F90179F129F32E4D3B45C', 'numguess', 'num.NumberGuessBean@d5c0f9')
    2004-07-05 16:57:13 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-07-05 16:57:13 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-07-05 16:58:06 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-07-05 16:58:07 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-07-05 16:58:07 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-07-05 16:58:07 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-07-05 16:58:07 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-07-05 17:04:08 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-07-05 17:04:08 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-07-05 17:04:08 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-07-05 17:04:08 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-07-05 17:04:18 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-07-05 17:04:18 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-07-05 17:04:18 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-07-05 17:04:18 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-07-05 17:04:18 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-07-05 17:13:19 StandardContext[jsp-examples]SessionListener: sessionDestroyed('DB609499144F90179F129F32E4D3B45C')

  • Cannot get long table on second page of Smartform

    I want to create a Smartform with 2+ pages. The first page is a letter, and the second and subsequent pages contain a table which could be one or more pages long.
    If I put the letter in the main window of the first page, and the table in the main window of the second page, I do not get a table.
    If I put the letter in the main window of the first page, and the table in a secondary window of the second page, then I get the table. But it truncates at the end of the page. It does not go on to multiple pages.
    If I put the table on the first page in the main window, then I get the entire table for as many pages as it takes to contain it.
    I want the letter on the first page, and the entire table on as many subsequent pages as it takes to contain it. What am I doing wrong?

    Hi ,
    Define the letter in the first page....if you think that the data is constant for the letter then define it in the secondary window itself and if you think its not then go for main window and in that table...
    Now coming to the second page define the data in the main window and also apart from that define the third page also which should be same as second page....
    in the second page set go to as third page and in the third page set go to as third page...
    Hope this will help.
    Regards,
    Rohan.

  • Smartforms : Second Page Main Window not being called

    Hi All,
    The smartform has 2 different pages, with totally different layout.
    This also include that the Main window of both pages are different, having 2 different tables to fetch data.
    The main window width sizes are the same on both the pages.
    I have already used the Command node to call the second page, which it does.
    The problem I am facing now is that the Secondary windows on page2 gets displayed, but the main window does not get displayed.
    I have put a break-point in the code of main window of Page2. When executing this, it does not get triggered at all.
    Now if I change the attribute of this main main window to secondary window and then I execute it then it gets triggered and gets displayed.
    I have to keep this window as the main window as there might be chances of data overflow which should then continue printing on the next pages, therefore I cannot make it as the secondary window.
    Please tell why the Main Window is not being called? (Note: Size of Main Windowin Page2  is same as main window in Page1)
    I have searched the SDN already and did not find a solution to resolve this problem.
    Thanks in Advance.
    Regards,
    Darpana.A

    Hi All,
    I have got the solution to this probelm.
    In Page1 Main Window I have Table1 and a command node to Goto Page2.
    Just after this command node I have added Table2 which earlier was the table in Main window of Page2.
    So currently the Main window in Page2 has nothing included in it.
    Anything after Command gets printed into the next page. Table2 is a part of Main Window in Page1 which gets printed into Main window of Page2.
    Thanks for all your replies.
    Regards,
    Darpana.A
    Edited by: Darpana Ahire on Aug 21, 2009 9:59 AM

  • Getting Runtime error while adding Second page in Smartform.

    I added 2 pages in smartform. When I worked with single page. smartform working properly. Now I added one more page(i.e Second page) I am getting runtime error.  ("The current ABAP/4 program encountered an unexpected
    situation".   A RAISE statement in the program "SAPLSTXBC" raised the exception
    condition "ERROR".)   When I debug this standard program Something width problem getting on line number 110. Both width not matched so program raising exception. Can you please tell me to solve this problem what changes will I do in my smartform?

    Please let me know the details of each page.
    Error can occur in these cases.
    1) You copied the first page to second. and later you change the width of second page
    2) You created the second page and there is template in second page. each column width is not matching with the total width of the template.
    3) windows width is greater than the page width
    Please have a look.
    Regards,
    Nikhil
    Edited by: Nikhil V Kumar on Jul 27, 2010 12:16 PM

  • Data not coming on second page of smartform

    Dear All,
    I am having a smartform . The smartform displays 7 items on first page 7 on next and so on. The problem is if there are total 10 items , the smartform is showing 7 items correctly on first page but showing only one item i.e 8th item on the second page. But it is showing the total in the footer correctly i.e total of all the  10 items .
    Please suggest wht can be the problem.
    I tried everything from my side but all in vain.
    Plz Suggest.
    Manik L Dhakate

    Hi,
    In the default setting, the next page is the page itself.
    If a page is processed (filled) and processing of the form is not finished yet (if not all texts or data
    are displayed), the system processes another page. The page used as next page can be
    determined statically during the form definition (Next page) or dynamically at runtime (manual
    page break).
    The new page is the static next page. If a new page is called by a manual page break with
    page specification within the main window (dynamic next page), the system processes this
    page.
    This page does not contain a main window and no static next page exists
    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

  • Application cannot connect to second page when oracle is used as database.

    Hi,
    I have an application which works on MySql database. But now I need to change the database to oracle. I have installed everything required inorder for the oracle to work. I am using active record store for my application. For that I have created sessions table using
    rake db:sessions:create
    And I have migrated to my database using
    rake db:migrate.
    Then I uncommented the following line in environment.rb:
    config.action_controller.session_store = :active_record_store
    Then If I start my application using IE, First page is shown, when I click on the second page link,
    I got HTTP 500 Internal Server Error saying
    The website cannot display the page
    HTTP 500
    Most likely causes:
    The website is under maintenance.
    The website has a programming error.
    What you can try:
    Refresh the page.
    Go back to the previous page.
    More information
    I am unable to understand what the problem is. When I comment the line config.action_controller.session_store = :active_record_store application works, but the sessions table is not updated. when I use MySql as my database, everything works fine.
    Can someone please help me with the solution? what may be the mistake am doing?

    Please provide more information about this issue.
    Are you using oracle_enhanced adapter? (activerecord-oracle_enhanced-gem)
    Which Rails version are you using?
    Can you look in your log file what exception you are getting? (if running in development mode then it should be in log/development.log)
    Raimonds

  • Smartforms: footer doesn't appear on the second page

    Hi,
    I have a smartform with two pages First Page and Next page. On the first page I have main window and table in it to display data. I have also footer window. On the second page I have main window without table node and also I have the same footer as on the first page. The idea is when data reaches the maximum lines on the main window to continue on the next page and the footer should be displayed only after the main window ends. If it is on the first page after the data should be the footer, if it is on the second page footer should apper only at the end of second page.
    Everything works fine, except if we have more than one page the footer is not displayed.
    Please advise !
    Thanks,
    Stefan

    HI Stefan,
    Keep that footer window only after main window.
    Regards,
    Madhu.

  • Second page in smartforms

    hi,
    i want to display second page in smartforms with different condent in that, i called second page in main window of 1st page using command,the problem is i want to display total window of 1st page after the end of main window,but now the second page was displayed because of the newly inserted command but the total window is not getting printed.
    how can i solve this problem can u please help me
    Sugumar G

    HI,
    If your total window is in a secondary window then. Give the command window after the secondary window. So only after the total window is printed your second page will be triggered.
    Or
    If you want to get the second page in the same place and want to print the total window after the end of main window then get the total window to the second page. Take a variable and do the total in the first page main window and display it in the second page only after everything is done in the first page main window.
    Regards
    Sarves

  • How to Display 10 columns in first page,next columns in second page in smartforms in sap.

    In internal table having 30 columns of data.
    i have to display like
    first 10 columns in first page with page no :1
    second 10 columns in second page with page no :2
    third 10 columns in second page with page no :3
    how to develop this.
    please how develop this in smartforms .
    please help .

    Hi,
    You dont have to divide the data.
    You must be using TABLE node in your smartform to display the table.
    Copy the node 2 times more so that the total table nodes become 3.
    Now, change the headings in each table according to the column you want to display.
    Change the fields of the workarea in the ITEM lines accordingly.
    Add a COMMAND node after each table and set it to go to next page.
    E.G :
    Suppose I have a table with 6 columns and I need to display 2 columns in a table then page break.
    Work area name is WA.
    Then first table will have headings : FIELD1 FIELD2
    Items will have field     :     WA-FIELD1 WA_FIELD2
    COMMAND NODE : Go to Next Page
    Second table will have heading : FIELD3 FIELD4
    Items will have field     :     WA-FIELD3 WA_FIELD4
    COMMAND NODE : Go to Next Page
    Third table will have heading : FIELD5 FIELD6
    Items will have field     :     WA-FIELD5 WA_FIELD6
    So, same table with same work area will be used 3 times, displaying different set of columns in each TABLE node.
    Regards,
    Ashish

  • How to call second page in Smartform without calling first page

    Hi Gurus,
    I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
    For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
    Thanks in Advance
    Gautam

    Hi,
    The smartform will always start with the first page in the structure by default.  However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
    Regards,
    Nick

  • I cannot surf web as FireFox keeps telling me it cannot find the page I am seeking, but will finally bring it up on second or third try. Judge MacLaughlin

    When trying to access pages on the Web from links in Email messages, Firefox [6.0.2] will come up with an error window stating it cannot locate the page sought. If I start over it usually brings up the page, using the SAME link, on the second or third attempt.
    As a Firefox user for several years with little or no problems, this is erratating and frustrating. I am on the verge of discontinuing Firefox and trying another program other than IE.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites

  • Smartform problem how to make second page main window dynamic?

    Hi SAP Community,
    I am facing a problem with designing a smartform. I have taken a table in the main window of the first page, and the main window length varies according to the number of entries in the table. If the records are more than that can be adjusted in the first page then the ramaining records move to the second page main window. After the second page main window i have defined a window which i have marked to get displayed after the main window, but the problem i am facing is that that the second page main window is geting overlapped with the window defined to come after it. Can any one help me with how to control the length of second page main window dynamically.
    Regards,
    Tushar

    Hi,
    Normally, to trigger next page the main window is mandatory.
    However, if the contents of main window are not sufficient enough to move over to next page then the next page would not get trigerred.
    Moreover, please check whether the table of contents in the first page are also existing in the next page otherwise you need to trigger a new page by using a command.
    Also please direct the next page of SECOND page to SECOND itself and check.
    Regards,
    Ram

  • Smartforms- Second page

    Hello All
    I am developing a Smartform. It has two pages. say Page 1 and Page 2 .
    page 1 has a main window and page two has a secondary window .
    I have given Next page of Page1 as Page 2 and for the PAge2 next page is Page 1.
    Now if there is more data on the main window then the data flows and the PAGE 2 is fired .
    and I see the contents of Page 2 also.
    But if there is not sufficient data on Page 1 , the page 2 does not get fired .
    Please let me know how to fire the mandatory page 2.
    I want this because PAGE 2 is my terms and conditions page , and I want to print page 2 at the back of page 1.
    Any help how to fire page 2 even if page 1 does not have sufficient data is appreciated.
    Regards
    Rohit Bansal

    hi
    you can take your text of second page in folder and try it.
    may be it will done.
    thanks,
    Prashant.

Maybe you are looking for