Skip to Content
0
Former Member
Apr 14, 2010 at 11:23 PM

Usage of Template and table

37 Views

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 --> Item 1

field1 field2 field3 -->Item 2

-

-

-

-

-

field 1 field2 field3-->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.

Now my ques is :

1.Is the above solution perfect for the output i need?Like do i need to use anything else in place of template/table etc???Any suggestions?

2.My Item data to be printed will be in internal table.Now when i loop at the table in form using my Internal table which I will be passing throgh my driver program,how will the records get printed one after another and continue printing on succesive pages?Do I need to create more then 1 page in my smartform and include the same details as in first page i.e. Template for header and table for Item details???In short,Page 2,page3 etc will be copies of Page 1?Like this how many pages should I create in my smartform as I know the no of line items only at runtime?

Please advise.

Thanks.