cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK - Problems creating ErrorArchive Entity

LautaroScavuzzo
Discoverer
0 Kudos

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:

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.

Accepted Solutions (0)

Answers (0)