Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms: Layout Design Problem

Former Member
0 Likes
1,163

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

1 ACCEPTED SOLUTION
Read only

marilyn_pratt
Active Contributor
0 Likes
944

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

10 REPLIES 10
Read only

Former Member
0 Likes
944

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.

Read only

marilyn_pratt
Active Contributor
0 Likes
945

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

Read only

0 Likes
944

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

Read only

0 Likes
944

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

Read only

0 Likes
944

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.

Read only

0 Likes
944

Dear Pratt

Yes , Its under the Footer ->Row type->Cell2->Text3 & text4

Plz tell me this

Thnx

Moni

Read only

0 Likes
944

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

Read only

0 Likes
944

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

Read only

0 Likes
944

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:

https://websmp101.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=BC470&COL...

Cheers,

Marilyn

Read only

0 Likes
944

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.