cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with CX_BO_ERROR Messages Showing up in Workflow Logs

jwood_bowdark
Active Participant

We have a custom workflow process which has tasks linked to ABAP Objects class methods. Within these methods, we've defined a custom exception class that inherits from CX_BO_ERROR to capture process-specific exceptions. Whenever we test the methods by themselves (e.g. in the test tool), the exception class shows the proper message as expected. However, when the same exception is raised in a workflow process, the text that shows up is a generic SY/530 - An exception was raised. Has anyone seen that before? This is a pretty basic setup, so I can't imagine where that message is coming from.

Accepted Solutions (0)

Answers (2)

Answers (2)

pokrakam
Active Contributor

This should work out the box, there’s even examples in “The Book”. Are you using text IDs? If not, try it and see if it works.

RAISE EXCEPTION TYPE zcx_late_for_work
      EXPORTING textid = zcx_late_for_work=>dog_ate_alarm_clock.

Or try the MESSAGE addition to RAISE EXCEPTION, I haven't used it with WF so don’t know if it works.

If it works with a text ID, I’d consider it a bug worth reporting to OSS if you have the time. I would expect it to revert to the default text if none is specified (assuming you have defined one?).

anjan_paul
Active Contributor
0 Kudos

Hi,

I am not sure, but it might possible another unexpected exception raised before your custom exception. Please share some screenshots.

Thanks