Skip to Content
1
May 24, 2018 at 08:55 AM

oData batch processig: Initial entry_provider in IF_MGW_APPL_SRV_RUNTIME~CHANGESET_PROCESS

315 Views Last edit May 24, 2018 at 08:58 AM 2 rev

Hello,

I want to change and save data from a SAP UI5 view.

For deleting datasets I use the command oModel.remove(...) in my SAP UI5 application which calls the redefined method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN in the backend. I have set defer_mode = true with the result that the CHANGESET_PROCESS method is called.

In changeset_process I loop about it_changeset_request and want to read the changed data with ls_changeset_request-entry_provider->read_entry_data( IMPORTING es_data = ls_verp ). The problem is that I can't call read_entry_data because entry_provider is initial.

If I only change (and not delete) data and call oModel.submitChanges() the entry_provider is not initial and everthing works fine.

Does someone know what is wrong?

Kind Regards