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.
raja
Updated on 10-Dec-2019 10:22:03

Advertisements