Hi,
I've to import a lot of data from a flatfile.
To avoid short dumps when there are non-numeric data's for a numeric field in the file, I load every record in a structure that have only CHAR fields.
Then I move this fields in a TRY-Catch block to the real fields like this:
...
TRY.
field1 = field_from_file1
field2 = field_from_file2
field3 = field_from_file3
CATCH cx_sy_conversion_no_number INTO lr_exception.
PERFORM fehler USING lr_exception.
ENDTRY.
...
This construct works until the first field has a conversion error. However I will test all fields to get a complete list of the errors. And I am to lazy to make a TRY-CATCH construct for hundred of move-statements.
Is there a better trick to check the success of <b>all</b> move operation?
Regards,
Stefan