DATA :
   itab_otf    type table of itcoo,
   itab_tline type table of tline,

 

  call function 'CONVERT_OTF'
    exporting
      format                      = 'PDF'
      max_linewidth               = 132
     tables
       otf                         =  itab_otf
       lines                       = itab_tline
    exceptions
      err_max_linewidth           = 1
      err_format                  = 2
      err_conv_not_possible       = 3
      err_bad_otf                 = 4
             .

 

call function 'GUI_DOWNLOAD'
  exporting
    filename                        = 'C:\TEMP\DATA.PDF'
   filetype                        = 'BIN'
   confirm_overwrite               = 'X'
  tables
    data_tab                        = itab_tline
 exceptions
   file_write_error                = 1
   no_batch                        = 2
   gui_refuse_filetransfer         = 3
   invalid_type                    = 4
   no_authority                    = 5
   unknown_error                   = 6
   header_not_allowed              = 7
   separator_not_allowed           = 8
   filesize_not_allowed            = 9
   header_too_long                 = 10
   dp_error_create                 = 11
   dp_error_send                   = 12
   dp_error_write                  = 13
   unknown_dp_error                = 14
   access_denied                   = 15
   dp_out_of_memory                = 16
   disk_full                       = 17
   dp_timeout                      = 18
   file_not_found                  = 19
   dataprovider_exception          = 20
   control_flush_error             = 21
          .

arrow
arrow
    文章標籤
    SAP ABAP DOWNLOAD TO PDF
    全站熱搜

    豬噗噗 發表在 痞客邦 留言(0) 人氣()