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

template & table in smartforms

Former Member
0 Likes
2,021

Hi

can u plz explain me how get table and template in the smartforms

can u give me the step by step procedure for this and where actually templates and tables used

regards

Siri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,641

When you want to divide your line display then you go for a template / table.

The difference is template is static, meaning, you know how many rows you want to deal with. With a table it is dynamic and depends on the no. of rows of the internal table you are dealing with.

Template - If you want to display multiple fields in the same line, then you create a line type in the template and do it.

Regards,

Ravi

8 REPLIES 8
Read only

Former Member
0 Likes
1,642

When you want to divide your line display then you go for a template / table.

The difference is template is static, meaning, you know how many rows you want to deal with. With a table it is dynamic and depends on the no. of rows of the internal table you are dealing with.

Template - If you want to display multiple fields in the same line, then you create a line type in the template and do it.

Regards,

Ravi

Read only

0 Likes
1,641

In the Page just Create a Window which will trigger after the Main Window . in that window just create the Template and use this as you want

TABLES=>

In forms of business procedures you usually want to list details such as open items of an invoice. You can use a Smart Form to display this data in a table. You can design the layout of the table independent of the number of lines it will contain. The size of the table depends on how much data the application program passes to the form at runtime (unlike with templates, where you specify the number of columns and lines explicitly). The table can cover one or more pages, depending on the number of lines. This is why you display tables in the main window.

TEMPLATES=>

Use node type Template to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table.

To create a template, define a table layout to determine the cell structure for each line. The cells are used to display the contents of the inferior nodes of the template node. This allows you to position text and a graphic side by side (see Displaying Graphics in Templates).

The template node is also suited for label printing.

GO THROUGH THIS LINK

http://help.sap.com/saphelp_nw04/helpdata/en/4b/83fb4edf8f11d3969700a0c930660b/content.htm

Read only

0 Likes
1,641

Hi Ravi

Thank u

Siri

Read only

0 Likes
1,641

Hi Kishan

thank u

Siri

Read only

Former Member
0 Likes
1,641

Hi Sireesha,

Templates are used at the place like header.You have four rows in the header of your page so you can create the template there and put four rows in the template.Means at static places we used to create template.

At dynamic places we need to create tables like there are many line items for a PO so we have to create table for displaying teh line item.We do not know how many line items will be there.It takes the data directly from the internal table.

Right click on the window in which you want to create the template.Create - > template.Set the width less than the window width.Go to Details add so many entries that you want the no of rows in the template.Set the width and height of each row of the template here.Press table painter and come back.Your template is created.Right click on the template and add the process line and the texts there.

Creation of table.

right click on the window. Create - > table.Set the width as per your requirement.Go to details and addone line for the whole table set the width and heght of the table.Press table painter and come back.Go to data tab check internal table and put your internal table and the work area here.Your table is created.Go to main area and put your field texts and field values in the table

Message was edited by: mukesh kumar

Read only

0 Likes
1,641

Hi Mukesh

Thank u

Siri

Read only

Former Member
0 Likes
1,641

Hi Sireesha,

You can go through this document to have an idea of using Templates and tables in smartforms.

http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms...

Regards,

SP.

Read only

0 Likes
1,641

Hi Prasad

Thank u

Siri