Skip to Content
avatar image
Former Member

How to get informations of fields in a structure ?

Hi. I defined a structure called "TTF" this way :
types: begin of ty_f,
one like marc-matnr,
two like vbap-posnr,
end of ty_f.
data TTF type table of ty_f.

I need to retrieve the following informations from this structure :

fieldname / reference table / field reference

So :

ONE / MARC / MATNR
TWO / VBAP / POSNR

So far I tried with "cl_abap_typedesc"
and I only get the keys (ONE / TWO) and the datatype/length : C18 / C10

But Im looking for the references table & field : MARC-MATNR / VBAP-POSNR
Or at least MATNR_D / POSNR_VA

Is there a way to achieve this ? To get all datatypes from a structure ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers