06-28-2010 7:42 AM
Hi,
I am able to see the smartform output in pdf format in development server.
But i am getting error as otf end command // missing in otf data in production server.
I used the FM CONVERT_OTF_2_PDF for conversion.
I had searched in forum and even google also,but not found the exact solution.
Please let me know whether any configuration is required to set for this or else its just coding issue.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = V_BIN_FILESIZE
TABLES
OTF = ST_JOB_OUTPUT_INFO-OTFDATA
DOCTAB_ARCHIVE = IT_DOCS
LINES = IT_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
Thankls,
Sri
06-28-2010 7:50 AM
Hey
There should not be any issue in code as it is working fine in Dev server with same data , it should work fine in PRD .
I think it has to do with some configuration. Are you mailing it , then see is scott have output file format set to PDF.
Regards,
Uma Dave
06-28-2010 8:32 AM
06-28-2010 7:53 AM
06-22-2012 2:03 PM
I have come across the same error message when using FM
CONVERT_OTF
I found out that the reason the error occurred was because I had cleared the tables before calling the function module -
clear: t_otf[], t_pdf_tab[].
call function 'CONVERT_OTF'
exporting
format = 'PDF'
max_linewidth = 255
importing
bin_filesize = w_bin_filesize
tables
otf = t_otf
lines = t_pdf_tab
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
Solution was to NOT clear the tables before!!
Not sure if it is relevant to the problem you had but it might be useful to others.
Jay