Skip to Content
Former Member
Sep 15, 2010 at 12:08 PM

class cl_abap_structdescr=describe_by_name


Hi ,

Iam using below code to read the fields in the particular structure.

select single rollname into lv_rollname from dd03l where fieldname = gw_allowed-infty

and tabname = gw_allowed-tabname

and tabletype = 'X'.

if sy-subrc eq 0.

lo_descr = cl_abap_structdescr=>describe_by_name( lv_rollname ) .

lo_table ?= lo_descr .

lt_components = lo_table->key.

But in the lt_components except element maintained with data element DEC is not fetching in the table .

Please give me the methid which fetches all the fields from the structure.


Pavan kk

Edited by: Rob Burbank on Sep 15, 2010 9:30 AM