‎2005 Mar 03 4:03 AM
Dear All
I have only one Smartforms page(First Page) having several windows and one Main Window at the bottom.
Main window has one node TABLE with header , Body and footer .
Now when this main window is getting more nos of records than its size then whole page is getting dispalyed as 2nd page and the output is dispersed also.
Where i m going wrong ? plz suggest and give some referrence .
Do i need to create SECOND Page and print that at page break(FIRST page) ?
Thanx
Moni
Message was edited by: md monirujjaman
‎2005 Mar 03 4:17 AM
Hi Moni,
Your Smartform should have 2 logical pages:
"First" and "Next"
"First" page should have the attribute of "Next" as a "Next page" attribute.
"First" page can have your several windows and your Main Window...when the contents of the table in Main Window overflow, they will automatically create a page break and thus invoke "Next" Page.
Next Page should contain Main window and its "next Page" attribute should also be "Next" page. If it also happens to overflow, it goes on to another "Next" page.
Cheers,
Marilyn
‎2005 Mar 03 4:16 AM
In order to print tables, this is usually the scenario:
a) Standard fields in mainpage + table
b) Table extends beyond first page
Solution:
a) Create two pages - first page refers to second page
b) Create a main window in first page
c) Create a main window in second page , increasing the length, but the width should remain the same in both these pages.
d) Second page should refer to itself
Let us know if it works.
Regards,
Subramanian V.
‎2005 Mar 03 4:17 AM
Hi Moni,
Your Smartform should have 2 logical pages:
"First" and "Next"
"First" page should have the attribute of "Next" as a "Next page" attribute.
"First" page can have your several windows and your Main Window...when the contents of the table in Main Window overflow, they will automatically create a page break and thus invoke "Next" Page.
Next Page should contain Main window and its "next Page" attribute should also be "Next" page. If it also happens to overflow, it goes on to another "Next" page.
Cheers,
Marilyn
‎2005 Mar 03 4:49 AM
Dear all
Many thnx for prompt answers.
I hav done that way now i have one problem :
Under Main window(At the bottom) -> node TABLE ->Footer ->in this Footer i hav
Declaration(Text3->Line Type 2) &
Authorised Signatory(Text3->Line Type 2)
that doesnt appear at the bottom(These 2 r getting printed immediately after the last Line Item)
when i have few nos of line items in the TABLE .
How do i always print those two (Texts) at the bottom ?
Plz help.
Thnx
Moni
Message was edited by: md monirujjaman
‎2005 Mar 03 4:54 AM
Hi Moni,
You want to make sure that the texts are subordinate to the "Footer" event that is part of the "Table" node.
Cheers,
Marilyn
‎2005 Mar 03 4:57 AM
Is this the footer of the table, or is this footer of the page ?
For footer of the page, you have to create a new window, and make sure that there is enough space to put your data inside the window.
Never used footer for a table, but I believe it would be used to calculate sum / something similar.
Best Regards,
Subramanian V.
‎2005 Mar 03 5:01 AM
Dear Pratt
Yes , Its under the Footer ->Row type->Cell2->Text3 & text4
Plz tell me this
Thnx
Moni
‎2005 Mar 03 5:34 AM
Hi Moni,
A Table Node has an event node called Footer. Footer subnodes (your texts) can be generated at the end of a paragraph or the end of the page according to attributes you set in the "Events Tab" of the Table Node.
cheers,
Marilyn
‎2005 Mar 03 7:06 AM
Dear Pratt
Thnx 4 this tips .
Do i need to keep the TABLE node in the Main window of the NEXT page also as in the FIRST page ?
Plz tell me this .
Thnx
Moni
Message was edited by: md monirujjaman
‎2005 Mar 03 2:37 PM
Hi Moni,
There is a rule in Page Windows which states:
Same window name = same contents
If you change something in the Main Window, the changes will propagate to <b>any</b> page in which the window appears, regardless of whether that is "First" or "Next".
As resources for these questions, you will find excellent answers in a book called SAP Smart Forms by Werner Hertleif and Christoph Wachter. It can be found at
http://www.sap-press.com/product.cfm?account=&product=H955
Here is some help Table Processing from help.sap.com
http://help.sap.com/saphelp_erp2004/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
Footer
With table output, besides using the main area for output of table lines, you will frequently print a header and footer. If the footer is printed at the end of each page, the output control must consider the footer height when determining the position of the automatic page break. Therefore, you must specify a height for the footer output. If you don't, then the output control cannot reserve any space at the end of the main window and thus not print the inferior nodes of the footer before the page break.
In addition, if you really wanted some in-depth training about Smart Forms, SAP Education offers BC470, a Smart Forms course. Info can be found at sap.com/education under Project Team Training-> SAP NetWeaver-> SAP NetWeaver-Buisnes Programming->BC470:
Cheers,
Marilyn
‎2005 Mar 03 2:45 PM
I agree the book, Marilyn Pratt, has mentioned is very good but so is the help at help.sap.com
You may refer to this :
http://help.sap.com/saphelp_47x200/helpdata/en/90/1d493a331311d5b696006094192fe3/frameset.htm
Regards,
Subramanian V.