cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms

sreeramkumar_madisetty
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member193831
Active Participant
0 Kudos

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.

Answers (5)

Answers (5)

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

It's Answered.

Former Member
0 Kudos

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

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

raguraman_c
Active Contributor
0 Kudos

Hi,

Here's is step by step example for template, table and loops.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d45...

Hope this will help you. Feel free to revert back.

--Ragu