cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform output to Word file

Former Member
0 Kudos

Hi,

Many of you would have worked on converting smartform output to PDF format..

Has anyone worked on converting smartform output to Word file. Is yes, Could you plz let me know how to do it.

Thanks,

Vivek

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Guys,

I dont think CONVERT_OTF works to create word file..Has any body worked on OLE concept. If yes can u tell me how to do it..

rahul_gaikwad1
Explorer
Former Member
0 Kudos

Hi Guys,

Thanks a lot for all your replies..Let me check which is useful and get back to you guys..

Former Member
0 Kudos

Hi Vivek,

Check this link.The code for converting is given there.

CONVERT_OTF will not work as only ASCII and PDF are supported by this function.

What you could do is convert your output to RTF, but you would lose the formatting of the Smartform.

You could also take a look at function PRINT_TEXT_FORMAT_DOC for more ideas, but this prints Standard (SO10) texts.

Or else you can also try to convert the Smartfom to XML .

Then convert XML to a word file.

Regards,

Kashyap Ivaturi

Former Member
0 Kudos

Hi Vivek,

Check out this link.

Former Member
0 Kudos

Hi Vivek,

first convert the smart form in to RTF format using the function module CONVERT_TO_RTF and using GUI_DOWNLOAD for download to desktop or else where.

OR

using 'COVERT_OTF' try these steps once

1. From the smartform you have got the function module created by SAP right..

and you are calling this function module in you ABAP program..

2. Now one of the the output parameter of this function module will be output_info.

From this you will get the OTF data for your smartform..

3. Now pass this OTF data to function module CONVERT_OTF and in the

call of this func mod.pass format as 'DOC' (check if we can pass this ) this will

convert our OTF data to DOC format..

4. Now make use of GUI_DOWNLOAD func mod. to download the data to

presentation system...

Regards,

Goutham.