Service Definitions Part 3: API Boundary, Naming and Versioning
Preview · a free account unlocks the full lesson
Treat a service definition as a contract: stable business names, clear naming conventions, compatible vs breaking changes, and versioning services without breaking existing consumers.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Aliases, entity sets, fields and actions form the contract that consumers code against. Adding something is usually a compatible change, while removing, renaming, or making something mandatory is usually breaking. Breaking changes call for a new service version, with the old version kept around until consumers migrate. It's worth agreeing on naming conventions — ZUI_, ZAPI_, _O4, _O2 — before building the first service at all.
Part 2 built services around business capabilities. Once a service actually has consumers, every change affects someone, and this part is about keeping services stable despite that.
On naming conventions: service definitions use ZUI_<OBJECT> for UI and ZAPI_<OBJECT> for APIs; service bindings take the definition's name plus a protocol suffix, _O4 for OData V4 or _O2 for OData V2 — so an API might become ZAPI_<OBJECT>_O4. Aliases should be singular business nouns in CamelCase, like PurchaseRequest or PurchaseRequestItem, and actions and fields should use business names, like approve or RequestID, never raw table column names.
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.