Created
January 31, 2014 06:16
-
-
Save weiserman/8727395 to your computer and use it in GitHub Desktop.
Read components of a structure using ABAP RTTS
This file contains hidden or 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
| report ydemo1. | |
| DATA: lo_sdescr TYPE REF TO cl_abap_structdescr, | |
| ls_component TYPE abap_compdescr. | |
| lo_sdescr ?= cl_abap_typedescr=>describe_by_name( 'LFA1' ). | |
| LOOP AT lo_sdescr->components INTO ls_component. | |
| WRITE: / ls_component-name. | |
| ENDLOOP. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment