Ansicht
Dokumentation

ABENDDIC_PREDEF_TYPES - DDIC PREDEF TYPES

ABENDDIC_PREDEF_TYPES - DDIC PREDEF TYPES

General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- Predefined Types

The following predefined DDIC data types are delivered with an AS ABAP for common usage in ABAP Dictionary, ABAP CDS and ABAP programs.

Data Elements for Built-in Dictionary Types

The following data elements are available for homonymous built-in DDIC types of fixed length.

  • UTCL (for built-in type UTCLONG)

These data elements allow the built-in DDIC types to be referred by their name.

Notes

  • Note that the respective built-in types cannot be specified directly in an ABAP program. In ABAP CDS however, there is a syntax ABAP.type to refer to built-in DDIC types.
  • There is no data element INT8, since the respective built-in ABAP type has the same name int8 already.

Data Type for Truth Values

There is no built-in ABAP type for the truth values true or false. Instead, it is common, to use a character field of length 1 with the meaning that a non-initial value means true and an initial value means false. For defining such fields, there is the predefined data element:

The type pool ABAP contains the following constants to be used as such truth values.

  • abap_true with value "X"
  • abap_false with initial value

Notes

  • The type pool ABAP also contains a type abap_bool of type c and length 1. But in new programs, the data element ABAP_BOOLEAN should be used instead.
  • The disadvantage of using type abap_bool and the associated constants abap_true and abap_false of type pool ABAP is that the entire type pool must be loaded, even if only a few types and constants are needed.
  • Type pool ABAP also contains a third constant abap_undefined with value "-". However, this constant should not be used or in exceptional cases only.

Data Types for Operand Positions and Parameter Passing

The following types are used for typing specific operand positions of ABAP statements or for special parameter passing.

Types for Operand Positions

Types for Parameter Passing






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 7523 Date: 20240511 Time: 140354     sap01-206 ( 79 ms )