cancel
Showing results for 
Search instead for 
Did you mean: 

Currency field format error

Former Member
0 Kudos

Dear All,

I have defined a currency field in my component type BETRG.

When i try to input amount in wrong for mat (like 23,2) getting below error.

"Distance Between Separators for Thousands Must Be 3."

I just want to change the text of this standard message.

Kindly let me know weather it is possible or not. If possible let me know the procedure,

Thanks,

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

somnath
Active Participant
0 Kudos

Hi Rajesh,

Though I didn't try myself to validate , if this could work. Still sharing my thoughts: This validation is done by WDA framework through class CL_WDR_CONVERSION_UTILS=>FROM_STRING. So if you can place this method call in WDDOBEFOREACTION and pass the screen data as context will not be bound that moment, there you can capture exception  cx_wdr_conversion_exception and place your own message with type error.

But would like to know why do you want to change this standard system given message as it clearly says whats wrong with the input. Not sure this is a customer needs, in that case I would suggest to go for user training rather than changing some default message from system.

Let me know if this helps.

- Thanks , Somnath

Former Member
0 Kudos

Thanks for your helpful reply..

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Rajesh,


The data type checks are done by WDA framework automatically and hence these cannot be controlled within component i.e. if any data type errors found, no hook methods get called in this case.

Regards,

Rama

Former Member
0 Kudos

Hi Rajesh,

I think it is not possible as it a curreny field .

Thanks

KH