cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForms : problem with quantities over 1000

0 Kudos

Hello,

I'm trying to calculate the values of goods in a form with this program :

CLEAR netwr.
LOOP AT t_vbdpl INTO vbdpl.
.
.
.
  DATA l_kwert LIKE komv-kwert.
  IF l_konp-kpein NE 0.
    l_kwert = vbdpl-lfimg * l_konp-kbetr / l_konp-kpein.
  ELSE.
    l_kwert = vbdpl-lfimg * l_konp-kbetr.
  ENDIF.

  ADD l_kwert TO netwr.

ENDLOOP.

It's working fine unless quantities in vbdpl-lfimg are under 1000. Otherwise, I get bad values : 1 instead of 1000, 2 instead of 2000 and so long.

Could somebody help me to solve this problem?

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

See last message.

0 Kudos

This was my mistake. I got confused between decimal point and comma.