Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: Transfer pdf file to application server

$
0
0

Hello

You need to call Fucntion module convert_otf.

CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          MAX_LINEWIDTH         = 132
        IMPORTING
          bin_filesize          = lv_bin_filesize
          bin_file              = lv_pdf

        TABLES
          otf                   = ls_otfdata-otfdata[]
          lines                 = lv_bin_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.

 

After calling this FM call FM 'SX_OBJECT_CONVERT_OTF_PDF' which will convert into pdf file.

 

CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'

  EXPORTING

    format_src            = 'OTF'

    format_dst            = 'PDF'

   DEVTYPE               = 'PRINTER'

  CHANGING

    transfer_bin          = t_transfer

    content_txt           = it_otf_data

    content_bin           = it_objhx

    objhead               = it_objhead

    len               = psize

EXCEPTIONS

   ERR_CONV_FAILED       = 1

    OTHERS                = 2 .

 

Please try with this.


Viewing all articles
Browse latest Browse all 8652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>