10-07-2008 9:35 AM
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.
10-07-2008 9:36 AM
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
10-07-2008 9:42 AM
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
10-07-2008 10:57 AM
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
10-22-2010 5:48 AM