FUNCTION zsd_otf_to_binary.
*"----------------------------------------------------------------------
*"*"局部接口:
*" EXPORTING
*" REFERENCE(ET_ATTACHMENT) TYPE SOLIX_TAB
*" TABLES
*" IT_OTFDATA STRUCTURE ITCOO OPTIONAL
*"----------------------------------------------------------------------
DATA:lv_xstring TYPE xstring,
lv_bin_filesize TYPE i,
lt_lines TYPE TABLE OF tline.
REFRESH et_attachment.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_file = lv_xstring
bin_filesize = lv_bin_filesize
TABLES
otf = it_otfdata "字符流内表,每行存储70字符
lines = lt_lines.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring
TABLES
binary_tab = et_attachment.
ENDFUNCTION.
阅读(1712) | 评论(0) | 转发(0) |