<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adriana Lopez Fernandez</title>
    <description>The latest articles on DEV Community by Adriana Lopez Fernandez (@alopez).</description>
    <link>https://dev.to/alopez</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3171952%2F0f7ef8de-3729-4cf6-801b-85c794d01275.jpg</url>
      <title>DEV Community: Adriana Lopez Fernandez</title>
      <link>https://dev.to/alopez</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alopez"/>
    <language>en</language>
    <item>
      <title>Core Data Services (CDS) and Their Integration with SAP Datasphere</title>
      <dc:creator>Adriana Lopez Fernandez</dc:creator>
      <pubDate>Fri, 16 May 2025 23:13:03 +0000</pubDate>
      <link>https://dev.to/alopez/core-data-services-cds-and-their-integration-with-sap-datasphere-3lg0</link>
      <guid>https://dev.to/alopez/core-data-services-cds-and-their-integration-with-sap-datasphere-3lg0</guid>
      <description>&lt;p&gt;CDS is a technology in SAP that allows the definition of semantic data structures directly at the database level, in a richer, reusable, and more efficient way than traditional SQL views.&lt;br&gt;
They enable you to create "smart views" on your tables that not only retrieve data but also add meaning (semantics), relationships, and business logic directly in the data modeling layer.&lt;br&gt;
CDS are mainly used for:&lt;br&gt;
• Declarative modeling of complex data&lt;br&gt;
• Creating reusable views with embedded logic&lt;br&gt;
• Exposing data to tools such as SAP Analytics Cloud, SAP Datasphere, or Fiori applications&lt;br&gt;
• Improving model performance and governance by centralizing business rules&lt;/p&gt;

&lt;p&gt;_ Key Characteristics_&lt;br&gt;
• Declarative: Written in a SQL-like language enriched with annotations and relationships.&lt;br&gt;
• Reusable: CDS can be nested to build more complex models.&lt;br&gt;
• Semantic: Add meaning to data through annotations, hierarchies, and associations.&lt;br&gt;
• Optimized for SAP HANA: Efficient execution at the database level, reducing load on the application layer.&lt;br&gt;
• Exposable: Can be published as OData services for consumption by other tools or applications&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Practical Exercise: Data Model Definition&lt;/em&gt;&lt;br&gt;
In this scenario, we want to query customer invoice details (Sales and Distribution). In SAP, transaction VF03 can be used to view:&lt;br&gt;
• General document data&lt;br&gt;
• Billed customer&lt;br&gt;
• Sales items&lt;br&gt;
• Total amount&lt;br&gt;
• Price conditions&lt;br&gt;
• Related documents (order, delivery, etc.)&lt;br&gt;
• Posting status&lt;br&gt;
• Accounting references (FI)&lt;br&gt;
• Tax information&lt;br&gt;
• Print data&lt;br&gt;
VF03 accesses various standard SD and FI tables. Below is a list of key tables used by VF03 in S/4HANA:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Main SD Invoice Tables&lt;/strong&gt;&lt;br&gt;
• VBRK: Billing Document Header&lt;br&gt;
• VBRP: Billing Document Item&lt;br&gt;
• VBFA: Document Flow&lt;br&gt;
• VBPA: Sales Document Partners&lt;br&gt;
We will begin by identifying the standard SAP CDS views. This process must be carried out for each of the tables that make up transaction VF03, as previously described.&lt;br&gt;
The following SAP portal can be a valuable resource to streamline this task, as it provides comprehensive documentation on the CDS (Core Data Services) views available in SAP S/4HANA Cloud, version 2408.500.&lt;br&gt;
&lt;a href="https://help.sap.com/docs/SAP_S4HANA_CLOUD/c0c54048d35849128be8e872df5bea6d/73772e73e49f440f8193004c73603853.html?version=2408.500" rel="noopener noreferrer"&gt;https://help.sap.com/docs/SAP_S4HANA_CLOUD/c0c54048d35849128be8e872df5bea6d/73772e73e49f440f8193004c73603853.html?version=2408.500&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Below are the main resources you can find:&lt;/strong&gt;&lt;br&gt;
CDS View Documentation&lt;br&gt;
• Description of standard CDS views: Includes information about the predefined CDS views provided by SAP for various business areas.&lt;br&gt;
• Structure and fields: Details the structure of each view, including available fields and their data types.&lt;br&gt;
• Relationships and associations: Provides information on how CDS views are related to one another, which is useful for understanding how data is integrated across different modules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Navigation and Search&lt;/strong&gt;&lt;br&gt;
• Table of contents: A hierarchical structure that allows you to navigate through the different sections of the documentation.&lt;br&gt;
• Search function: You can search for specific CDS views by name or keyword to quickly access the information you need.&lt;br&gt;
If you wish to explore further details about the available CDS views and how they can be used across various business areas, I recommend visiting the SAP Business Accelerator Hub, where you will find an extensive collection of CDS views categorized by line of business and area.&lt;br&gt;
&lt;a href="https://api.sap.com/products/SAPS4HANACloud/onstackextensibility/cdsviews" rel="noopener noreferrer"&gt;https://api.sap.com/products/SAPS4HANACloud/onstackextensibility/cdsviews&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical Exercise: Identifying CDS Views&lt;/strong&gt;&lt;br&gt;
The search is carried out for the CDS views corresponding to transaction VF03 (Sales).&lt;br&gt;
tables of transaction VF0&lt;/p&gt;

&lt;p&gt;1.- Table VBRK (Billing Document Header)&lt;br&gt;&lt;br&gt;
→ CDS is I_BILLINGDOCUMENTBASIC&lt;br&gt;
2.- Table VBRP(Billing Document Item)   CDS is I_BILLINGDOCUMENTITEMBASIC&lt;br&gt;
3.- Table VBFA  Document Flow (Delivery → Billing)&lt;br&gt;
the CDS is I_SDDOCUMENTMULTILEVELPROCFLOW&lt;br&gt;
4.- VBPA (Sales Document Partner Functions) the CDS is I_SDDOCUMENTCOMPLETEPARTNERS.&lt;/p&gt;

&lt;p&gt;"This is my first content. Soon, I will share important information about Core Data Services and how they can be linked with SAP Datasphere."&lt;br&gt;
**&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
