SEPM_I_AddressType
EPM Demo: Address Type
SEPM_I_AddressType is a CDS View of category Dimension that provides data about "EPM Demo: Address Type" in SAP S/4HANA. It reads from 1 data source (dd07l).
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dd07l | dd07l | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | EPM Demo: Address Type | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.representativeKey | AddressType | view | |
| AbapCatalog.sqlViewName | SEPM_IADDRESSTP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
-- This view is an example of an entity view for the fix values of a DDIC domain
@EndUserText.label: 'EPM Demo: Address Type' -- label of the view, can be translated
@Analytics.dataCategory:#DIMENSION -- view is available for analytics with analytics engine as dimension view
@AccessControl.authorizationCheck: #NOT_REQUIRED -- instance-based access control not needed
@Analytics.dataExtraction.enabled:true -- this view is a good candidate for extraction of data to a data warehouse
//@VDM.viewType: #BASIC -- this would mark the view as BASIC view in the Virtual Data Model (VDM)
@ObjectModel.representativeKey: 'AddressType' -- the most significant key field, anchor of foreign key associations pointing here
@AbapCatalog.sqlViewName: 'SEPM_IADDRESSTP' -- for technical reasons, a name for the generated SQL view is needed
@ObjectModel.usageType.serviceQuality:#C
@ObjectModel.usageType.sizeCategory:#L
@ObjectModel.usageType.dataClass: #MASTER
define view SEPM_I_AddressType -- CDS view name; prefix "I_" indicates that it is a VDM interface view (released for reuse)
as select from dd07l -- selected from the table of all domain fix values, filter is given below
association [0..*] to SEPM_I_AddressTypeText as _Text -- association to the text view of the entity; naming convention _Text
on $projection.AddressType = _Text.AddressType -- join condition for the association, defined on the projection list ($projection) of
-- this entity view and the associated text view (via _Text)
{
@ObjectModel.text.association: '_Text' -- association to the text view for this field
key cast ( substring( domvalue_l, 1, 2 ) as snwd_address_type preserving type ) as AddressType,
-- shorten the generic char(10) format of domain fix values to the correct char(2) format of this domain
-- cast the data type to data element SNWD_ADDRESS_TYPE as proper semantic type incl. field labels
_Text -- expose the association to the text view for consumers
}
where
domname = 'D_AD_TYPE' -- filter on the requested DDIC domain
and as4local = 'A' -- filter on the active version in DDIC
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DD07L"
],
"ASSOCIATED":
[
"SEPM_I_ADDRESSTYPETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/
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