Application Development 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: 

unable to catch cx_sy_open_sql_db

Former Member
0 Kudos

hi,

'FMFR_CREATE_FROM_DATA' this fm returns the dump cx_sy_open_sql_db, is it possible

to catch this error?

please advice

thanks,

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

Basic answer: TRY ... ENDTRY

0 Kudos

yes i do put try endtry but i still do not catch the error from the FM, my

question if it possible to catch that error?!

please advice,,

0 Kudos

As explained in the documentation, it's a catchable exception, so you may catch it.

If it doesn't work, that means the exception is triggered in another internal session. The example below shows a useless TRY, if the exception occurs in prog that you call with SUBMIT, you can't catch:


TRY. "useless
SUBMIT prog ...
CATCH ... "useless
ENDTRY. "useless