Re: [sap-dev] ABAP help currency output.
Posted by
Admin at
Share this post:
|
0 Comments
Posted by Sergey Korolev (Independent ABAP developer) on Feb 22 at 2:22 AM | Mark as helpful |
It is likely that you are using old-fashioned SD user-exits for Sales Order
or Delivery. If this is the case, the problem with them is that the main
program has (e.g. SAPMV45A) fixed point arithmetic flag unchecked in its
properties. The workaround can be as follows:
1. Move all currency/quantity calculations into an external program
(class method, function module, subroutine) - better
2. Explicitly divide value by 10 - worse
On 22 February 2010 09:10, khanbhai via sap-dev <
sap-dev@groups.ittoolbox.com> wrote:
> Posted by khanbhai(ABAP)
> on Feb 22 at 1:11 AM
> Hi to all experts,
> im unable to solve this problem .
> the currency is eur
> the value in the unit cost is 10.164
> it should display only two decimals if it is eur (according to the currency
>
> format the decimals should be outputted)
> so when i write this
> write : wa_det-netprice TO unit_cost currency cur.
> it is getting changed as 101,64 but i want it to be printed as 10.16 any
> idea how to it.
>
> --
> Best Regards,
> Mohammed Abdul Hai
> SAP Technical Consultant
> Singapore
>
> --
> Best Regards,
> Mohammed Abdul Hai
> SAP Technical Consultant
> Singapore
__.____._ or Delivery. If this is the case, the problem with them is that the main
program has (e.g. SAPMV45A) fixed point arithmetic flag unchecked in its
properties. The workaround can be as follows:
1. Move all currency/quantity calculations into an external program
(class method, function module, subroutine) - better
2. Explicitly divide value by 10 - worse
On 22 February 2010 09:10, khanbhai via sap-dev <
sap-dev@groups.ittoolbox.com> wrote:
> Posted by khanbhai(ABAP)
> on Feb 22 at 1:11 AM
> Hi to all experts,
> im unable to solve this problem .
> the currency is eur
> the value in the unit cost is 10.164
> it should display only two decimals if it is eur (according to the currency
>
> format the decimals should be outputted)
> so when i write this
> write : wa_det-netprice TO unit_cost currency cur.
> it is getting changed as 101,64 but i want it to be printed as 10.16 any
> idea how to it.
>
> --
> Best Regards,
> Mohammed Abdul Hai
> SAP Technical Consultant
> Singapore
>
> --
> Best Regards,
> Mohammed Abdul Hai
> SAP Technical Consultant
> Singapore
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Sergey Korolev
SAP Development Enthusiast
Contributed 100 posts in a group to earn a Bronze Achievement
SAP Development Enthusiast
Contributed 100 posts in a group to earn a Bronze Achievement
Related Content
In the Spotlight
_.____.__ White Papers
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements