P_SubstanceAssgdCmpstn
P_SubstanceAssgdCmpstn is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_ChmlComposition, I_ChmlCompositionDraft) and exposes 8 fields with key fields SubstanceUUID, PolymerCompositionIntID, ProdCmplncLegalArea, PolymerCompositionIntID, ProdCmplncLegalArea.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlComposition | I_ChmlComposition | from |
| I_ChmlCompositionDraft | I_ChmlCompositionDraft | union |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSUBCMPSTN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubstanceUUID | SubstanceUUID | ||
| KEY | PolymerCompositionIntID | PolymerCompositionIntID | ||
| KEY | ProdCmplncLegalArea | ProdCmplncLegalArea | ||
| PolymerCompositionName | PolymerCompositionName | |||
| KEY | PolymerCompositionIntID | PolymerCompositionIntID | ||
| KEY | ProdCmplncLegalArea | ProdCmplncLegalArea | ||
| PolymerCompositionName | PolymerCompositionName | |||
| ResponsibleUnit | _Substance | ResponsibleUnit |
@AbapCatalog:
{
-- SQL view name (16 characters)
sqlViewName: 'PSUBCMPSTN',
--If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
compiler.compareFilter: true,
preserveKey: true
}
--Access Control: Authorizations Checks
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view P_SubstanceAssgdCmpstn
as select from I_ChmlComposition
{
key SubstanceUUID as SubstanceUUID,
key PolymerCompositionIntID as PolymerCompositionIntID,
key ProdCmplncLegalArea as ProdCmplncLegalArea,
PolymerCompositionName as PolymerCompositionName,
_Substance.ResponsibleUnit as ResponsibleUnit
}
where
ChmlCompositionType = 'POLYMER'
and(
ChmlCompositionStatus = 'IP'
or ChmlCompositionStatus = 'RE'
)
group by
SubstanceUUID,
PolymerCompositionIntID,
ProdCmplncLegalArea,
PolymerCompositionName,
_Substance.ResponsibleUnit
union select from I_ChmlCompositionDraft
{
key SubstanceUUID as SubstanceUUID,
key PolymerCompositionIntID as PolymerCompositionIntID,
key ProdCmplncLegalArea as ProdCmplncLegalArea,
PolymerCompositionName as PolymerCompositionName,
_Substance.ResponsibleUnit as ResponsibleUnit
}
where
ChmlCompositionType = 'POLYMER'
and(
ChmlCompositionStatus = 'IP'
or ChmlCompositionStatus = 'RE'
)
group by
SubstanceUUID,
PolymerCompositionIntID,
ProdCmplncLegalArea,
PolymerCompositionName,
_Substance.ResponsibleUnit
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCOMPOSITION",
"I_CHMLCOMPOSITIONDRAFT",
"I_SUBSTANCE"
],
"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