Currently we are using below approach
First we are calling FM
CALL FUNCTION v_fmname
control_parameters = wa_control
output_options = wa_final
user_settings = c_checked
wa_final = wa_output
job_output_info = wa_job_output_info
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.