ABAP 常用函式 DOWNLOAD成TXT方式

2021-04-20 07:58:34 字數 986 閱讀 5289

download

成txt

檔方式目的

將檔案download

成文字檔

ex.

zcbdc001

程式碼parameters:

p_file1

like

rlgrap-filename

default

'c:/zcbdc001_a.txt'.

perform

download_data_to_file

tables

itab

using

p_file1.

form

download_data_to_file

tables

p_itab

using

p_file

.

call function 'ws_download'

exporting

filename= p_file

filetype

= 'dat'

tables

data_tab= p_itab

exceptions

file_open_error

= 1

file_write_error

= 2

invalid_filesize

= 3

invalid_table_width

= 4

invalid_type

= 5

no_batch

= 6

unknown_error

= 7

gui_refuse_filetransfer = 8

others

= 9.

endform." download_data_to_file

注意事項

ABAP常用日期函式

abap中常用日期函式 一 查詢兩個日期間的日間間隔 call function fima days and months and years exporting i date from 20080101 i key day from i date to 20090508 i key day to ...

ABAP常用函式歸納

轉至 獲取當前邏輯系統標識 own logical system get 一.日期類 1.1 day attributes get 獲取兩個日期間的每一天的屬性值1.2 fima days and months and years 獲取兩個日期間的間隔天數,月數,年數1.3 last day of ...

abap獲取日期 ABAP常用日期函式總結

importing e date lastdate.e end of month e days of i date 其中,lastdate 為上月最後一天。firstday 是上月第一天 concatenate lastdate 6 01 into firstday.當天是當年的第幾周 date g...