ABAP Keyword Documentation → ABAP - Dictionary → Built-In Functions in ABAP Dictionary → Special Functions
Conversion Functions
The following table shows the conversion functions supported by ABAP CDS and ABAP SQL. The last two columns indicate where a function can be used.
SQL Function | Result | ABAP CDS | ABAP SQL |
---|---|---|---|
FLTP_TO_DEC( arg AS dtype ) | Conversion of an argument of type FLTP to a packed number. | x | - |
BINTOHEX(arg) | Converts an argument of the type RAW to a string of the type CHAR. | x | x |
HEXTOBIN(arg) | Converts an argument of the type CHAR or NUMC to a byte string of the type RAW. | x | x |
UNIT_CONVERSION( p1 => a1, p2 => a2, ... ) | Conversion of units. | x | - |
CURRENCY_CONVERSION( p1 => a1, p2 => a2, ... ) | Conversion of currencies. | x | - |
DECIMAL_SHIFT( p1 => a1, p2 => a2, ... ) | Setting the decimal separator. | x | - |
Descriptions of the potential operands and data types and how they work can be found in the corresponding documentation for ABAP CDS and ABAP SQL.
Other versions:
7.31 | 7.40 | 7.54