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

Similar Messages

  • 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

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

  • 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

  • Not printing the Second Page in SMARTFORM

    Hi,
    I am working on Purchasing Smartform... I have created a layout with 2 Pages.. In 1st page I have the Data and in 2nd PAge i am having Terms & Conditions.. But in the output 2ndpage is not printing.. Please help me regarding this issue...
    Thanks in Advance
    Muralikrishna

    >
    muralipsharma wrote:
    > Hi Arul,
    >
    > I did what ever you said in previous message, but still i am not printing the Page2... you said that go to COMMAND node, for which window I have to create COMMAND node.. I have created a COMMAND node for MAIN window in FIRST page.. but still its not displaying...
    > Actually in my First page I am having the data and in second page I am having Terms and Conditions in MAIN window..
    > Thanks in Advance,
    >
    > Regards,
    > Muralikrishna
    >
    > Edited by: muralipsharma on Jul 30, 2010 3:05 PM
    is the first page completely filled with data or do you always want to print the second page no matter if there is an overflow or not ?
    so you have defined a new page like 'NEXT' .
    then in the 'FIRST' page create an event and a command and check next page.

  • Problem in displaying second page in smartform

    hi,
    I m trying to display two pages (page 1 and page 2) in the smartform.
    I m using command (of flow logic) in the main window of first page to achieve this.
    While i m able to see the output by running the Smartform FM stand-alone, i cant see the same while i run it through driver program.
    Does it require any special conditions ? any config issues??
    Pl help...

    On the first page have you given the next page in "General Attributes" Tab and in the command also.,
    Check there must be the probelm wiht either of these two.
    assign points if it helps.
    -Gaurang

  • Data printed incorrectly on the second page of smartform

    Hi all,
    I need to create a smartform where I have to 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,Im planning to use a template in a secondary window.
    However for the item data,i need to use a table (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.
    However I am facing an issue now:
    At the end of the first page,2 fields of the line item data are printing and the remaining 2 fields are printing on the next page BUT after the 1st row !
    Can anyone suggest why this is happening?

    probably a difference in height between the 2 columns of the left and of the right (check paragraph and character formats, cell margins, borders, etc.)

  • Changing the Window positions from second page

    I want to change the position of Windows (x, y coordinates) from second page in smartform.
    How to achieve this?

    Why can't you change the positon of windows ?? just by going into form painter of second page you can change it or from the output options of each window

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

  • 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

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

  • 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

  • Print Report Output in PDF Format

    :-) Hiee E'body I generated the output of a Report(developed in Report Builder 6i) in PDF format. The output file is created properly and the PDF file gets displayed on the screen in proper format but when i try to print the PDF file it gets printed

  • Oracle Wallet manager password for B2B Host trading partner

    Hi All, I have exported one trusted certificate from B2B midtier wallet manager. I have saved it as ora_wallet.txt and and oracle.tip.adapter.b2b.WalletLocation refers to its path. I associated host trading partner delivery channel with non-repudiati

  • IDOC mapping issue-

    dear experts, my req is- I have 1 node suppose Address Address-       city       Hosue No. now based on the value of city I have to map house No with IDOC fields. for example if City = Delhi                       map House no with E1EDKA1-ADRNR      

  • How to active SAP for Retail

    Hi All, we completed install SAP system. but now we can not active SAP for Retail. pls let me know how to active SAP for Retail Thanks and Best Rgrds

  • Lumia 730 gps not working

    I am using Lumia 730.its gps is not working.previously I am owned Lumia 620, it is good on gps.how to fix my issue?I want a solution.