We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] ABAP Quantity and Currency Division

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by wnash7658 (SAP Specialist and Project Leader)
on Dec 11 at 10:06 PM
Sorry, I have seemed to solve it just now.

XKOMV-KBETR = ( KONM-KBETR * 1000 / I_AEMENGE * 1000 ) / 10000.

returns a value of .95 which is correct.

Regards


Waza

---------------Original Message---------------
From: Warren Nash
Sent: Saturday, December 10, 2011 10:12 PM
Subject: ABAP Quantity and Currency Division

Hello,

I have a situation which seems to be familiar. I have a VOFM routine that determines the total quantity in a sales order and looks through the scale table and finds the scale that equals the scale found. I then have a VOFM routine that will apply the division of (quantity and value)to each order line item.

The problem I get is that I cannot control the fixed point arithmetic in the attributes, as it is a VOFM routine, trying to do my own arithmetic seems to always return ".01", as if SAP wants to round up a the lowest decimal point. See below:-

Qty 5
Value 4.75

Should return .95 per PC, but SAP returns .01. I have tried the old method of / 100 and even * 10000 but it still returns back to the same ".01".

Anybody know what to do?

Regards


Waza

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language