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: 

Standard Exceptions for Function Modules created in ADT

blee1
Explorer
0 Kudos

When function modules are created via ADT, exceptions by default uses exception classes instead of standard exceptions.

Is there a way to create / modify (in Eclipse) function modules created in ADT to use standard exceptions, instead of exception classes?

1 ACCEPTED SOLUTION

ThFiedler
Product and Topic Expert
Product and Topic Expert

Hi Benson,

yes this is possible as well. In ADT you enter the signature of your function module directly in the source code editor.

So it's up to you if you choose EXCEPTIONS or RAISING clause to decide which exception mechanism you want to use.

Regards,

Thomas.

2 REPLIES 2

ThFiedler
Product and Topic Expert
Product and Topic Expert

Hi Benson,

yes this is possible as well. In ADT you enter the signature of your function module directly in the source code editor.

So it's up to you if you choose EXCEPTIONS or RAISING clause to decide which exception mechanism you want to use.

Regards,

Thomas.

0 Kudos

Hi Thomas,

Thanks for your inputs. I have tried it, and it is exactly what I was looking for!

One question though, it seems that if I update the flag via SE37, the changes do not get reflected in ADT.

Or, if I mark it as "raising" in ADT (then activate and unlock the FM), and uncheck the flag via SE37 (then reactivate the object), the flag remains right after the FM is reactivated.

Is this normal behavior on 740 SP16?

Regards,

Benson