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: 

need to incorporate comma in the currency

Former Member
0 Kudos

Hi abap gurus,

From the existing function module,I m getting the amounts(currency) related data.

Now I need to display the amount with the comma.

For example,the amount is 126789 then i need to diaplay it as

1,26,789.

I have plenty of amount related records.Pls provide the solution.Also suggest me if any standard FM is there for this purpose.

Pls help me reg this.

4 REPLIES 4

former_member386202
Active Contributor
0 Kudos

Hi,

Declare one variable type p with decimals 2, pass this value to that variable n display.

Data : l_amount type p decimals 2.

Regards,

Prashant

Former Member
0 Kudos

Refer a standard dataelement to your field.

It will solve many problems.

eg: amount type bsid-dmbtr.

it will automatically display in ur specified format.

or...

U can do 2 things,

Change the settings in SU01 - > Defaults (Tab) change the required decimal format.

or.

use SET COUNTRY 'IN'. as first stmt of ur program.

regards,

Padma

Edited by: Padmashree RamMaghenthar on Oct 7, 2008 2:13 PM

Former Member
0 Kudos

hi

use this function module:

CALL FUNCTION '/OSP/GET_DECIMAL_NOTATION'
  EXPORTING
    i_uname                               = 'SAPUSER'
* IMPORTING
*   ET_RETURN                        =
   EV_DECIMAL_NOTATION       = lv_dec_not
   EV_TEXT                             = lv_text .

hope it will help you

regards

rahul

Former Member
0 Kudos

Resolved