on 12-13-2006 4:40 AM
Hi Gurus
I need some clarification for the below things in smartforms:
1) What's the exact difference between Template and Table in Smartforms?
2) I have one simple requirement:
I have to design smartform for Mail Merge facility means just by changing the Employee Name and Employee Number I have to send the same content of message to various employees.How can I handle this ?
Your suggestions are greatly encouragable.
Regards,
kumar
Hi Kumar,
1) Template is used to create different boxes on the smartform ouput. The borders can be provided or not depending on your requirement.
They just create a skeleton of the layout.
2) You can keep the Employee name and number as variable. And retrieve the same in the smartForm by writing code in "Program Lines".
Remember you can write ABAP in SmartForms.
Other texts you can hard-code if it is ok.
Do let me know for additional questions, if any.
Regards,
Vivek Kute
Reward points if helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
It's Answered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) What's the exact difference between Template and Table in Smartforms?
In both cases You can display passed data in for example text elements, but
TEMPLATE is kind of static element - You can set it width, height etc. and You
can display only variables or single table fields,
TABLE on the other hand don't gives You possibility to set it height (You might need that sometimes - width You can) and in this case You can display
passed tables data - TABLE is doing loop at passed table displaying rows
depending from the conditions
2) I have to design smartform for Mail Merge facility means just by changing the Employee Name and Employee Number I have to send the same content of message to various employees.How can I handle this ?
Draw smartform and set everything static. If You want to change only Employee
Name and Employee Number pass them in two variables (You have to pass them in Form Interface or use f.e. 'select' in some Program Lines) and display in text
elements. For two variables You don't need TABLE - You can use TEMPLATE
to put text elements in the right place on the form....
I hope it will help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To achieve the output which you get through Table you need to place the template in loop.
This is because as mentioned template is having fixed height and table is having variable(dynamic) height.
I think you need to you OLE to achieve mail merge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Template is used mainly for static data and when the height of the data is important. Tables are used mainly for dynamic data and when the height is not that important. Templates have a fixed height and the height of the table varies to fit to its contents.
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here's is step by step example for template, table and loops.
Hope this will help you. Feel free to revert back.
--Ragu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.