Hi,
Whenever I call the below function the OTF table in the job_output_info is always empty. This means I can't proceed to calling FM 'CONVERT_OTF' for convering to PDF.
All the other XML output tables are populated correctly and smartform can be sent via e-mail. I have seen a good few threads here, some people have said they've solved it themselves without giving the solution, and I saw one that said the Smartform attributes needed to change? I thought setting the getotf flag to 'X' was all I needed.
Any ideas would be greatly appreciated. Thanks
ls_output_options-tdimmed = space.
ls_output_options-tdnewid = space.
ls_control_parameters-no_dialog = 'X'.
ls_control_parameters-getotf = 'X'.
ls_control_parameters-langu = sy-langu.
ls_control_parameters-preview = space.
CALL FUNCTION l_fm_name
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
user_settings = space
ls_input = gt_detail
i_count = l_count
l_entry = '10/12'
l_entry1 = '01.01.2013'
lt_header = lt_newrpt
ls_vendor = gs_lfa1
IMPORTING
job_output_info = ls_output_data
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
** ls_output_data-otfdata[] empty.