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

To Change the decimal notation in program

Former Member
0 Likes
1,695

Is their any functional module which will change the decimal notation from '1.234.567,89' to '1,234,567.89' and this change should affect only to that program.

1 ACCEPTED SOLUTION
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,548

Hi

By changing the User Profile you can achieve this.

Regards,

Sreeram

10 REPLIES 10
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,549

Hi

By changing the User Profile you can achieve this.

Regards,

Sreeram

Read only

0 Likes
1,548

i dont want to change the user profile but i want this only for that particular program. Is it possible

Read only

0 Likes
1,548

Hi

Without changing the User Profile, u want to achieve ur requirement:

Only way is

Use

SET COUNTRY statement in ur program.

Regards,

Sreeram

Read only

Former Member
0 Likes
1,548

Hi,

That is Depends on the USER Profile, so change the user profile so the decimal notation will be changes, USe SU01 to change the User profile

Regards

Sudheer

Read only

Former Member
0 Likes
1,548

Hi Rajesh K

Follow thiis path,

From SAP Menus

System->User Profile->Own Data

Then

Defualt Tab then change the Decimal Notation

Reward if Useful.

Read only

0 Likes
1,548

hi,

you can goto transacton su01 and then enter your name and then click change, then check the defaults tab change according to your requirement.

regards,

santosh.

Read only

Former Member
0 Likes
1,548

Hi Rajesh,

For a pertucular program you can use REPLACE statement.

For E.g.

Suppose wa_data-wrbtr is your amount,

REPLACE ALL OCCURRENCES OF ',' IN wa_data-wrbtr WITH ' '.

Reward if useful.

Read only

Former Member
0 Likes
1,548

In your case use two statements,

REPLACE ALL OCCURRENCES OF <b>','</b> IN wa_data-wrbtr WITH <b>'. '</b>

REPLACE ALL OCCURRENCES OF <b>'.'</b> IN wa_data-wrbtr WITH <b>', '</b>

Reward if useful.

Read only

Former Member
0 Likes
1,548

you can try with

data : amt type p decimals 2 value '123456.55'.

set country 'IN'.

write : / amt.

if it does not work you have to assign it in a character var...then have to format pls let us know whether you are getting solution or not?

regards

shiba dutta

Read only

Sathish
Product and Topic Expert
Product and Topic Expert
0 Likes
1,548

you can write a piece of code.

Check for the string length and whereever there is ',' replace by '.'

There is no standard FM for this but can be achieved by writing a piece.