SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Extend Released Data Sources by Database Fields That Are Not Exposed

Find out what to do if a C1-released SAP data source (aka CDS view) does not expose a required database table field that you want to read in Cloud Development (ABAP Cloud Development). For example, data source I_SalesOrder only exposes roughly half of the fields of database table vbak.

Overview

🎓 intermediate 30 min. SAP S 4hanaIntermediateABAP Development

You will learn

  • What are the 3 different ways to extend a data source
  • How to identify the 3 cases you must follow
  • How to extend a data source which is key user data source extensible (case 1)
  • How to extend a data source which is released for extend (case 2)
  • How to extend a data source that is not released for extend (case 3) Additional info >Tutorial last updated with SAP S/4HANA release 2025, Fully-Activated Appliance.
Matthäus Schüle M Matthäus Schüle June 23, 2026
Created by March 26, 2024
Contributors

Prerequisites

Prerequisites

  • You have a license for an SAP S/4HANA or SAP S/4HANA Cloud, private edition release 2025 (both referred to as SAP S/4HANA from now on)
  • You have a user in the system with full development authorizations and business role SAP_BR_SALES_MANAGER
  • You are connected to your SAP S/4HANA system in ABAP Development Tools for Eclipse (ADT)
  • You understand the Clean Core Extensibility Guide, see SAP blog ABAP Extensibility Guide – Clean Core for SAP S/4HANA Cloud - August 2025 Update
  • You have set up developer extensibility as described in the official documentation Set Up Developer Extensibility. In particular: the ZLOCAL structure package is available.
  • For productive use, you would develop your data source consumption in a development package below the productive structure package ZCUSTOM_DEVELOPMENT (ABAP for Cloud Development Language Version, ABAP Cloud Development) in your SAP S/4HANA system as suggested in the Developer Extensibility guidelines to Create Structure Package. Extensions you would develop in a dedicated development package of software component HOME (Standard ABAP Language Version, Custom Wrapper), for instance below structure package ZAPI_ENABLEMENT. For the scope of this tutorial, we follow a simplified approach using local development packages ZMYLOCAL within structure package ZLOCAL and $TMP rather than productive packages.

We suggest following this tutorial using a Fully-Activated Appliance in SAP Cloud Appliance Library for an easy start without the need for system setup, as the ZLOCAL structure package is automatically available.

Steps

Step 1 Verify that a Data Source is Usable in Cloud Development

Data sources that you want to use in cloud development (ABAP Cloud Development) need to have API State: Use System-Internally (Contract C1): Use in Cloud Development: Yes. This information can be found in the object’s properties in ADT as in this example for data definition I_SalesOrder.

Released for use in cloud development ADT property
Released for use in cloud development ADT property

See also the documentation: SAP - ABAP Development Tools: User Guide > Released APIs > Use System-Internally (C1)

Step 2 Read a Data Source in Cloud Development (ABAP Cloud Development)
+
Step 3 Check if the Field is Actually Missing
+
Step 4 Identify the Extension Case for a Data Source
+
Step 5 Case 1 - The Data Source is Key User Data Source Extensible (ABAP Cloud Development)
+
Step 6 Case 2.1 - The Data Source is Released for Extend (Custom Wrapper)
+
Step 7 Case 2.2 - Extend the Extension Data Source
+
Step 8 Case 2.3 - Extend the Extensible Data Source
+
Step 9 Case 3.1 - The Data Source is Not Released for Extend
+
Step 10 Case 3.2 - Create the Database Wrapper (Custom Wrapper)
+
Step 11 Case 3.3 - Create the Combining Data Source (ABAP Cloud Development)
+
Step 12 Case 3.4 - Protect the Combining Data Source
+
Step 13 Case 3.5 (Optional) - Restrict the Use of the Wrapper
+
Step 14 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 14
1. Verify that a Data Source is Usable in Cloud Development 2. Read a Data Source in Cloud Development (ABAP Cloud Development) 3. Check if the Field is Actually Missing 4. Identify the Extension Case for a Data Source 5. Case 1 - The Data Source is Key User Data Source Extensible (ABAP Cloud Development) 6. Case 2.1 - The Data Source is Released for Extend (Custom Wrapper) 7. Case 2.2 - Extend the Extension Data Source 8. Case 2.3 - Extend the Extensible Data Source 9. Case 3.1 - The Data Source is Not Released for Extend 10. Case 3.2 - Create the Database Wrapper (Custom Wrapper) 11. Case 3.3 - Create the Combining Data Source (ABAP Cloud Development) 12. Case 3.4 - Protect the Combining Data Source 13. Case 3.5 (Optional) - Restrict the Use of the Wrapper 14. Test yourself

Learn more →