P_SpecAssignedMatlForKeyDate
P_SpecAssignedMatlForKeyDate is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_SpecAssignedMatlForKeyDate, I_Product, I_MaterialPlant) and exposes 6 fields with key field Product.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_SpecAssignedMatlForKeyDate | I_SpecAssignedMatlForKeyDate | left_outer |
| I_Product | Product | from |
| I_MaterialPlant | ProductPlant | left_outer |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSPECMATASSGMTKD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_Product | Product | |
| ProductName | ||||
| Plant | I_MaterialPlant | Plant | ||
| Specification | ||||
| SpecificationAuthznGroup | ||||
| SpecificationType |
@AbapCatalog.sqlViewName: 'PSPECMATASSGMTKD'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Search.searchable: true
@VDM.lifecycle.contract.type: #NONE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SpecAssignedMatlForKeyDate
as select from I_Product as Product
left outer join I_MaterialPlant as ProductPlant on Product.Product = ProductPlant.Material
left outer join I_SpecAssignedMatlForKeyDate( P_KeyDate:$session.system_date) as SpecAssignedMaterial on Product.Product = SpecAssignedMaterial.Material
// and SpecAssignedMaterial.Plant = ProductPlant.Plant
{
key Product.Product,
Product._Text[1: Language = $session.system_language ].ProductName,
ProductPlant.Plant,
SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).Specification,
// Fields for Authorization
SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).SpecificationAuthznGroup,
SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).SpecificationType
}
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