Skip to content

Instantly share code, notes, and snippets.

@weiserman
Created January 31, 2014 06:16
Show Gist options
  • Select an option

  • Save weiserman/8727395 to your computer and use it in GitHub Desktop.

Select an option

Save weiserman/8727395 to your computer and use it in GitHub Desktop.
Read components of a structure using ABAP RTTS
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