on 11-29-2005 4:36 PM
Hello all,
I'm querying an external System via DBLINK.
In some cases this results in a dump (e.g. when there are no rows returned).
So i tried to catch the RUNTIME ERROR because i want to continue processing.
I tried the following code but for some reason it continues dumping.
All suggestions welcome!
Thomas
CATCH SYSTEM-EXCEPTIONS OTHERS = 1.
exec sql.
execute procedure p_getidbyname@ZWINCASH
(IN :mg, IN :'Merchand.', IN :'Y', OUT :mgid )
ENDEXEC.
endcatch.
if sy-subrc = 1.
write:/ 'Da ist was falch gelaufen'.
endif.
You do not appear to be trying to catch a specific system exception. The exception DBIF_DSQL2.... is not a catchable system exception.
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried to incorporate the error capture in your external db procedure and pass the resultant error message as a parameter or a normal raise exception?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.