Application Development and Automation 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: 
Read only

thousand seprator

Former Member
0 Likes
758

Hi I need thousand seprator

For my report

I am getting 123456.789

i need as 123,456.789

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
734

HI,

check the settings in tcode oy01.

regards

siva

Hi I need thousand seprator

For my report

I am getting 123456.789

i need as 123,456.789

5 REPLIES 5
Read only

Former Member
0 Likes
734

Goto System -> User Profile -> Default Tab => Change Decimal notation as required.

Please give me reward point If it is useful

Thanks

Murali Poli

Read only

0 Likes
734

hi,

Declare a character field for storing the value .

use WRITE numfield TO charfield.

This will add the thousand separator on its own.

cheers

L

Read only

Former Member
0 Likes
734

Hi,

Check the below code.

DATA: v_amount TYPE p DECIMALS 3 VALUE '123456.789'.

DATA: v_amount_char1(20),

v_amount_deci(20),

v_length TYPE i,

v_tot_length TYPE i,

v_main_number(20).

MOVE v_amount TO v_amount_char1.

SPLIT v_amount_char1 AT '.' INTO v_amount_char1 v_amount_deci.

CONDENSE: v_amount_deci, v_amount_char1.

v_tot_length = strlen( v_amount_char1 ).

IF v_tot_length > 3.

v_length = v_tot_length - 3.

v_tot_length = v_tot_length - 1.

CONCATENATE v_amount_char1+0(v_length) ','

v_amount_char1+v_length(v_tot_length) '.'

v_amount_deci INTO v_main_number.

WRITE:/ v_main_number.

ELSE.

CONDENSE v_amount_char1.

CONCATENATE v_amount_char1 '.' v_amount_deci INTO v_main_number.

WRITE:/ v_main_number.

ENDIF.

Read only

Former Member
0 Likes
735

HI,

check the settings in tcode oy01.

regards

siva

Read only

Former Member
0 Likes
734

Hi,

We can change by using transaction code oy01. In that transaction code change the Dec pt.format ( Date format and Decimal character).

thanks&regards

venkat

Please reward if it is helpful.