# How to have a structure with a table in ABAP?

SAPABAP

The basic rule while specifying a table within a structure is that you have to give a non-unique constraint to that field.

TYPES: myType TYPE TABLE OF string WITH NON-UNIQUE DEFAULT KEY

Then use this in the structure definition:

TYPES: BEGIN OF ty_itab,
…..
myTable type myType,
……..
TYPES: END OF ty_itab.
Published on 19-Dec-2017 08:32:10