I wanted to create two windows that acts like two main windows.
The upper part contains the original copy then the lower part should contain duplicate copy of the upper part.
Heres a sample output:
How will I do it? Please help...
i copied main window into window w1, its type is main window only. in layout, w1 ia at top, after that main window.
then text in w1 is getting displayed, when i kept main window at the top n w1 below it, its going into dump.
can u plz tell a solution for this.
Edited by: Mytri on Mar 11, 2008 11:36 AM
Smartforms does not allow two main windows, but you can achieve what you need in one main window using two tables.
E.g. Your main window contains
Original Copy: (as a text element)
material1 text (as a table)
Command (to trigger a new page)
Duplicate Copy: (a text element)
material1 text (as a second table)
Hope this helps.
I've set up a simple form that follows the approach and it seems to work fine. If you want to add some more detail on how your form is structured this might help.
With regards the standard fields, there are system fields for the page number (SFSY-PAGE) and page name (SFSY-PAGENAME), but I don't know of a flag for a new page.
I have a smartform and my requirement to as follows.
In first page i have a main window where data is printed in a table, now in this table i need to print only first 6 rows and remaining rows should be printed in next page but the layout of the next page would be different than the 1st page main window.
So when i am trying to create a main window in next page with different layout and this second page can extend to diffent pages based on the data in table but i am getting short dump when i am creating a main window which is not similar to 1st page
Is it not possible to have two different main windows in two pages. Is there is constraint that we cannot create different main window. If no then how do i create two different main windows.
Basically i am getting short dump when i am creating a window type as main , i havnt put anything in the window yet .
If you want to display things different on page2 than on page1 then you dont need to alter any wondows for this.
Use either other windows or the same ones, but unaltered.
But everything you print in that window is printed within a node, or even a folder. Those nodes/folder have conditions.
Just make other nodes/folders with the condition SFSY-PAGE = 2, if you have a special layout in mind for exactly page2.
Dont forget to add a SFSY-PAGE = 1 condition to all the nodes/folders you just wish to print on page1.
sounds simple? it is!
Smartforms do not allow 2 main windows inside a single form. You can only use one main window.
What you can do is create 2 tables inside your main window. Just before the start of the Duplicate table make use of a COMMAND line to forcefully shift the printing on the 2nd page.
Hi eventhough its too late but Iam seeing still we are struggling with this Issue ...I solved by making a customised program ZRFFOUS_C and assigning it in FBZP ..Its working fine Iam able to display two line items Using a temporary Internal table with AT LAST statement and control_form function...If anyone required code you can message here.,
There is no mandatory to give second page a next page since I think you are displaying static data in that page (page2 cannot point to itself.) and if you are displaying dynamic data then I don't think giving next page as Page2 for Page2 doesn't hangs .FYI look at standard script of Payment advice F110_D_AVIS page NEXT contains its next page as page NEXT..
Thanks Manju for coming back with reply.
Ya you are right, i dont know why i was reading "with" as "without". Finally it worked when in condition i wrote next page as page2 for page1 and page 2 for page2. But my first page still does not print the main window table. Though its printing for the second copy. Just for more information, my second page is just same as first page - only heading changes - so both have main windows. Also, suppose page 1 extends to 2 pages because of more items, then page 1 and page 2 both has more than 1 page - lets say 2 pages. So my 2 pages of 1st page prints 1 of 1 and 2of1. And 2nd page prints - 1of2 and 2 of 2. But i just want it as 1 of 1, i of2 ; and then for second page two copies i need of 1 and 2 of 1. Else putting both pages in same SF would not suit my requirement.
Thanks for your reply,
this explains for 2 pages with main windows scenarios:
i dont know why do you want to create two three main winodws!
we cant use the following steps?
1.create one text area say text1( for heading/ document part for orginal table)
2.create a table right under the text1 and that would be your original table, say table1
3.again createone more text area say text2(for heading / document part for duplicate table)
4 copy table 1 and paste it right under text2.
- to copy and paste under text2, copy table1 and paste it somewhere in main window then drag and drop right under the text2.
dont go for seconadry windows! one simple page and one main window can make it much better
And some more informations,
only one main window is allowed to one page,
if you create more pages with more main windows on them, make sure you follow the same height ,width for the main windows.
main windows are dynamically growing with respect to the data and can be extended to next page automatcally on massive data
I am looking to create the text shown in pic with 18 as number beside the sub-total table. Sub total page is part of main table. I am unable to bring the text (bank details) right after the main table and beside (left to) sub-total box.
I tried template in table, table in table etc but i could not do the right thing.