Ansicht
Dokumentation
ABENCONVERSION_INT_TO_HEX_ABEXA - CONVERSION INT TO HEX ABEXA
General Material Data TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Conversion of Integer Numbers to Bytes
This example demonstrates the conversion of integers into byte fields and byte strings.
Source Code
Description
The program assigns numbers of the data types b, s, and i and int8, which cover the entire value range, to byte fields with the lengths 1, 2, 4, and 8 as well as to a byte string and displays them.
To calculate the numbers with powers of two, the use of the calculation type decfloat34 is sometimes forced, to avoid overflows when assigning the results of the function ipow to interim results of the calculation type i or int8.
This example highlights the different lengths that can result from these assignments to byte strings. It also shows that, in the case of assignments of the type s to x, a field length of 4 bytes instead of only 2 bytes is required for negative numbers.
Addresses (Business Address Services) ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 1224 Date: 20240423 Time: 151821 sap01-206 ( 32 ms )