on 12-30-2014 11:01 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
I think it is not possible as it a curreny field .
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.