Please enable JavaScript.
Coggle requires JavaScript to display documents.
5.1 Defining Structures (5.1.5 Use Cases (Use structures to process…
5.1 Defining Structures
-
5.1.2 Local Structures
-
Defining a structure with specific fields from the database table is useful when you want to process certain field's data from the table.
All the fields of the structure should have the same technical attributes as the corresponding fields of the database table.
To ensure this, refer the components of the structure in the program to the same data elements as their corresponding fields in the database table.
-
-
-
-
5.1.5 Use Cases
-
Group related fields into a structure if you need to perform certain actions on the fields together.
It's easy to clear the data in all the fields of a structure at once instead of individually clearing the data for each field.
Even though it's possible to select data from a database table row into individual fields, it's always recommended to use structures when processing data from database tables.
Structure types also help you keep the parameter interface (signature) of a procedure (such as function module or method) simple by grouping relevant fields into one structure, as opposed to maintaining all fields individually in the interface.
-