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

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

RE: 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 epalmer (SR ABAPS Developer)
on Dec 12 at 8:02 AM
Wnash,

For future reference, you can resolve the problem by setting up a work field as type f to receive the results of the calculation. Then move the work field to your xkomv-kbetr.

like this

Data: w_kbetr type f.

w_kbetr = ( your calc without all the adjustments of *1000 etc)

xkomv-kbetr = w_kbetr.

The type f is floating point. It keeps track of where the decimal is supposed to be. Then when you move it back to the fixed decimal point the answer is correct.

Hope this helps
Ellie

---------------Original Message---------------
From: Warren Nash
Sent: Sunday, December 11, 2011 10:07 PM
Subject: ABAP Quantity and Currency Division

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

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

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
epalmer
SAP ABAP Helper

Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
Popular White Papers

In the Spotlight
SAP BusinessObjects: Dashboards and Analytics. Learn more about this Toobox.com Marketplace online course.

_.____.__

0 comments:

Post a Comment

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