Last active
September 30, 2015 17:10
-
-
Save JouryJonkergouw/9a9fc5869dee07c5715f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATA: lv_table_descr TYPE REF TO cl_abap_tabledescr, | |
lv_struct_descr TYPE REF TO cl_abap_structdescr, | |
lv_columns TYPE abap_compdescr_tab. | |
FIELD-SYMBOL: | |
<lv_column> LIKE LINE OF columns. | |
lv_table_descr ?= cl_abap_typedescr=>describe_by_data( MARA ). | |
lv_struct_descr ?= table_descr->get_table_line_type( ). | |
lv_columns = struct_descr->COMPONENTS. | |
LOOP AT lv_columns ASSIGNING <lv_column>. | |
[DO something WITH] <lv_column>-NAME. | |
ENDLOOP. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment