06-06-2008 8:01 AM
Hi ,
i am substracting two type p values and storing it in a type p value.
w_diff = w_esbtr - w_glbal.
w_esbtr = 2000200020002.00
w_glbl = 200020003.10
it is giving me a dump "Packed field contains incorrect BCD format."
what doe it mean. how to solve it .
06-06-2008 8:10 AM
Check the below ...
The fixed point arithmetic is not activated for the affected program.
Solution
Activate the fixed point arithmetic for the affected program:
SE38 -> enter the program name, select the radio button 'Attributes' -> Change -> select Fixed point arithmetic -> Save.
06-06-2008 8:17 AM
No , already fixed point arithmatic is active.
my first variable is of type ESBTR_EB, sencond one is of DMBTR..substarcted value goes into ESBTR_EB.
i think there is no overflow...
please help .
06-06-2008 9:42 AM
Hi,
Declare all the three variables as TYPE ESBTR_EB , I hope it will work.
Reward points if helpful.
06-06-2008 9:45 AM
After subtracting the value than you need to pass it to char type.
because BDC recognize only char type.
Hope this would help.
Amit.
06-09-2008 2:08 PM
i have moved the variables to TYPE c then substracted and then moved back to TYPE P . In this way i overcome the error .