SAP CONVERSION INT TO HEX ABEXA
Get Example source ABAP code based on a different SAP table
ARTIClE
Conversion of Integer Numbers to Bytes
This example demonstrates the conversion of integers into byte fields and strings.
ABAP_SOURCE_CODE
ABAP_DESCRIPTION
This program takes numbers of the data types
und
that cover the entire value range and assigns them to byte fields of the lengths 1, 2, 4, and 8 and to a byte string and displays them in a classic list.
To calculate the numbers using powers of two, the
Für genaue Berechnungen mit dem Typ
Überlauf führen wenn an der Grenze des Wertebereichs von
gerundet wird. .
This example highlights the different lengths that can occur for these assignments to byte strings. It also shows that, in the case of assignments of the type