Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
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 | | Popular White Papers In the Spotlight _.____.__ |