cancel
Showing results for 
Search instead for 
Did you mean: 

Application error not catched

Former Member
0 Kudos

Hi,

we are calling an RFC synchronously from BPM. This is a standard BAPI, that does not have any RFC exception message (BAPI_IPAK_START and BAPI_ISREQUEST_GETSTATUS). We are only able to catch system errors, since no RFC exception message is avaiable for which we could define a different exception branch.

If an error happens in the RFC, an application error is thrown, which is not catched in the exception branch defined to handle the system error. After the application error, the process simply terminates- that's it.

Why is an application error not catched as system error? Is there any way to catch an application error and let the business process continue?

Your help will be rewarded,

Volker

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Hi Volker,

a BAPI does not throw any exception, therefore you cannot catch any.

- You could write a wrapper RFC around the BAPI which interprets the RETURN structure and throws exception in case of an error.

- You could have a fork in the BPM depending of the entries in RETURN.

Regards

Stefan

former_member184154
Active Contributor
0 Kudos

Hi Volker and Stefan,

I was guessing exactly the same solution, except that based on return value (0 or non 0) you'll have to use a SWITCH, not a FORK.

Regards,

Alex