P_SubstanceLstdSubstUnion
Substance with its (Sub-)Root LiSus
P_SubstanceLstdSubstUnion is a Consumption CDS View that provides data about "Substance with its (Sub-)Root LiSus" in SAP S/4HANA. It reads from 2 data sources (I_Substance, I_SubstanceVarAssgmt) and exposes 5 fields with key fields SubstanceUUID, ListedSubstanceUUID, ListedSubstanceUUID. It has 2 associations to related views. Part of development package EHFND_CNS_SUBSTANCE.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Substance | Substance | from |
| I_SubstanceVarAssgmt | SubstanceVar | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ListedSubstance | _RootListedSubstance | _RootListedSubstance.ListedSubstanceUUID = Substance.ListedSubstanceUUID |
| [1..1] | I_ListedSubstanceVariant | _ListedSubstanceVariant | _ListedSubstanceVariant.ListedSubstanceVariantUUID = SubstanceVar.ListedSubstanceVariantUUID |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Substance with its (Sub-)Root LiSus | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubstanceUUID | I_Substance | SubstanceUUID | |
| KEY | ListedSubstanceUUID | I_Substance | ListedSubstanceUUID | |
| SubstanceUUIDasSubstanceUUID | ||||
| KEY | ListedSubstanceUUID | I_SubstanceVarAssgmt | ListedSubstanceVariantUUID | |
| ListedSubstance | _ListedSubstanceVariant | ListedSubstanceVariant |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Substance with its (Sub-)Root LiSus'
@Metadata.ignorePropagatedAnnotations: true
@VDM.private:true
@VDM.viewType: #CONSUMPTION
define view entity P_SubstanceLstdSubstUnion
as select from I_Substance as Substance
association [1..1] to I_ListedSubstance as _RootListedSubstance on _RootListedSubstance.ListedSubstanceUUID = Substance.ListedSubstanceUUID
{
key Substance.SubstanceUUID as SubstanceUUID,
key Substance.ListedSubstanceUUID as ListedSubstanceUUID,
_RootListedSubstance.ListedSubstance as ListedSubstance
}
union all
// select group assignment records which were added by the customer
select from I_SubstanceVarAssgmt as SubstanceVar
association [1..1] to I_ListedSubstanceVariant as _ListedSubstanceVariant on _ListedSubstanceVariant.ListedSubstanceVariantUUID = SubstanceVar.ListedSubstanceVariantUUID
{
key SubstanceVar.SubstanceUUID as SubstanceUUID,
key SubstanceVar.ListedSubstanceVariantUUID as ListedSubstanceUUID,
_ListedSubstanceVariant.ListedSubstanceVariant as ListedSubstance
}
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