{"ref":"content:odata-batch-deleting-records-across-multiple-tables-in-single-transaction","page":"/content/odata-batch-deleting-records-across-multiple-tables-in-single-transaction","json":"/content/odata-batch-deleting-records-across-multiple-tables-in-single-transaction.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"odata-batch-deleting-records-across-multiple-tables-in-single-transaction","title":"OData $batch Deleting Records Across Multiple Tables in Single Transaction","url":"https://community.sap.com/t5/technology-blog-posts-by-members/odata-batch-deleting-records-across-multiple-tables-in-single-transaction/ba-p/14372058","content_type":"blog","published_on":"source:sap-community","explains":[{"ref":"capability:odata","applies_to":{"ecosystems":["abap"]}}],"summary":"Walks through implementing a multi-table DELETE inside a single [OData](capability:odata) v2 $batch changeset on SAP Gateway: setting `cv_defer_mode = abap_true` in `CHANGESET_BEGIN` so more than one delete is collected per change set instead of being executed immediately, looping the collected operations in `CHANGESET_PROCESS` to delete from each backend table in turn, and issuing one `COMMIT WORK` in `CHANGESET_END` so all tables commit or roll back together. The example is a supplier master spread across basic, address, identification and purchasing-organisation tables, deleted as one logical unit of work instead of one HTTP call per table.","short":"Multi-table delete in one OData $batch changeset on SAP Gateway","author":"Abhi_0118","published":"2026-04-17","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"abap-cloud-tag"},{"source":"source:sap-community","channel":"abap-development-tag"}],"first_seen":"2026-09-21"},"drafted_with_ai":true,"history":[{"date":"2026-10-17","field":"explains","from":null,"to":"applies_to on capability:odata (abap)","reason":"Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md)."}]},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 7 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-04-17"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":1806,"unit":"views"},{"value":2,"unit":"comments"},{"value":4,"unit":"likes"}]},"signals":{"views":1806,"likes":4,"comments":2,"metrics_at":"2026-11-01"},"series":null,"edges":{"authors":[]}}