DEMO_CDS_DATA_SOURCE
CDS view entity data source example
DEMO_CDS_DATA_SOURCE is a CDS View that provides data about "CDS view entity data source example" in SAP S/4HANA. It reads from 2 data sources (scarr, Demo_Cds_Param_View_Entity) and exposes 9 fields with key fields carrid, connid.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| scarr | _source2 | inner |
| Demo_Cds_Param_View_Entity | Demo_Cds_Param_View_Entity | from |
Annotations (1)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CDS view entity data source example | view |
@EndUserText.label: 'CDS view entity data source example'
define view entity DEMO_CDS_DATA_SOURCE
as select from Demo_Cds_Param_View_Entity
( p_distance_l:12, p_distance_u:23, p_unit:'kms' )
as source1
inner join scarr as _source2
on source1.carrid = _source2.carrid
{
key source1.carrid,
key source1.connid,
source1.cityfrom,
source1.cityto,
source1.distance,
source1.distid,
//scarr
_source2.carrname,
_source2.currcode,
_source2.url
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DEMO_CDS_PARAM_VIEW_ENTITY",
"SCARR"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA