Application Development and Automation 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: 
Read only

Use Try/Catch on function module if there is a return value

abapdanny
Explorer
0 Likes
1,679

Hi guys,

I have a general question. Does it make sense to wrap a Try/Catch statement around a function (e.g. BAPI_PS_PRECOMMIT) which already exports a return value/table?

2 REPLIES 2
Read only

abapdanny
Explorer
Read only

Sandra_Rossi
Active Contributor
1,604

Use TRY/CATCH only for methods or function modules which define an exception class in the RAISING part of their signature.