Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to raise business exception, /IWBEP/CX_MGW_BUSI_EXCEPTION?

$
0
0

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

 

Capture.PNG

 

Or should I raise the exceptionas per the below code

 

Capture.PNG

 

In this case how should I populate IIO_MESSAGE_CONTAINER based on the reference LR_BUSINESS_EXCEPTION.

 

Please advice.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>