Definition of a structured type

TYPES - Defining a Structured Type

Basic form

TYPES: BEGIN OF structype
...
END OF structype.

Effect

Defines the structured type structype, where all of the fields defined between "BEGIN OF structype" and "ENDOFstructype " are components of type structype. You can address individual components of the type using the prefix "structype-",

A type name may be up to 30 characters long. Apart from the special characters '(', ')', '+', '.', ',', ':', '-', '<', '>', you may use all other characters, including digits. However, a type name may not consist entirely of digits.

Recommendations for type names:

Example

Defines a type with two components NAME und AGE:

TYPES: BEGIN OF PERSON, 
		 NAME(20) TYPE C, 
		 AGE	TYPE I, 
	 END   OF PERSON.