User defined types

Variables can be defined with a user defined type:
TYPE custlist DYNAMIC ARRAY OF RECORD LIKE customer.*
MAIN
  DEFINE cl custlist
  ...
END MAIN

The scope of a type can be global, local to a module or local to a function. Variables can be defined with a type defined in the same scope, or in a higher level of scope.