04-14-2014 9:58 AM
Hi Experts,
I am facing a unique issue. I am trying to do some arithmetic operation (LW_HEADERX-BOM_EQP = LW_HEADERX-BOM_EQP + LW_HEADER-BOM_EQP.)
where
LW_HEADERX-BOM_EQP = 9588052037.000
LW_HEADER-BOM_EQP = 444000000.000
i have declared data element of both the variable mentioned above is Menge_D.
data type of menge_d is Quan of size 13 integeral part & 3 decimals but when i am debugging then i found 7 integeral and 3 decimals.attached herewith screenshot.I am bit confuse please help me out.
the FINAL SUM OF
(LW_HEADERX-BOM_EQP = LW_HEADERX-BOM_EQP + LW_HEADER-BOM_EQP ) is still under Quan limit.
Please tell me where i am wrong.
Thanks in advance...
Santosh
04-14-2014 11:16 AM
Hi Santosh,
There's nothing special here, it just indeed an overflow exception.
Please note that
The number of characters here is not the field length in bytes, but the number of valid characters excluding formatting characters
The data element MENGE_D's data type is what you see from the debugger P(7) DECIMALS 3 which has value range in (-10^(2len -1) +1) / (10^(+dec)) to (+10^(2len -1) -1) /(10^(+dec))
9588052037 + 444000000 > (+10^(2*7 -1) -1) /(10^(+3)) and of course will cause an overflow exception.
Hope it helps. Cheers!
04-14-2014 11:16 AM
Hi Santosh,
There's nothing special here, it just indeed an overflow exception.
Please note that
The number of characters here is not the field length in bytes, but the number of valid characters excluding formatting characters
The data element MENGE_D's data type is what you see from the debugger P(7) DECIMALS 3 which has value range in (-10^(2len -1) +1) / (10^(+dec)) to (+10^(2len -1) -1) /(10^(+dec))
9588052037 + 444000000 > (+10^(2*7 -1) -1) /(10^(+3)) and of course will cause an overflow exception.
Hope it helps. Cheers!
04-15-2014 5:51 AM
Hi Nguyen,
Please suggest me to sort out this issue for large value?
Regards,
Santosh
04-15-2014 6:19 AM
hi,
Change BOM_EQP data type.
try : BOM_EQP(15) type p DECIMALS 3.
Regards,
Satyen.
04-15-2014 1:04 PM
Thanks Satyen,
What could be the appropriate data type(Domain Level ) of ( BOM_EQP(15) type p DECIMALS 3 ) in DDIC Instead of Quan?
Regards,
Santosh
04-16-2014 8:43 AM
hi,
Please use MENG15 domain for this.
data Element : KSTBM
Regards,
Satyen
04-16-2014 11:15 AM