Skip to content
IT Canvass
SAP APIs · Lesson

OData

Quick answer

Every Fiori app talks to the backend via OData, and S/4HANA/cloud products expose OData APIs for integration.

Key takeaways

  • In modern SAP you create OData services from CDS views (via annotations or the RAP model), or classically with the Gateway Service…
  • OData exists in versions (V2 widely used in SAP, V4 increasingly adopted).
  • Entities & entity sets: resources (e.g. SalesOrder) and collections.
  • Watch out: Over-fetching instead of using query options.

Why OData matters in SAP

Every Fiori app talks to the backend via OData, and S/4HANA/cloud products expose OData APIs for integration. It combines REST’s simplicity with powerful, standardised query capabilities, making it ideal for both user interfaces and system-to-system data exchange.

Core capabilities

  • Entities & entity sets: resources (e.g. SalesOrder) and collections.
  • CRUD via HTTP verbs (GET/POST/PUT/DELETE).
  • Query options: $filter, $select, $expand, $orderby, $top/$skip.
  • Metadata document describing the service.

Building and consuming

In modern SAP you create OData services from CDS views (via annotations or the RAP model), or classically with the Gateway Service Builder (SEGW). Consumers, Fiori apps, mobile, external systems, call them over HTTP, using query options to fetch precisely what they need.

Versions

OData exists in versions (V2 widely used in SAP, V4 increasingly adopted). Know which version a service uses, as query syntax and features differ.

Common pitfalls

  • Over-fetching instead of using query options.
  • Confusing OData V2 and V4 syntax/features.
  • Not reading the metadata before consuming.

Want to learn this properly?

Our live, instructor-led SAP Training covers this hands-on, with real projects and a certification path.

Check your understanding

  1. Which statement is true of OData?

    • A. HANA modeling means building reusable views, especially calculation views, that shape and combine data for…
    • B. It combines REST’s simplicity with powerful, standardised query capabilities, making it ideal for both user…
    • C. The organizational structure in SAP is the framework of organizational units, company code, plant, storage…
    Show answer

    B. It combines REST’s simplicity with powerful, standardised query capabilities, making it ideal for both user…

    Covered in the “Why OData matters in SAP” section of this lesson.

  2. Which of these also applies to OData?

    • A. Learning features, not the end-to-end process.
    • B. Wrong integration style (sync vs async) for the need.
    • C. In modern SAP you create OData services from CDS views (via annotations or the RAP model), or classically…
    Show answer

    C. In modern SAP you create OData services from CDS views (via annotations or the RAP model), or classically…

    Covered in the “Building and consuming” section of this lesson.

  3. Which part of the Learn SAP curriculum covers OData?

    • A. SAP modules hub
    • B. SAP examples
    • C. SAP APIs
    Show answer

    C. SAP APIs

    This lesson sits in the SAP APIs section of the Learn SAP course.

Frequently asked questions

What does OData mean in SAP APIs?

OData is the protocol at the heart of modern SAP integration and Fiori, a RESTful, resource-oriented standard for querying and updating data over HTTP with JSON. Understanding OData is essential for UIs and cloud integration.

What is connected to OData in an SAP landscape?

Every Fiori app talks to the backend via OData, and S/4HANA/cloud products expose OData APIs for integration.

What tends to go wrong with OData in SAP APIs?

Over-fetching instead of using query options. Confusing OData V2 and V4 syntax/features. Not reading the metadata before consuming.
CallWhatsAppEnquire