cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert exchange rate into internal format in WebDynpro?

0 Kudos

Hello everyone,

in our application, user has the possibility to enter the exchange rate on the screen directly which is then used to convert value between different currencies.

The input field is in text format, so the value has to be converted into internal format (a number). There is a function module for this 'CONVERT_RATE_INPUT' which works in SAP GUI.

Now, if I use this module in WD, there is a dump if user enters the rate in wrong format because this module uses statement "MESSAGE" which is prohibited in WD.

Does anyone know if there is any standard module which works in WD?

It seems to me a bit silly just to rewrite the code of the FM 'CONVERT_RATE_INPUT' so it works in WD...

Thank you in advance for any advice.

Kind regards,

Tomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Also check this CL_WDR_CONVERSION_UTILS for the conversions in webdynpro.

Regards,

Lekha.

Answers (1)

Answers (1)

0 Kudos

I did not notice that the FM 'CONVERT_RATE_INPUT' raises also exception input_error. By catching this exception and checking sy-msg, I can solve my problem.