How to Branch to next page in Smartforms

Hi all,
     In Smartform, i want to go to next page when all the records in the main window is displayed. For this I did Following thing,
1) created command node, did the neceeasry things like go to next page ...condtions given.
    I did this in main area of Page 1.
2) In Attributes of First page i specified next page as page 2.
    error- No output Window defined....although i defined Secondary Window with text.
Regards

I'm currently able to branch out to next page in smartforms but the data that is being displayed is duplicated
Ex. Page 1
data1
data2
PAGE 2
data1
data2
data3
PAGE 3
data1
data2
data4
Can anyone help/ provide advice?

Similar Messages

  • How to traverse to next page in smartforms

    hi all,
    help required in smartforms.
    i have a requirement in which i have <u>two pages</u> to be displayed <u>alternately</u> in smartforms,the first page is in <b>lanscape</b>,the second in <b>portrait</b>.
    the first page has a table in the main window so that if in case it doesnt fit in the first page print it should flow into next printout after the second page print( second page is static, i.e. the data displayed is same for all printout but it should repeat alternate).
    for eg.it should go like this...
           page1  ( table data ).
           page2  (static-same data to be displayed).
           page1  ( rest of the table data).
           page2  ( same data as above in page 2).
         till the end of the table in the first page.
        but the pages are in different layout..one in portrait and the second in landscape...cannot use main window in both pages as the window size doenst match as it doesnt fit in the page of one another...
    can anyone help me out....
    regards
    kiran

    Hi,
    Reduce the size of your main window. So that it can fit into your <b>portrait</b> Page. This is a workaround.
    Feel free to revert back.
    --Ragu

  • 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

  • How to Print next Page in smartform ?

    Hello ,
    I want to print next page in smartform.
    The situation is :-
    I am passing an internal table containing list of personal numbers.
    I have to print their details . Every candidate's detail should be printed on a new page .
    I have designed the whole form , but I am not print their details on a New Page.
    Please guide.
    Thanks in Advance.

    Hi, Nikita.
    Please Have a Look the following Link
    [MODERATOR MESSAGE: SapScript/Smartform questions go in FORM PRINTING forum|/thread/1360534 [original link is broken];
    So, Please Post Questions Regarding SapScript and Smartform in FORM PRINTING.
    1. First of all you need to set a Flag at the end of every Personal Number.
    2. Than Right Click on the object Like Main Window
    --> Create --> Flow Logic --> Command
    3. From First Tab of Command General Attributes Check the Check Box Go to New Page and Select Your Page
    4. In the Conditions Tab Give you Flag Condition.
    Hope will help you to solve out your problem,
    Please Reply if any Issue,
    Best Regards,
    Faisal

  • How to call the new page in smartforms

    Hi friends,
    How to call the new page in smartforms.
    Thanks,
    Ravi

    Hi,
    Create a command node and click the 'Go to new page' check box specifying the page u want to go.
    You can enter your condition for which it should branch to a new page in the 'conditions' tab.
    Regards
    Shiva

  • 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

  • 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

  • Next Page on Smartform

    Hi All,
    My smartform have 3 pages.
    Ist Page is showing the header
    2nd Page is showing the item details
    3rd page is showing the some other general details
    But I want to show the 3rd page only after printing all the item details ( 2nd Page).
    Please help how to do that?
    Regards,
    Nikhil

    Hi,
    don't declare u r third page,
    Arrange u r windows in the second page,
    but the hierarchy of windows is maintain after main window node.
    make all windows conditional i.e. only at end of the main window.
    and maintain next page as page2.
    if u have any line items it will call in next page or else it will print in second page,
    hope it will work,
    with Regards,
    Kiran.G

  • How can I forward next page, and then pop-up a download dialog box.

    My require is that pop-up a download dialog box after forwarding next page.
    I have read the coding in the processFormRequest of current page like below,
    but I find out that it only can pop-up a download dialog box,
    however, it can't forward the next page.
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/xxfm/fm002/webui/TEST001PG",
    null,
    OAWebBeanConstants.KEEP_NO_DISPLAY_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAException.INFORMATION);
    //set default file name: [YYYYMMDDhhmm_IN.EXCEL,FILE_NAME.csv]
    StringBuffer strFileName
    = new StringBuffer().append((pageContext.getCurrentDBDate().toString().substring(0, 16))
    .replaceAll("-","").replaceAll(" ","").replaceAll(":",""))
    .append("_IN.").append(strExcelFileName).append(".csv");
    //give csv file content
    BlobDomain csvFileBlob = (BlobDomain)am.invokeMethod("createCsvFile");
    //setenv
    HttpServletResponse response
    = (HttpServletResponse)pageContext.getRenderingContext().getServletResponse();
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename="+strFileName.toString());
    System.out.println("fileName : "+strFileName.toString());
    //download
    InputStream fileIn = csvFileBlob.getBinaryStream();
    long fileLen = csvFileBlob.getBufferSize();
    int readBytes = 0;
    int totalRead = 0;
    byte blockgbyte[] = new byte[65000];
    response.setContentType("application/x-msdownload");
    response.setContentLength((int)fileLen);
    while((long)totalRead < fileLen)
    readBytes = fileIn.read(blockgbyte, 0, 65000);
    totalRead += readBytes;
    response.getOutputStream().write(blockgbyte, 0, readBytes);
    fileIn.close();
    response.getOutputStream().flush();
    I don't know what's matter in the app, can you tell me how to deal with it.
    Thanks in advance.

    Hi there,
    I have a similar requirement. User will download search results in a CSV file after which I want either the page to be refreshed or to be able to goto a Confirmation page or navigate to another page.
    I tried using setForwardURL / forwardImmediately / redirectImmediately methods as well as redirectToDialogPage. Since we use pageContext.setDocumentRendered(false); and response.getOutputStream().flush(); methods, the HttpResponse is already committed.
    Hence, the page does not redirect to another page as Request is processed and Response is complete. In case of methods like setForwardURL A JSP forward redirects the same request object to the target URL.
    Can anyone help here to achieve the expected requirement?
    Thanks.

  • Button on page 0 - how to branch to new page

    I have a button (named 'P0_RUN_TASK') created on page 0 that I need to use to branch to other pages. The page to branch will depend on the values of other items on page 0. How do I do this? Application Process?

    Still some issues. I put thie text below in the process text. There is nothing in condition type that has a 'when button pressed' , so I just made it always to test.
    2 issues
    #1 not sure where you make it fire when a button is pressed from page 0.
    #2 It always bringing up the log-in page before directing me to the page I want to go to .
    apex_application.g_unrecoverable_error := true;
    owa_util.redirect_url('f?p=1:2');
    thanks!

  • Header Area of Table is not printing on Next Page in SMARTFORM

    Hi All,
    I am facing one problem while Developing a smartform for Delivery.
    I want the same data to be copied to the Next page which is coming on first page. I copied the Main window to Next page with all the details but the Header of the Table is not printing on the Next(Second) page.
    Please help me out regarding this...
    Thanks in advance for your help....
    Thanks & Regards,
    Digamber

    Hi,
    If you are talking about the table (which you created in the main window) and you want the header of the table to be printed on the next page. Is it because of overflowing that's why its printed to the next page?
    If yes, the header cannot be printout out.
    Just for your information. If you want a window in the first page to be copied to all subsequence pages, set the window type to be copies window.
    Hope it helps.

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

  • 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

  • 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

  • Going to next page in smartform

    Dear friends,
    I need ur help solving a problem in smartform.
    I need to add a new page and the first page should goto the next page (page2) on a condition.
    1. I created a new page (page2)
    2. In first page (in PAGE1 properties) I assigned PAGE2 as next page.
    3. At the end of MAIN in first PAGE1 I inserted a COMMAND where as next page
        I mentioned PAGE2.
    4. In second page (in PAGE2 properties) I assigned PAGE2 as next page.
    But this is not working and the command is not routing the first page to the second one. Any suggestions????

    Dear Anji,
    First of all Congratulations ! I see that u are the top contributor for quite some. Keep up the good work.
    Generally when the MAiN window info exceeds more than a Page then the print goes to second page . But the case is different here. I want the next page to be triggered each time Movement type (ITAB-bwart) is equal to '101'.
    In MAIN window of first page PAGE1 I have used a COMMAND and in command's Condition Tab, I mentioned the condition (if ITAB-bwart = '101') then it should goto the next page (PAGE2)

Maybe you are looking for

  • Selective regions in Color...help?

    Hello all... I've just recently begun using Color. After the initial terror subsided, I found it to be an intuitive, powerful program. Glad I finally had an excuse to use it; I'm now about half-way through color correcting a feature. The director has

  • Errors with with portal providers after upgrading database to 10.2.0.3

    Hello, We are receiving errors when trying to do anything with providers that we have created in Portal. The problems have started after upgrading the underlying database from 10.1.0.4 to 10.2.0.3 on RH Linux 3.0. Our version of Portal is 10.1.2.0.1

  • Info on AT-NEW command Pls

    Hello All, I just want an info. on AT-NEW and AT-END-OF commands ..Please any explain this or pls provide any docu.. for the same. Thanks, Kumar

  • Is there a download for extra storage on the ipad2?

    I have an ipad2 with 16gb of storage, and wondered if there was an app I can download to get either 32 or 64gb of storage

  • Slideshow export quality ( picture detail/file size)

    Iphoto has two ways to export a QuickTime movie: Method A via select "Slideshow" and method B via select "Album". A test with two identical slideshows (bare-bones; 4 identical photos, 3 sec displays, no music, no transitions, etc) has following resul