‎2008 May 28 4:40 AM
hi friends,
i am working on smartforms kindly let me know how we insert data in templates means how to assign values to those templates.
and if i use cell in lines then how to assign alues to those diff cells .
with regards
bhupi
‎2008 May 28 5:34 AM
Hi,
Template is used when the number of lines to printed. For example if there is requirement to print date and time at top left corner of the page as below :
Date : <Current date>
Time : <Current Time>
Then you need to create a separate window and right click on that window and select template. Once template is created, double click on the template and at right side there is Table Painter button is there, click that, so that another screen open. In that you need to specify how many rows you want.As per example here you need to give 1 to 2.
You need to split the line type into number of columns you want. Here we need two columns.
So that we need totally 4 cells. Hence we need to create 4 text-box and we also need to specify the text-box position, for that click on the text and give the text to be displayed and select the third tab(OUTPUT OPTION) on right side and give line and column number as (1,1) (1,2) (2,1) (2,2)
Regards,
Raghu
‎2008 May 28 4:50 AM
Hi,
After creating the template
double click on it .It will open with attributes.Right side click on template tab.There under name gibve some name
example
Name From to Reference Hight Unit 1 Unit 2 Unit
Row1 1 1 1 cm material cm type cm
like that you can give required column name in 1 2 3 4 5 and respective units like cm ,mm , ch,in,pt,.......
This units you have give adjust based on size of window....
Pls. reward if useful.....
‎2008 May 28 5:34 AM
Hi,
Template is used when the number of lines to printed. For example if there is requirement to print date and time at top left corner of the page as below :
Date : <Current date>
Time : <Current Time>
Then you need to create a separate window and right click on that window and select template. Once template is created, double click on the template and at right side there is Table Painter button is there, click that, so that another screen open. In that you need to specify how many rows you want.As per example here you need to give 1 to 2.
You need to split the line type into number of columns you want. Here we need two columns.
So that we need totally 4 cells. Hence we need to create 4 text-box and we also need to specify the text-box position, for that click on the text and give the text to be displayed and select the third tab(OUTPUT OPTION) on right side and give line and column number as (1,1) (1,2) (2,1) (2,2)
Regards,
Raghu
‎2008 May 28 5:54 AM
Hi,
Check this,its a very good document,having step by step procedure
http://help.sap.com/saphelp_nw04/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.sap-basis-abap.com/sapsf001.htm
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
You can use templates when there are static number of rows and columns means if the rows does not increase in the run time based on the database records.
If you want to display the data from the database table which will be changing dynamically based on the number of records in the database table then u can choose the Tables option.
Reward if useful
Regards,
Raj.
‎2008 May 28 5:57 AM
hello Bupi,
now you now how to create the templete in window right?
once you create the templete split that according to your requirement,
then create a text for each segment of the templete and in text you assign the segment(i.e matrix 1,1 . 1,2).
now you drag and drop the variables names from the left bottom corner to the respective text boxs.
Take care while assigning the text into the segments of template.
hope this is useful for you.
‎2008 May 28 6:05 AM
hi!
after creating the Template in a Window
1. Double click on it
2. a window for Template Opens
3. assign a name for Template
4. Right click on the Temple
5. Create --> Text
6. Goto Output Option Tab for the Text
7. assign the Value for Output Structure
8. when you create a template you will be creating the Rows and
Columns
9. Based on the Columns to be displayed assign the Row no. and
Column no. in Line and Column in Output structure.
10. In general attributes tab assign the text to be displayed
Note : Template is not for looping Purpose.
Reward me if its useful.
Regards,
Nagulan