Ansicht
Dokumentation
ABENDDIC_PREDEF_TYPES - DDIC PREDEF TYPES
General Material Data Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
- 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:
- ABAP_BOOLEAN of type CHAR with length 1.
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
- Structures MATCH_RESULT, SUBMATCH_RESULT, REPL_RESULT and table types MATCH_RESULT_TAB, SUBMATCH_RESULT_TAB, REPL_RESULT_TAB for addition RESULT of statements FIND and REPLACE.
- Table type ABAP_SORTORDER_TAB for dynamic specification of the sort order in statement SORT itab.
Types for Parameter Passing
- abap_parmbind_tab and abap_excbind_tab of type pool type pool ABAP for dynamic parameter tables in the CALL METHOD statement.
- abap_func_parmbind_tab and abap_func_excbind_tab of type pool type pool ABAP for dynamic parameter tables in the CALL FUNCTION statement.
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 )