Skip to Content
0
Former Member
Jul 24, 2010 at 04:53 PM

Error while creating a dynamic internal table refers to custom field

52 Views

Hi all,

I am getting the exception TYPE_NOT_FOUND when I try to create a dynamic internal table using:-

DATA: gr_desc TYPE REF TO cl_abap_typedescr.

gr_desc = cl_abap_typedescr=>describe_by_name( p_field ).

The field p_field is a Z-field inside a DB table, (e.g. a user added field in MARA). The statement fails at that point and gives a runtime exception. Any suggestions to how I may solve this problem? Or any alternatives for the same? I guess we face this issue for all custom fields..has SAP released a note for this??

Thanks..