Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

number format exception

Former Member
0 Likes
327

Hi,

How to catch the number format exception in normal abap (I am Not using Oops).

Please give me the solution.

regards,

rakesh

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
280

Hi rakesh,

if you are on ECC600 or above, go for TRY ... ENDTRY.


TRY.
  <number field>  = <text field>.
 
  catch CX_SY_CONVERSION_NO_NUMBER.
    do_some_error_handling
 
ENDTRY.

Regards,

Clemens