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: 

FM To print the currency values with commas

Former Member
0 Kudos

Hi abappers

Can any of tell me the function module, which gives the (,)seperator for the currency values for example:-

the given value is 10000 then the output value should be

10,000.

Regards

Naren

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Hello,

IF you use Type P it will automatically pritn with commas.

data: l_1 type p decimals 2 value '13344.56'.

write: l_1.

Regards,

Naimesh

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Hello,

IF you use Type P it will automatically pritn with commas.

data: l_1 type p decimals 2 value '13344.56'.

write: l_1.

Regards,

Naimesh

Former Member
0 Kudos

Hi,

By assigning value of variable to a packed type decimal will definitely work for you.

e.g.

DATA: var1 type i ,

var2 type p decimals 2.

.

.

.

var2 = var1.

This will automatically take care of commas.

Hope this helps,

Pragya