Skip to Content
Former Member
Jul 22, 2009 at 05:51 AM

Creating Dynamic Internal table with a dynamic name



I want to create dynamic internal tables with dynamic names.

For example:

Suppose I have a table with three fields.

1. Structure name



And the structure of the internal table is as follows:

TYPES:BEGIN OF table_type,

struct TYPE char70,

fields TYPE tt_type OCCURS 0,

File TYPE ttab_type OCCURS 0,

END OF table_type.

Suppose I have one record inside my internal table with struct as "STRUCTURE", fields have an internal table content of set of fields and File has some set of records.

Now I want to create dynamic internal table whose name will be "STRUCTURE" , the fields of the dynamic internal table structure[] will be as in fields, and the records will be as in File.

Like this if i have 100 records in my internal table then I have to create 100 dynamic internal table dynamically.

Can anyone suggest how to do this?

Edited by: Jjammy on Jul 22, 2009 7:52 AM