on 01-09-2024 3:13 PM
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.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.