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

Standard Function Module for putting commas in Currency

Former Member
0 Likes
5,517

Hi,

Is there a standard function module in ABAP which puts commas in the currency field. Ex 5000000 should show up as 50,00,000.

Thanks

R M

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,451

Hi,

use this FM for converting internal to external format BAPI_CURRENCY_CONV_TO_EXTERNAL.

Regards

Raj.D

3 REPLIES 3
Read only

Former Member
0 Likes
2,451

hi,

do this way ...


data : v_dmbtr like bseg-dmbtr.

write : '500000' to v_dmbtr.

write : v_dmbtr.

Regards,

Santosh

Read only

Former Member
0 Likes
2,452

Hi,

use this FM for converting internal to external format BAPI_CURRENCY_CONV_TO_EXTERNAL.

Regards

Raj.D

Read only

Former Member
0 Likes
2,451

Hi RM,

You can use "WRITE .... CURRENCY" syntax.

Below is very simple program for that syntax.

-


REPORT ztest.

DATA: lv_money(50),

lv_value TYPE konv-kbetr,

lv_curr TYPE konv-waers.

lv_curr = 'USD'.

lv_value = 5000000.

WRITE lv_value CURRENCY lv_curr TO lv_money.

WRITE lv_money.

-


Try to execute the program and you'll get the idea.

Thanks,

Victor.