调用类cl_abap_structdescr中的方法describe_by_data()和get_ddic_field_list()能得到表或结构的列名字(colomn name). 代码: REPORT ztest_convers_row. DATA: gwa_data TYPE t001w, desc_struc TYPE REF TO cl_abap_structdescr, git_fields TYPE ddfields. FIELD-SYMBOLS: <gfs_component> TYPE dfies...
调用类cl_abap_structdescr中的方法describe_by_data()和get_ddic_field_list()能得到表或结构的列名字(colomn name). 代码: REPORT ztest_convers_row. DATA: gwa_data TYPE t001w, desc_struc TYPE REF TO cl_abap_structdescr, git_fields TYPE ddfields. FIELD-SYMBOLS: <gfs_component> TYPE dfies....
DATA: st_level_1 TYPE tp_level_1 . DATA: ob_abap_structdescr TYPE REF TO cl_abap_structdescr . ob_abap_structdescr ?= cl_abap_typedescr=>describe_by_data( st_level_1 ) . DATA: st_components LIKE LINE OF ob_abap_structdescr->components . FIELD-SYMBOLS: <component> TYPE ANY . ...
调用类cl_abap_structdescr中的方法describe_by_data()和get_ddic_field_list()能得到表或结构的列名字(colomn name). 代码: REPORTztest_convers_row.DATA: gwa_dataTYPEt001w, desc_strucTYPEREFTOcl_abap_structdescr, git_fieldsTYPEddfields.FIELD-SYMBOLS:<gfs_component>TYPEdfies. desc_struc ?= cl_...