P_ProdCmplncStorLoc
P_ProdCmplncStorLoc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_Plant, I_StorageLocation) and exposes 7 fields with key fields Plant, StorageLocation, StorageLocation. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Plant | _StorageLocationPlant | union |
| I_StorageLocation | I_StorageLocation | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | P_ChmlCmplConstants | _Constants | _Constants.Constant1 = _Constants.Constant1 |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.representativeKey | StorageLocation | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | Plant | ||
| KEY | StorageLocation | StorageLocation | ||
| StorageLocationName | StorageLocationName | |||
| Plant | ||||
| KEY | StorageLocation | _Constants | ConstantEmpty | |
| StorageLocationName | _FallbackName | Text | ||
| _Plant | _Plant |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel: {
usageType: {
serviceQuality: #A,
sizeCategory: #L,
dataClass: #CUSTOMIZING },
representativeKey: 'StorageLocation'
}
@Metadata: {
ignorePropagatedAnnotations: true
}
@VDM: {
viewType: #COMPOSITE,
private: true }
define view entity P_ProdCmplncStorLoc
as select from I_StorageLocation
{
/**** Keys ****/
key Plant,
key StorageLocation,
/**** Content ****/
StorageLocationName,
/**** Associations ****/
_Plant
}
where
ConfigDeprecationCode <> 'E'
and StorageLocation <> ''
union
select from I_Plant as _StorageLocationPlant
// This returns the language-dependent text for <ANY> (EHFND_UI_COMN/ANY_MARK)
join I_OTRText as _FallbackName on _FallbackName.OnlnTxtRpstryConceptID = '0894EF4587211EDC9FE9372D9FC3DEB1'
and _FallbackName.OnlnTxtObjectID is initial
and _FallbackName.Language = $session.system_language
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
association [1..1] to P_ChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1
{
/**** Keys ****/
key _StorageLocationPlant.Plant,
key _Constants.ConstantEmpty as StorageLocation,
/**** Content ****/
_FallbackName.Text as StorageLocationName,
/**** Associations ****/
_Plant
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OTRTEXT",
"I_PLANT",
"I_STORAGELOCATION",
"P_CHMLCMPLCONSTANTS"
],
"ASSOCIATED":
[
"I_PLANT"
],
"BASE":
[
"I_STORAGELOCATION"
],
"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