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

Similar Messages

  • 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

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

  • Problem with viewing the next page on "My Wish List"

    Hello: "My Wish List" page in the iTunes store won't let me see page 2 (or higher). Even when I click on the obvious icon labelled "2" or "next" (as in "next page"), the page stubbornly remains on page 1.  This seems ridiculous, but I'm wondering if anyone else is having this gnat of a problem?  Any suggested solutions welcomed -- thanks in advance. Oh yes, I'm using iTunes 10.4.1.

    While playing any song on your iPod, tap the artwork to bring up the scrubber bar and additional controls. On the left hand side is a option for repeat. You want to make sure this icon is white (meaning it is set to Off). If it isn't tap it either one or two times to change its current setting.
    Any luck there?
    B-rock

  • Problem in connecting to next page after login

    i am facing a problem in searching that which method comes in connecting to a new jsp page in the coding of the servlet of login form...
    and please tell me the code too that how to implement that method..
    I'll be very thankful to yo all.....
    in waiting for your answer. ABHISHEK PATEL.. +919407270599..

    In the future, please post Servlet related questions at the Servlet forum.
    javaDB2forums wrote:
    i am facing a problem in searching that which method comes in connecting to a new jsp page in the coding of the servlet of login form...
    and please tell me the code too that how to implement that method..Your question is really vague. Are you asking how to forward or redirect a request? If so, either use RequestDispather#forward() or HttpServletResponse#sendRedirect().
    in waiting for your answer. ABHISHEK PATEL.. +919407270599..This isn´t a contact advertisement forum. This is a public discussion forum.

  • How to have column headings re-print on next page when printing?

    When I make a document in Numbers '08, that requires more than one page, how do I get the column headings to print on the other pages?
    I have looked at 'Print View', but cannot edit what I see. Please help!

    I no longer use Numbers '08 but if I remember well, the soluce is to activate the "Show Print View" mode from the View icon available on the left edge of the toolbar.
    It offer:
    Show/Hide Print View
    Show/Hide Layout
    Show/Hide Rulers
    Show/Hide Format Bar
    Show/Hide Comments
    Yvan KOENIG (from FRANCE samedi 4 juillet 2009 18:04:06)

  • Table footer printed in next page without upper border line

    Hi Experts
    I am faceing a problem regarding printing of smartform. I have 2 tables under one LOOP control, TABLE2 and TABLE1 respectivelity. TABLE2 display the Header data and TABLE1 displays the Item data under Main window.
    TABLE2 has no ROWs  under table Footer section. TABLE1 has footer and I want to print the TABLE1 footer according to the page size, for that I have added a Folder under TABLE1 footer section and then create the line type under that Footer, also check the Page Protection check box. I manage to print the Footer in next page according to the page size but when the Footer goes to next page for printing the upper line border of Footer section is not dislayed.
    Please give some tips or example, how to manage the Footer at print time.

    Hi,
    Yes your problem is common because of two different line types while you are selecting the pattren the
    pattern is assuming that the pattern is selected for the entire two line types.
    solutions are
    1). Use same line type for both footer and item
    2). create a window with a template and copy the same for both the pages and put a check box
        in the conditons of your window as only after end of main window.
    3). Create windows with the lines you required with the postions(but not advisible because page numbers or line items lenghts are dynamic) .
    Thanks,
    Phani.

  • Continuation of line item data to next page in SmartForm

    Hi,
    Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
    If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
    Please try to send ASAP.

    You can print total by reading page numbers.
    Ex: IF <current page> EQ < next page number>
      Print total.
         ENDIF
    Regards,
    Sairam

  • Next page problem

    Hi ,
    I am having three pages in my service invoice layout first,next,summary .
    it is like this : page : first nextpage : next
                        page: next  nextpage : summary
                        page : summary  nextpage : summary
    my req: there is header change for next  and summary page. so whenever data present in the main window is fully printed then only summary page should start printing .
    but my case problem is whenever data exceeding more than one page for next the header is changing and it is dispalying the summary header .but as per my requirement it should only display next header  and when data present in the next is totally printed it should call summary page.
    can any one help me in this ? pl let me know if my question is not clear.
    Regards,
    Pdp

    Hi Sandra,
    it is regarding the scripts .
    I will explain more detal .
    it is like this : page : FIRST nextpage : NEXT
    page: NEXT nextpage : SUMMARY
    page : SUMMARY nextpage : SUMMARY
    In my case we are maintaing same itemheader coloumns for FIRST and NEXT   ,different  itemheader coloumns for NEXT and SUMMARY pages.
    eg : if the output is printing 4 pages then data will start printing on page FIRST then NEXT then SUMMARY .IF data present in main window is more in NEXT page then it should print in 3 rd page with NEXT page iteamheaders.It should print in this manner .FIRST->NEXT->NEXT->SUMMARY .
    But in my case what happening is for 3rd page it is printing SUMMARY page itemheaders  .
    how can we know whether total data present in the mainwindow of next page is printed fully ?

  • Regarding SAP SCRIPTS - NEXT PAGE FUNCTIONALITY

    Hi all,
    Can anybody tell me how to get NEXT PAGE FUNCTIONALITY   in SAP SCRIPTS. Means if Data in 1st page does not fit it should go to next page and print.
    I had declared 2 PAGES already in my LAYOUT SET.
    How can i achieve above functionality.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi Rich heilman,
    I had declared first page as PAGE1 & its Next Page attribute as PAGE2 which is also declared already.
    But still it is not showing second page when there is over flow of data.
    does we need to write following code any where in layout.
    IF &PAGE& EQ = 1
    NEXT-PAGE
    ENDIF
    please solve my issue.
    Thanks & Regards,
    Rayeez.

  • Scroll paper to next page

    Hi all,
    I am working with a smartform to get print from dot matrix printer.Suppose I have printed  information upto half of the paper.As soon as the printing is finished, my paper should scroll upto the next fresh paper automatically so that it'll be in a ready position for the next print.How can I do this ? Please help.

    hi jaysri,
                thanks for replying. i have tried by giving the page format in the tray info.
    But still its not scrolling to the next page while printing next one.Is there anyother setting i need to make.
                                  i have given the page format as 10 * 12 inch  which is the size of the paper.
    regards,
    prasad

  • NPE error when navigating to next page based on lov selection

    hi there am having problem whn navigating to next page based on lov selection,when i select value and click the button to navigate am geting NPE ERROR
    {code}
    <DCUtil> <findSpelObject> [598] DCUtil, returning:oracle.jbo.uicli.binding.JUFormBinding, for uam_view_pageDefs_SelectOrgPageDef_WEB_INF_Updatetaskflow_definition_xml_Updatetaskflow_definition
    <DCIteratorBinding> <releaseDataInternal> [599] Releasing iterator binding:variables
    <DCIteratorBinding> <releaseDataInternal> [600] Releasing iterator binding:UpdUamOrganisationLovIterator
    <DCIteratorBinding> <releaseDataInternal> [601] Releasing iterator binding:UpdUamOrganisation1Iterator
    <DCIteratorBinding> <releaseDataInternal> [602] Releasing iterator binding:UamUserdetailsViewVo1Iterator
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: java.lang.NullPointerException
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        ... 38 more
    Caused by: java.lang.NullPointerException
        at showSelectedOrg(OrgDetails.java:2455)
        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:597)
        at com.sun.el.parser.AstValue.invoke(Unknown Source)
        at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
        ... 45 more
    THIS IS THE LINE AM GETING THE ERROR
    method.getParamsMap().put("rowKey", newVal);
    <af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
                                  required="true"
                                  id="soc1" autoSubmit="true" valuePassThru="true"
                                  contentStyle="width:145px">
                <f:selectItems value="#{bindings.Organisationid.items}" id="si1"/>
              </af:selectOneChoice>
    <af:commandButton text="UpdateOrganisation"
                                id="cb1"
                                action="#{pageFlowScope.addMember.showSelectedOrg}"/>
    public String showSelectedOrg() {
    /* if(getorgids() == null ||getorgids().equals(null)){
    JSFUtils.addFacesErrorMessage("Select Atleast One Organisation");
    JSFUtils.showFacesErrorMessage("Select Atleast One Organisation");
    BindingContext lBindingContext = BindingContext.getCurrent();
    BindingContainer bindings = lBindingContext.getCurrentBindingsEntry();
    // get the list binding for the Organisation lov
    JUCtrlListBinding list = (JUCtrlListBinding)bindings.get("Organisationid");
    // get the selected index from the list which is stored in the Orgidd1 attribute
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("Orgid1");
    Integer selid = (Integer)attr.getInputValue();
    // load the listdata
    Object row = list.getDisplayData();
    // get the selected row from the list
    Row lFromList = (Row)list.getValueFromList(selid);
    // from the row we get the PK the orgnasationId
    Object lAttribute = lFromList.getAttribute("Organisationid");
    Object orgname = lFromList.getAttribute("Organisationname");
    Number newVal = (Number)lAttribute;
    String neworg = (String)orgname;
    _logger.info("Information: selected Organisation = " + newVal);
    System.out.println("neworg " + newVal);
    System.out.println("testorg " + neworg);
    selectedState = neworg;
    // get the MethodAction for setCurrentRowWithKeyValue
    OperationBinding method = bindings.getOperationBinding("setCurrentRowWithKeyValue");
    // set hte needed parameter as the organisation id
    method.getParamsMap().put("rowKey", newVal);
    method.execute();
    // after execution check for errors
    List errors = method.getErrors();
    Exception ex = (Exception)errors.get(0);
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), "Select Atleast One Organisationtest");
    FacesContext.getCurrentInstance().addMessage(null, msg);
    // keep on page in case of an error
    // navigate to the next page
    return "show";
    {code}
    am in jdeveloper 11.1.1.6.0

    adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
    Still the same error. The stack trace still points to it, you only need to read it carefulle
    javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    Caused by: java.lang.NullPointerException
        OrgDetails.showSelectedOrg(OrgDetails.java:2456)
    The origin is
    method.execute();
    and the real reason is
    MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
    What does it tell you?
    Timo

  • 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

  • Unable to see back page in print preview

    Hi Experts,
    My requirement is to print terms and conditions on the back side of the page.
    So i have created two pages 1.First and 2.Back. On pages window , in standard attributes,I declared 'First' in Page and 'Back' in Next page.And print mode i had set to 'D'-Duplex.While seeingthe print preview of the invoice i am giving the logical destination as 'LOCL'.
    I think this is the standard procedure we follow to print anything on the back side of the page.But i am not getting the back page in the print preview.
    Could anyone help me out if there is anything else that i have to do to solve this issue.
    Thanks in advance.
    Regards,
    Praveen.

    Hi Praveen,
    I have worked in this scenario,,
    In print preview you are unavble to see back page, in print preview it seems as front page onlu, if you give print, in print out your able to see back page.
    Regards
    Jana

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

Maybe you are looking for

  • Apple Mail specific domain domain \ username does this still work for Mavericks?

    THIS DISCUSSION IS ARCHIVED Where do I include Exchange domain in Mail setup? 10212 Views 8 Replies Latest reply: Aug 18, 2010 2:37 PM by jruano   Level 1 (10 points)  mike_donahue  Jun 2, 2010 4:46 PM  Our company is running Exchange 2007, OWA enabl

  • Newbie Question: What happens if I get a new PC?

    I just received a black video iPod for Christmas. So far, I've been able to buy, download and watch some TV shows and music from iTunes, and transfer some audio books from CDs and I love it. I have everything on a manual setting. The problem is my PC

  • Swf won't show in Chrome

    Howdy, I've published html+swf from flash cs5 and it won't show in Chrome. all is looking well in Firefox & IE though... Here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <h

  • Can v240 disks be moved to v440 and have a chance of working?

    We have a v240 running Solaris 10, and an application that I don't want to go through the pain of reinstalling on a new system right now. Can I just move those disks to a v440 for an easy upgrade? At first I thought the idea was laughable, but then I

  • Help needed in Network Applications

    Hi, This is my first message in this forum, I am a newbie to J2me and interested in developing Network applications. What will be the best way to start with? I mean any book or tutorials that have steps to build a simple network application that can