08-25-2007 7:42 AM
Hi Folks,
I had declared a field kursf as kursf like rbkp-kursf.
When I pass a value of 10000.0000, it is giving me a short dump of saying overflow and the field is too short.
When I declare the field kursf as kursf type p decimals 5 and pass a value of 10000.0000 it is working fine.
Can anyone here let me know what is the difference if we declare a field as type p?
Thanks,
K.Kiran.
08-25-2007 8:02 AM
Hi,
Here RBKP-KURSF has a field type of DEC and also its have conversion routine associated with the domain
Convesion routine name : EXCRT
aRs
08-25-2007 8:02 AM
Hi,
Here RBKP-KURSF has a field type of DEC and also its have conversion routine associated with the domain
Convesion routine name : EXCRT
aRs
08-25-2007 10:35 AM
ArS,
Kindly let me know what difference does this conversion routine make in terms of field length.
Thanks,
K.Kiran.
08-25-2007 8:03 AM
The valid length for packed numbers is between 1 and 16 bytes; two decimal places are packed into one byte, whereby the last byte only contains one place and the plus/minus sign; after the decimal separator, up to 14 decimal places are permitted. Depending on the field length len and the number of decimal places dec, the following applies for the value area: (-10(2len -1) +1) / (10(dec)) to (10(2len -1) -1) /(10(+dec)) in steps of 10^(-dec). Values in between this range are rounded off.
fractional portion
Fractional portions contain the fractional part of a number and are noted independent of the number system to the right of the separator. These are the decimal places (for decimal numbers) that come after the decimal separator.
Regards