Skip to Content
avatar image
Former Member

Issue:Currency calculation

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 20, 2010 at 02:34 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Sep 20, 2010 at 02:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded