09-28-2006 8:58 AM
Can someone post a sample code on how to convert from
SAPscript spool job or PDF file to HTML?
We are on ECC 6.0 and examples using SX_OBJECT_CONVERT_ALI_HTM do not work.
As an example, we will run a job that produces an Account Statement document using SAPscript. We will need to get it from the spool and convert it to HTML.
Thanks.
09-28-2006 9:09 AM
Hi,
<b>CONVERT_ABAPSPOOLJOB_2_PDF</b> convert abap spool output to PDF
<b>CONVERT_OTF</b> Convert SAP documents (SAPScript) to other types.
<b>Example:</b>
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
See the below thread:-
Regards
Sudheer
09-28-2006 9:19 AM
Hello,
and thank you for your comment.
But what should I do after I call FM "CONVERT_OTF"?
How do I get HTML code?