I have a table which has the following fields, and suppose it holds the following three entries:
| Node | Field | Level | Data Object | Field | Value | Table_struct_indicator |
|---|---|---|---|---|---|---|
| - | Field1 | 0 | EQUI | EQURN | - | struct |
| Node1 | Field2 | 1 | EQUI | ERDAT | 20241903 | struct |
| Node1 | Field3 | 1 | EQUI | uname | - | struct |
I basically want to create a structure which now has the following format:
types: begin of node1,
field2 type char200,
field3 type char200,
end of node1.
types: begin of xyz,
field1 type char200,
node1 type node1,
end of xyz.
This structure could be as deep as possible and could also include tables.
I didn't find anything yet to create a dynamic table which has no real ABAP data definition behind it, most of the things I found just used the cl_abap_structdescr class to describe the structure of already existing tables and then throwing those components into a field catalog, which also doesn't really help me because I need a deep structure, which as per my understanding is not accomplishable with a field catalog since it is not possible to create deep structures in field catalogs.