cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass exact error details received from backend in CI to caller?

Kesha2
Discoverer
0 Kudos
455

Hi Everyone,
We have a scenario where 3rd party is calling an odata service synchronously through CI as below:

3rd party —> CI —> SAP S4.

Whenever any ABAP dump is thrown from the backend system, it forwards it to CPI but Caller is unable to get the exact error (it says internal server error occured and gives MPL id of the failed message).
The detailed error is not shown in the message.

So our concern is how to pass the exact error details from SAP backend to the caller?

Accepted Solutions (0)

Answers (2)

Answers (2)

robertot4s
Contributor
0 Kudos

Hi @Kesha2 ,

If you have a dump in abap... I think the only way is to include all your abap code into a try/catch, get the error information and return it in a structured message.

Regards,

Roberto

Manideep2
Discoverer
0 Kudos

 

If the backend system sends an error payload, store it in a property. Use a Groovy Script to extract and modify the response and send it as a body to sender.