Skip to Content
0
Dec 24, 2014 at 10:38 AM

Wrong amount in calculation in ABAP code.

1072 Views

Dear Friends,

Here i am facing one issue on ABAP multiplication code.

for your reference you can see below.

code is:

it_ekpo-netwr = 741.67

dkwert = 10.00

g_excise1 = ( it_ekpo-netwr / 100 ) * dkwert.

when i execute above line the answer should come g_excise1 = 74.20 but instead of 74.20 answer coming 7420.00.

.actually all the variables are same data types. kindly anyone suggest me what is the reason behind this? above program type is executable program.

but another program ( Type Subroutine pool ) same logic and same block is working well. only Program type is difference.

Regards,

Thangam.P

Attachments

error.png (39.9 kB)