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: 

Decimal Separator and Thousands Separator

Former Member
0 Kudos

Hi Experts,

Is there any FM can get the current user's decimal separator and thousands separator?

Thanks a lot!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Luke,

Try the following FM;

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

When i executed;

lv_dec_not returned 'X' and

lv_text returned 1,234,567.89

Regards

Karthik D

Edited by: Karthik D on Sep 19, 2008 2:18 PM

5 REPLIES 5

Former Member
0 Kudos

Hi ,

check table USR01-DCPFM

regards

Prabhu

0 Kudos

USR01-DCPFM permit value '', 'X', 'Y', which represents 3 type of number format. Are these fromat fixed or they can be configured to diffrenet format?

If it is the later case, I still want a SAP standard FM to get the separator other than hard coded the logic in program. Because the format might change.

Former Member
0 Kudos

Check out the tcode SU01

Specify the username

In Decimals tab..you can see the separators.

Regards,

Prashant

Former Member
0 Kudos

Hi Luke,

Try the following FM;

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

When i executed;

lv_dec_not returned 'X' and

lv_text returned 1,234,567.89

Regards

Karthik D

Edited by: Karthik D on Sep 19, 2008 2:18 PM

Former Member
0 Kudos

Hi Karthik,

Sorry for the late response. I think this FM should solve my problem. Points were given to you:-) Thanks a lot!