RE:[sap-dev] ABAP help currency output.
Posted by
Admin at
Share this post:
|
0 Comments
Posted by ameen shaik on Feb 22 at 2:05 AM | Mark as helpful |
Consider your Unit cost is in a variable g_betrg whose value is 10.164
use one temporary data type with float type
for example:l_betrg type f.
Declare a data type with currency two decimals
for example:g_bertg1 type p decimals 2.
pass l_betrg = g_betrg.
g_betrg = l_betrg.
---------------Original Message---------------
From: khanbhai
Sent: Monday, February 22, 2010 1:15 AM
Subject: ABAP help currency output.
> Hi to all experts,<br/>im unable to solve this problem .<br/>the currency is eur<br/>the value in the unit cost is 10.164<br/>it should display only two decimals if it is eur (according to the currency<br/>format the decimals should be outputted)<br/>so when i write this<br/>write : wa_det-netprice TO unit_cost currency cur.<br/>it is getting changed as 101,64 but i want it to be printed as 10.16 any<br/>idea how to it.<br/><br/>--<br/>Best Regards,<br/>Mohammed Abdul Hai<br/>SAP Technical Consultant<br/>Singapore<br/><br/>-- <br/>Best Regards,<br/>Mohammed Abdul Hai<br/>SAP Technical Consultant<br/>Singapore
__.____._ use one temporary data type with float type
for example:l_betrg type f.
Declare a data type with currency two decimals
for example:g_bertg1 type p decimals 2.
pass l_betrg = g_betrg.
g_betrg = l_betrg.
---------------Original Message---------------
From: khanbhai
Sent: Monday, February 22, 2010 1:15 AM
Subject: ABAP help currency output.
> Hi to all experts,<br/>im unable to solve this problem .<br/>the currency is eur<br/>the value in the unit cost is 10.164<br/>it should display only two decimals if it is eur (according to the currency<br/>format the decimals should be outputted)<br/>so when i write this<br/>write : wa_det-netprice TO unit_cost currency cur.<br/>it is getting changed as 101,64 but i want it to be printed as 10.16 any<br/>idea how to it.<br/><br/>--<br/>Best Regards,<br/>Mohammed Abdul Hai<br/>SAP Technical Consultant<br/>Singapore<br/><br/>-- <br/>Best Regards,<br/>Mohammed Abdul Hai<br/>SAP Technical Consultant<br/>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
Related Content
In the Spotlight
_.____.__ White Papers
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements