Hi Experts,
I have created a static class which calls a BAPI to create job.
The way i am handling error message is as shown below:
APPEND LINES OF lt_return TO et_message_log.->exporting parameter
LOOP AT lt_return INTO lw_return WHERE type CA 'AE'.
RAISE EXCEPTION TYPE cx_bapi_error
EXPORTING
status = lt_return.
ENDLOOP.
ET_MESSAGE_LOG is export parameter of the class.
This method is also used by workflow and the concerned person is saying that the method doesnt return an error because it isnt handling exceptions.
When i test the method in se24 it raises exception popup CX_BAPI_ERROR and when i close pop-up i am getting error in message log.
Is this the right way to raise exception ? I dont know why workflow cannot capture these errors.
Please advice,.