Skip to Content
0
Former Member
Apr 27, 2010 at 02:11 PM

How to send smartform form through email as word document

128 Views

Hello gurus,

Currently we are using below approach

First we are calling FM

  • call smartform

CALL FUNCTION v_fmname

EXPORTING

control_parameters = wa_control

output_options = wa_final

user_settings = c_checked

wa_final = wa_output

IMPORTING

job_output_info = wa_job_output_info

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Then we are converting imported wa_job_output_info-otfdata[] data from above FM using below FM

CALL FUNCTION 'CONVERT_OTF'

And then by using FM CALL FUNCTION 'SO_DOCUMENT_SEND_API1' we are sending the smartform as PDF attachment

But now we have to send the form as Word document attachement.

So can u plz suggest any FM to convert this data to Word document instead of PDF.

Regards,

Amit Taur.