Skip to Content
0
Former Member
Feb 28, 2008 at 02:29 PM

Object table confusion

12 Views

Hi All,

I want to store a number of ZCL_BDC_FIELD objects into an internal table.

What is the easiest eay to do this? Here's my attempt...

Types: begin of ty_field_itab,

fld type ref to ZCL_BDC_FIELD,

end of ty_field_itab.

  • in the private section of another class

data: field_itab type table of ty_field_itab.

*still in other class,

append field to fielditab.

Which gives an error! Cannot convert field to field of type fielditab.

Think I have to use create data?

thanks

Dylan.