04-17-2007 11:39 AM
Hi all,
In the SAPScript form I am calling a perform and currency value is retrieved in CHANGING variable.
But the output of this variable is in characters as 1.000,00 whereas I want the output to be displayed as 1000.00.
In the perform I have declared the variable as:
l_curr type P and decimals 2.
the value is passed to the structure as:
WRITE l_curr1 TO out_par-value (out_par STRUCTURE itcsy)
I believe the "out_par-value" being a Char displays it as 1.000,00.
How do i display it as 1000.00? Pls help with ideas.
Thanks ,
Stock
04-17-2007 11:41 AM
hI..
uSE
<b> SET COUNTRY <>.</b> "sets the currency format to ur
now print ur variable ...
The table <b>T005X</b> will have the currency formats..
/: <b>SET COUNTRY 'CAN'</b>
/: SET COUNTRY &country_key&
04-17-2007 11:44 AM
Hi,
Check the User Settings in SU01 Tcode (defaults)
and Use SET COUNTRY <Name> to display that country specific settings for currency.
regards,
Anji
04-17-2007 11:50 AM
Hi,
use set country <name>
and write &out_par-value(T)&.
the addition T eliminares thousand seperators.
Regards,
ananth
04-17-2007 11:50 AM
Hi Stock,
Use these piece of code in PERFORM after getting the value into OUT_PAR-VALUE.
<b>TRANSLATE OUT_PAR-VALUE USING ',.. '.
CONDENSE OUT_PAR-VALUE.</b>
Thanks,
Vinay