Skip to Content
0
Former Member
Feb 16, 2006 at 04:27 AM

Creating a structure dynamically

2749 Views

Hi,

I have to create a structure based on a set of fields that I have. The field names and data types will come from a table at runtime. Using this information, how do I create a structure?

Can this be done using the cl_abap_structdescr=>create() method? If yes, how should I pass the data type as a reference (type cl_abap_datadescr).

Any help would be greatly appreciated. Thank you.

Regards,

Nithya