I have to rasie exception /IWBEP/CX_MGW_BUSI_EXCEPTION within a backend method, which will be called by the GET_ENTITY method.
I have caught the exception into a reference LR_BUSINESS_EXCEPTION.
lr_exception is the importing parameter for the backend method called.
Should I use the following code
Or should I raise the exceptionas per the below code
In this case how should I populate IIO_MESSAGE_CONTAINER based on the reference LR_BUSINESS_EXCEPTION.
Please advice.