cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a string to a currency value ? getting a dump with exception

Former Member
0 Kudos

Hi,

I am getting a exception not caught in CX_SY_CONVERSION_NO_NUMBER.

I am trying to convert a string value with ',' to a currency value.

I tried using Replace and Condense. But the error still persists.

Is there a FM or a casting that I can use?

Cheers

Kiran

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Sorry I got my question wrong. I have a problem - that when I'm trying to pass a value from a string to a currency field.

But, the currency field is a field symbol.

so, I have

data abc type string.

abc = "5345"

<curr_val> = abc.

now <curr_val> = 0.000

Please suggest.

Former Member
0 Kudos

Hi,

Is suggest that you ask your question in the appropriate forum (ABAP) where you will get a greater chance to get an answer...

Regards,

Olivier