Skip to Content
avatar image
Former Member

Currency field format error

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 31, 2014 at 09:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 30, 2014 at 01:33 PM

    Hi Rajesh,

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

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 02, 2015 at 02:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded