cancel
Showing results for 
Search instead for 
Did you mean: 

In OData batch processing, how to perform check only and skip commit in CHANGESET_END?

ritam_de1997_29
Explorer

This question was already asked a few years back, but has received no response: Odata batch processing...how to perform check only and skip commit in CHANGESET_END ? | SAP Communit...

I have a similar issue. I want to call a BAPI (example BAPI_INCOMINGINVOICE_CANCEL) inside my CREATE_ENTITY method. I am calling it in $batch because there are multiple invoices to be cancelled. There is a field called 'TESTRUN' which I am passing to CREATE_ENTITY. When TESTRUN=X, I want to do a simulation run and return the results without committing, even if it is successful. But, batch processing will do an automatic commit at the end. I want to use ROLLBACK, but it is prohibited to use explicit COMMIT or ROLLBACK inside changesets during batch processing.

How do I achieve this? It seems that in /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END, there is no import parameter that I can use to skip the COMMIT call.

Accepted Solutions (0)

Answers (0)