Application Development 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: 

Merging MS Word with Smartform output

Former Member
0 Kudos

Hi Guys,

I have a requirement of merging the content of a Microsoft Word file with the output of a custom smartform being executed from a custom driver program. The requirements are as follows:

1. The program should read a word document from user's local machine and/or application server and print it before the smartform output is printed.

2. The content of the word document (read from the user's local machine or appln server) needs to be converted to xml and inserted into beginning of the xml file that is generated by the smartform. The xml file from the smartform is being generated through setting SSFCOMPOP-XSF etc. parameter.

Thanks in advance for your help...

Nilay

1 REPLY 1

Former Member
0 Kudos

For Query 1

-


You can write a simple ABAP program, read Microsoft word file, print it, then call the SMARTFORM FM and print it. For this you can check out FM <b>'MS_WORD_OLE_FORMLETTER'</b> or perhaps use OLE option to read Microsoft Word Documents.

For Query 2

-


Check out documentation for CALL TRANSFORMATION and SIMPLE TRANSFORMATION(ST).

For simple transformation, you need to have Netweaver '04 components installed. For CALL TRANSFORMATION, you need SAP 4.7

Regards,

Subramanian V.