ABAP顾问
分类:
2008-10-10 10:58:38
REPORT z_barry_test.
DATA: BEGIN OF itab OCCURS 0 ,
f1 TYPE i,
f2(10) TYPE c,
END OF itab.
DATA:BEGIN OF itab_title OCCURS 0 ,
f1(20) TYPE c,
END OF itab_title.
itab-f1 = 2.
itab-f2 = 'ABC'.
APPEND itab.
itab_title-f1 = '列1'.
APPEND itab_title.
itab_title-f1 = '列是大法师东方'.
APPEND itab_title.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\ttt.txt'
filetype = 'DAT'
TABLES
data_tab = itab
fieldnames = itab_title.