Skip to Content
Sep 07, 2012 at 02:09 PM

Error handling in workflow


Hi Everybody,

I need to handle a scenario for a particular condition,

If the Quote is not a valid quote then i need to throw an error in my custom workflow.

I have tried with-

1)custom class->method with the following code-

MESSAGE e002(zdev) with wa RAISING error_log.

But when i check the status in SWI1,it shows the Wi into completed status.

2)I tried using the FM 'SAP_WAPI_SET_WORKITEM_STATUS' but i didnt work.

My requirment is,In the workflow log it should show an error(Quote:Quote Number) does not exists.

The workflow admin wants to see the error(red color) with the message 'Quote:Quote number' doesnot exists.