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 .