Skip to Content
0
Jan 22, 2021 at 07:40 PM

Division of Currency field with Quantity in User Exit?

423 Views

Hi ,

In the User Exits i have to perform division but the value to not populating correct.

DATA : LV_RESULT TYPE P DECIMAL 2.

LV_RESULT = VBAP-KZWI1 / VBAP-KWMENG

VBAP-KZWI1 has the data type CURR with decimal 2

VBAP-KWMENG has the data type QUAN with decimal 3

so let say VBAP-KZWI1 = '200' & VBAP-KWMENG = '20'

then result i expect is to 10 but the value i get in the result is 0.01

please suggest me