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

currency error

Former Member
0 Likes
666

Hi Frineds,

I am facing some currency error, I am getting currency value like 1000012,59, after comma 2 decimals but in comma place I have to replace with "." dot, is any function module is available for this or any other way to solve.

Can you any one hlep.

Thanks,

Gourisankar.

4 REPLIES 4
Read only

former_member191735
Active Contributor
0 Likes
630

First of all check your settings in user profile. the format you are getting is german format. Search in se37 using Convertcur else write your own using replace statement. Press f1 on replace statement, you will see the help

Read only

Former Member
0 Likes
630

Hi ,

DATA : V_FORMAT LIKE VFKP-NETWR

Use this FM :

CALL FUNCTION SD_CONVERT_CURRENCY_FORMAT

EXPORTING

I_CURRENCY = INR

IMPORTING

E_CURRENCY_INT_FORMAT = V_FORMAT

CHANGING

C_CURRENCY_EXT_FORMAT = 23444

EXCEPTIONS

WRONG_FORMAT = 1

OTHERS = 2

.

WHEN U EXECUTE THIS FM YOU WILL GET OUTPUT IN INDIAN CURRENCY IN VARIABLE :

V_FORMAT .

IT WILL WORK

REGARDS

NILESH JAIN .

Read only

Former Member
0 Likes
630

hi,

use SD_CONVERT_CURRENCY_FORMAT

CONVERT_TO_LOCAL_CURRENCY

CONVERT_TO_FOREIGN_CURRENCY

thanks

Read only

Sandra_Rossi
Active Contributor
0 Likes
630

If the field is character-like, just use this ABAP statement:

TRANSLATE <your_field_name> USING ',.'.