ERPClimb logoERPClimb
S/4HANA Clean Core
Architect / Cross-trackAdvanced 4 min read

SAP Clean Core: Released APIs vs Direct Table Access (Part 5)

Preview · a free account unlocks the full lesson

Key takeaway

Use released business APIs and CDS contracts instead of direct dependencies on SAP internal tables for new clean-core development, especially for updates where direct writes bypass application integrity.

In this lessonShow sections

Visual overview

SAP Clean Core: Released APIs vs Direct Table Access (Part 5) — learning sheetIn one line: Use released business APIs and CDS contracts instead of direct dependencies on SAP internal tables for new clean-core development, especially for updates where direct writes bypass application integrity.ERPClimb.com / ARCH / LESSON 5/9 / LEARNING SHEETSAP Clean Core: Released APIs vs Direct Table Access (Part5)1 · IN ONE LINEUse released business APIs and CDS contracts instead of direct dependencies on SAP internaltables for new clean-core development, especially for updates where direct writes bypassapplication integrity.2 · KEY IDEAS EXPLAINED1Direct table access couples custom code to SAP'spersistence implementation. For reads, that canbreak when S/4HANA changes the storage model ormoves semantics behind compatibility views or newbusiness entities. For writes, direct INSERT,UPDATE or DELETE is far more dangerous because it…2Released APIs, released CDS entities, BAdIs andRAP contracts provide a supported compatibilityboundary. SAP can change internals whilepreserving the public contract according to therelease model.3This does not mean every historic SELECT from anSAP table must be rewritten immediately.Brownfield remediation should consider usage, riskand whether a released alternative exists. NewABAP Cloud development, however, intentionallyrestricts access to released objects.4For business-object updates, always prefer theowning application API. A custom field physicallystored on a standard table does not make directtable UPDATE a valid business operation.3 · DO · AVOIDBest practice!Common mistakeUse released APIs for business operations.Prefer released CDS for new read models.Never directly update standard applicationtables.✕Writing standard application tables directly.✕Assuming a table read is a stable API.✕Replacing all legacy reads withoutprioritizing risk.4 · IN A REAL PROJECTA custom program directly updated a standard order status field and left dependent processing inconsistent.Replacing it with the supported business API restored standard validations and change flow.Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Direct table access couples custom code to SAP's persistence implementation. For reads, that can break when S/4HANA changes the storage model or moves semantics behind compatibility views or new business entities. For writes, direct INSERT, UPDATE or DELETE is far more dangerous because it bypasses authorization, locks, validation, change documents and dependent updates.

Released APIs, released CDS entities, BAdIs and RAP contracts provide a supported compatibility boundary. SAP can change internals while preserving the public contract according to the release model.

This does not mean every historic SELECT from an SAP table must be rewritten immediately. Brownfield remediation should consider usage, risk and whether a released alternative exists. New ABAP Cloud development, however, intentionally restricts access to released objects.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.