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:
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
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,