Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT:dump while substacting: BCD_BADDATA

Former Member
0 Kudos

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 .

5 REPLIES 5

Former Member
0 Kudos

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.

0 Kudos

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 .

Former Member
0 Kudos

Hi,

Declare all the three variables as TYPE ESBTR_EB , I hope it will work.

Reward points if helpful.

former_member181995
Active Contributor
0 Kudos

After subtracting the value than you need to pass it to char type.

because BDC recognize only char type.

Hope this would help.

Amit.

0 Kudos

i have moved the variables to TYPE c then substracted and then moved back to TYPE P . In this way i overcome the error .