cancel
Showing results for 
Search instead for 
Did you mean: 

Number format

former_member329522
Participant
0 Kudos

Hi all!

I´ve a char with 1254.45

I need show it 1,234.45 in my smartform, How I have to declare de global variable? I need convert this with code in my smartform?

Sorry about my English.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You should move your char data into currency variable, in this way the system'll automatically convert it.

DATA: AMOUNT TYPE WRBTR,

AMOUNT_C(10) TYPE C VALUE '1254.45'.

MOVE AMOUNT_C TO AMOUNT.

Use AMOUNT as variable to display the data.

Max

Former Member
0 Kudos

just move ur amount to currency variable

<currency vairable> = <numeric variable> .

Answers (5)

Answers (5)

vinod_gunaware2
Active Contributor
0 Kudos

<b>System -> User Profile --> Own Data --> in defaults<b>

<b>Use SET Country command

or use WRITE TO Currency</b>

Or

Setting the User Decimals Format

Your screen and layout sets decimals are affected by :-

OY01 - Country Global Parameters -> Double click on the country code

SU01 - Maintain users -> Click Defaultsbutton

In the Decimal format section.

regards

vinod

former_member329522
Participant
0 Kudos

Thaks all! I´ve got it!

Former Member
0 Kudos
sbhutani1
Contributor
0 Kudos

Hi julio,

You can declare your character as curr (currency)

Regards

Sumit Bhutani

Former Member
0 Kudos

Hii

go to <b>System</b> -> <b>User Profile</b> --> <b>Own Data</b> --> in <b>defaults</b>

chk out the option..

Hope this helps

Thanks&Regards

Naresh