SAP ABAP编程 OTF转换成PDF

来源:互联网 发布:淘宝披肩外套 编辑:程序博客网 时间:2024/04/30 21:13
FORM frm_cover_file .

  t_otf[] t_otfdata-otfdata[].

  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                'PDF'
      max_linewidth         132
    IMPORTING
      bin_filesize          w_bin_filesize
      bin_file              bin_file
    TABLES
      otf                   t_otf
      lines                 t_pdf_tab
    EXCEPTIONS
      err_max_linewidth     1
      err_format            2
      err_conv_not_possible 3
      err_bad_otf           4.

  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
      buffer        bin_file
    IMPORTING
      output_length g_blob_length
    TABLES
      binary_tab    gt_blob[].

ENDFORM.
0 0
原创粉丝点击