0% found this document useful (0 votes)
33 views5 pages

5 - Create Template

1. Templates are used to print limited records from a database in a formatted layout. A template is created by adding secondary windows, cells, rows and columns to a template page. 2. Text elements are added to the cells and their line and column positions are specified to indicate where data should print. The text within each element is linked to database fields to print the data. 3. The template is then saved, activated and executed to print a preview of the formatted output with data from the specified database fields in the correct cells.

Uploaded by

krish9.900000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views5 pages

5 - Create Template

1. Templates are used to print limited records from a database in a formatted layout. A template is created by adding secondary windows, cells, rows and columns to a template page. 2. Text elements are added to the cells and their line and column positions are specified to indicate where data should print. The text within each element is linked to database fields to print the data. 3. The template is then saved, activated and executed to print a preview of the formatted output with data from the specified database fields in the correct cells.

Uploaded by

krish9.900000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 5

TEMPLATE USAGE:

EXAMPLE: Create a template and print data in the template.


Go to T-CODE: smartforms and give a name (Name should start with z / y) and choose create.
By default, we get a main window and one page.

NOTE:
Generally, to work with Template we use Secondary window.
To print limited records, we use templates.
Main window is used to print data in table form.

Choose the page and create a window.

The newly created window is a secondary window. By default window is created at top left of
the layout .
To rearrange it choose Form Painter button then form painter opens. Then adjust the
window to requried height and width. Once adjusted again choose Form painter button to
close it .

Select the window and Right click createàTemplate


Then template is created under newly created window .We get the following screen .

On the right handside we have symbol. Select this pen symbol and make horizantal and
vertical lines .

First we made %c1 into two horizantal lines .

Observe two portions are obtained .( %c1 and %c2). Again I make %c1 into two portions
vertically . Check it in the following screen schot .
First Column
Second column

Here %c1 has two parts . Each part is called as Cell.


%c1 acts as one Row and two parts act as two columns .
%c2 acts as only one row .

According to our requirement we can partition the rows and columns to any number .

Now in our case we have total 3 different places to print the data .
1. First row and first column
2. First row and second column
3. Second row and first column ( If no columns are available then the entire row is considered
as one column .So column number is one only)

Now create the text elements as shown below . Right clickà createàtext.
Create the three text elements .
For each text,
1. Give the position where to print
2. what text to be printed .
To give the position select the text and choose Output Options and scroll down and fill Line
and Column

Line Column

Repeat the same for text2, text1 also. Then provide the text in Text1, Text2 and text3.

Select the text1 and go to General Attributes and Choose to give the text which you
want to print .
Text in text3.

Repeat the same for text1 and text2 . Finally save check activate and execute(F8). Again F8.
In Output Device give Lp01 and choose print Preview, we get the following output .

You might also like