Ansicht
Dokumentation

ABENUSER_DEFINED_TYPES - USER DEFINED TYPES

ABENUSER_DEFINED_TYPES - USER DEFINED TYPES

BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

User-Defined Data Types

User-defined data types allow you to define your own range of application-specific data types. You caon do this centrally, and thus make the types available throughout the ABAP programming environment.

Local Types in Programs

You can store user-defined types either locally in a program, or centrally in the ABAP Dictionary.

The TYPES statement allows you to create local types in a program. User-defined types can be either elementary or complex.

The syntax of the TYPES statement is similar to that of the DATA statement that you use to declare data objects.

You can use user-defined data types anywhere where you could use predefined data types, that is, to create data objects, or to specify the types of formal parameters and field symbols.

Global Types

Global types are stored in the ABAP Dictionary, either as elementary types (data elements), or as complex types, constructed from existing elementary data types.

As well as "real" data types, the ABAP Dictionary still contains type groups, A type group is a segment of ABAP code that you maintain in the ABAP editor.

Its first statement is TYPE-POOL. Type groups can contain definitions of both types and constants. The names of all of the types and constants in a type group must be prefixed by the name of the type group itself, followed by an underscore.

To address types from a type group in a program, you must declare the gropu in the program using the TYPE-POOLS statement.






General Material Data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1930 Date: 20240418 Time: 144404     sap01-206 ( 33 ms )