If the field/variable is of type <b>CURR</b>, system will do a automatic check.
If you want to have your own check you could try the following (taken from ABAP key word documentation).
DATA I TYPE I. *** CONVERSION_ERRORS contains CONVT_NO_NUMBER *** CATCH SYSTEM-EXCEPTIONS CONVERSION_ERRORS = 1. MOVE 'abc' TO I. " <- Error: CONVT_NO_NUMBER ENDCATCH. IF SY-SUBRC = 1. ... ENDIF.
Hope this helps.
Regards
Raja
Since you are new to SDN may i introduce you to the points system at SDN.
You assign points to the replies that you have found to be useful. It's a way to say "thanks" for the effort in the replies.
See: /people/mark.finnern/blog/2004/08/10/spread-the-love for directions.
Click on the Yellow Star icon in each reply.
You can give:
1 - 10 pointer (marks it as a solved problem)
2 - 6 pointers (very helpful)
Lots of 2 pointers (helpful)
Add a comment