Ansicht
Dokumentation

ABENDDIC_BUILTIN_TYPE_USAGE - DDIC BUILTIN TYPE USAGE

ABENDDIC_BUILTIN_TYPE_USAGE - DDIC BUILTIN TYPE USAGE

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

- Use of the Built-In Dictionary Types

The built-in types in ABAP Dictionary are used for the definition of the elementary parts of all data types, including reference types in ABAP Dictionary, and for specifying some types in and ABAP CDS. The built-in types in ABAP Dictionary cannot be specified directly in any places other those specified below:

A data element for an elementary data type has either a directly specified built-in type or a type specified using a domain. In references to data elements in an ABAP program, this type is mapped to a built-in ABAP type in accordance with the last column of the tables of built-in types.
The elementary components of a DDIC structure have either a directly specified built-in type or a type specified using a data element. In references to structures in an ABAP program, the structures are mapped to a structured type, where the elementary components are mapped to built-in ABAP types in accordance with the last column of the tables of built-in types. The same applies to the table fields of DDIC database tables and view fields of DDIC views.
The line types of a table type are defined using existing data types from ABAP Dictionary, whose elementary components have a built-in type (as shown above). When a reference is made to a table type in an ABAP program, the type is mapped to a matching ABAP type. Here, the elementary components are mapped to built-in ABAP types in accordance with the tables of built-in types.
  • Reference types
Data elements, components of structures, or line types of table types can all be reference types. Reference types for data reference variables with an elementary static data type are defined by specifying a built-in type directly or by using a data element.
  • Types specified in SQL

  • Cast expression cast in the CDS DDL in ABAP CDS

  • SQL expression CAST in

The data type of all elementary components in a CDS entity, such as view fields, literals, parameters, and other operands is based indirectly on the built-in data types in ABAP Dictionary.

Unlike when using the data types above, TYPE references to the built-in data types in ABAP Dictionary are not possible in ABAP programs. Alongside their role in defining data types, these built-in types in ABAP Dictionary must also be considered in statements and when working with dynpros:

  • statements work with DDIC database tables defined in ABAP Dictionary whose columns have external data types to which the actual platform-dependent types of the databases are mapped.
  • In Screen Painter, dynpro fields are also declared with reference to external data types. In a dynpro field, the special semantic attributes of its data type are usually significant and are evaluated for input masks and for checking input.

Notes

  • In ABAP CDS, a built-in dictionary type type is specified by ABAP.type which is a bit misleading in fact.
  • In ABAP development, only mappings from the built-in dictionary types to the built-in ABAP types are relevant. In database accesses using , the actual database type, such as NVARCHAR, is hidden by the dictionary type (in this case CHAR).

The following type reference in an ABAP program does not use the built-in type INT2 directly. Instead, it used the identically named data element INT2 whose type is itself defined using the identically named domain INT2. Here, the built-in type INT2 is specified:






General Data in Customer Master   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 7379 Date: 20240418 Time: 122317     sap01-206 ( 97 ms )