Prerequisites
You can only include flat structures as a substructure in a table or
structure. No field refers to another structure in a flat structure. All the fields of a flat structure therefore refer either to a data element or were directly assigned a data type and field length with Direct type entry.Procedure
A dialog box appears.
The suffix can be used to avoid name collisions between fields of the substructure and fields already in the table. The suffix is added to all the fields of the substructure, whereby the field name is first truncated if necessary.
A line with.INCLUDE in the field Field name and the name of the substructure in the field Data element is inserted in the field maintenance screen for the table.
If you do not select column Key, none of the included fields is a key field of the table.
You can find information on the activation process in the activation log. You can display this log with Utilities
Result
The fields of the substructure are added to the table in the database. If you inserted the fields of the substructure as key fields, the
primary index of the table is built again.Other Options
You can display the fields contained in a substructure by positioning the cursor on the corresponding line and choosing Extras
® Substructures ® Explode substructure. The fields of the substructure appear directly below the line containing the substructure. You can cancel this action with Extras ® Substructures ® Retrieve substruct.You can explode all the substructures in a table with Extras
® Substructures ® Explode all substr. You can cancel this action with Extras ® Substructures ® Retrieve all substr.Choose Extras
® Substructures ® Insert substr. fields to copy the fields contained in the substructure directly into the table. The fields of the substructure become table fields. They are no longer adjusted to changes in the substructure.See also:
Substructures