2007 Jul 25 11:44 AM
hi , i am getting a value from file . i have to check whether it is pacri decimal value or not . for this which exception should i raise in the try and catch block. can any one give me the code???
2007 Jul 25 12:04 PM
Hi,
Try using CX_SY_CONVERSION_NO_NUMBER.
OR you can create an exception class specific to your need in SE24.
Regards,
Sesh
2007 Jul 25 12:08 PM
Depending on whether your report has the flag "Unicode-enabled" set or not you will get a different result of the syntax check (SLIN) for statement
s_struc-t_table = itab1.
- Unicode-enabled = 'X': => syntax error if the structures do not match exactly
- Unicode-enabled = ' ': => perhaps no syntax error but system-exceptions due to type conversion errors possible
In the latter case you would use the following statement:
CATCH SYSTEM-EXCEPTIONS <type conversion error> = 1.
s_struc-t_table = itab1.
...
ENDCATCH.
However, please note that the CATCH SYSTEM-EXCEPTIONS is different from class-based exception handling because this statement does not return any error object.
Regards