Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Currency Display in SAPScript

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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&

Former Member
0 Kudos

Hi,

Check the User Settings in SU01 Tcode (defaults)

and Use SET COUNTRY <Name> to display that country specific settings for currency.

regards,

Anji

former_member533584
Contributor
0 Kudos

Hi,

use set country <name>

and write &out_par-value(T)&.

the addition T eliminares thousand seperators.

Regards,

ananth

Former Member
0 Kudos

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