Application Development and Automation 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: 
Read only

Issue:Currency calculation

Former Member
0 Likes
551

Hi all,

I am doing following calculations.Output is not as expected-

Kindly guide.

DATA: V_NET_B TYPE ZGLFR_MM_MATLGRP-BUDGET_VALUE.

V_NET_B = ( WA_EKPO-NETWR * V_WKURS ).

WA_EKPO-NETWR = 2000.00

V_WKURS = 1.00000

Expected value of V_NET_B is 2000.00.

But value calculated is 2000000.00.

Can somebody guide me how to resolve this isue?

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
515

In se38 got program, menu goto->attributes - > fixed point arithmetic should be marked. Please check it.

3 REPLIES 3
Read only

Former Member
0 Likes
515

It'd be pretty hard for anyone to answer since you haven't given the definitions of either ZGLFR_MM_MATLGRP-BUDGET_VALUE or V_WKURS.

In any event, make sure fixed point arithmetic is checked in the attributes.

Rob

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
516

In se38 got program, menu goto->attributes - > fixed point arithmetic should be marked. Please check it.

Read only

0 Likes
515

I have coded in enhancement spot and could not find fixed arithmatic option in attributes.

Fields is Currency fields type curr and

DATA: V_WKURS TYPE EKKO-WKURS.

Kindly guide.