讀取內錶的Field Name

2021-04-23 04:31:05 字數 673 閱讀 6973

types:

begin of my_struct,

comp_a type i,

comp_b type f,

end of my_struct.

data:

my_data type my_struct,

descr_ref type ref to cl_abap_structdescr.

data: begin of itab occurs 0 ,

f1 ,

f2 ,

end of itab.

field-symbols:

type abap_compdescr.

start-of-selection.

descr_ref ?= cl_abap_typedescr=>describe_by_data( my_data ).

loop at descr_ref->components assigning .

write: / -name.

endloop.

descr_ref ?= cl_abap_typedescr=>describe_by_data( itab ).

loop at descr_ref->components assigning .

write: / -name.

endloop.

FileInputStream讀取磁碟內的檔案

inputstream的使用 磁碟內的乙個檔案,讀取檔案內的資料到程式中,使用fileinputstream 列1 test public void test1 throws ioexception 2 建立fileinputstream類的物件 fileinputstream fis new fi...

內錶 XML互轉 JSON 內錶互轉

轉進內錶 strans try.call transformation id source xml lv text out options clear all 4.7 沒有這個options value handling accept data loss 這個引數也沒有 result data p ...

讀取檔案內的資訊,並排序。

include include typedef struct studentstudent void getsecond student s,int sn void sort student s,int sn int main 開啟 if 檔案 if fp fopen e h.txt r null ...