Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert SAPScript spool job or PDF to HTML

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

Hello,

and thank you for your comment.

But what should I do after I call FM "CONVERT_OTF"?

How do I get HTML code?