PACK source TO destination.
This statement, which is forbidden in classes, converts the content of the data object source to the data type p of length 16 without decimal places. In contrast to the conversion rules for elementary data types, a decimal separator in source is ignored. This assigns the converted content to the data object destination.
The data type of source must be character-type,
flat, and its content must be interpretable
as a numeric value. The data type of destination must
be flat. If destination has the data type
p, the interim result is assigned to it from left to right. Surplus characters are cut off
on the left, and the decimal places are determined by the data type of destination.
If destination does not have the data type
p, the interim result is converted to the data type of destination
according to the rules in the conversion table for source field type p.
Catchable Exceptions
CX_SY_CONVERSION_NO_NUMBER
CX_SY_CONVERSION_OVERFLOW
Non-Catchable Exceptions