Skip to Content
0
Jun 27, 2022 at 03:12 PM

SAP MDK - Problems creating ErrorArchive Entity

112 Views

Hi Experts!

I hope you can help me with the problem I’m having with ErrorArchive entity in MDK. The SAP system installed is EHP8 FOR SAP ERP 6.0.

When the user want to update an object that it's been used by another user in SAP GUI, the backend will response HTTP code 500 and I need to save the request in Error Archive Entity, but it's always empty.

I followed all steps in these two tutorials:

https://developers.sap.com/tutorials/cp-mobile-dev-kit-error-archive.html

https://blogs.sap.com/2020/02/26/error-handling-with-offline-odata/

The MDK configuration its the same that tutorial’s:

image.png

image.png

and this is the RAISE EXCEPTION code in Odata Backend:

DATA:
          lo_msg     TYPE REF TO /iwbep/if_message_container.
CALL METHOD me->/iwbep/if_mgw_conv_srv_runtime~get_message_container
RECEIVING
ro_message_container RECEIVING ro_message_container = lo_msg.

RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING textid = /iwbep/cx_mgw_busi_exception=>business_error
http_status_code http_status_code = 500 message_container = lo_msg.

Here is the Page code : errorlist.txt

Thank you for advance,

Regards.

Attachments

image.png (33.3 kB)
image.png (5.4 kB)
errorlist.txt (1.5 kB)