Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regd Word Document Automation using abap

Former Member
0 Likes
456

Hi All,

My requirement is I have a generic template (word document) where we fill in data every month and produce as a report to the customer

The report has some generic content and some month specifc contents based on result of some batch jobs running at the background.

I would like to automate this process of generating the report. I thought of keeping the generic template in application server and downloading it to a internal table every month and filling the required data and send it as a mail to customer

Is my idea valid can this be done??

If possible kindly guide me to supporting links or code available !!

Regards

Anand Sekar

Hi All,

My requirement is I have a generic template (word document) where we fill in data every month and produce as a report to the customer

The report has some generic content and some month specifc contents based on result of some batch jobs running at the background.

I would like to automate this process of generating the report. I thought of keeping the generic template in application server and downloading it to a internal table every month and filling the required data and send it as a mail to customer

Is my idea valid can this be done??

If possible kindly guide me to supporting links or code available !!

Regards

Anand Sekar

2 REPLIES 2
Read only

former_member222709
Contributor
0 Likes
413

Hi Anand,

Your requirement is possible.

I would like to still suggest another way of achieving your requirement. You can create a SMARTFORM that will be your Word Document Template. This Smartform can be called by your program with dynamic data getting inserted wherever applicable in the pre-defined template of your smartform. You can very easily convert this smartform into a pdf document and email it.

The steps for designing a Smartform, converting it into PDF (Standard FM - CONVERT OTF) as well as sending it is an e-mail (Standard FM - SEND DOCUMENT API1) are available on SDN with code snippets.

Hope this helps.

Regards,

Pranav.

Read only

Former Member
0 Likes
413

Hi Pranav,

Thanks for the quick response

I forgot to mention one point I will be needing to embed excel sheets in that word file.

So I believe that cannot be done with Smartforms which generates ouput only as PDF

Can you suggest some help links on code snippets for the application server technique ???

or Any other technique to the above scenario is also highly appreciated !!

Regards

Anand Sekar