P_SpecAssignedMatlForKeyDate

DDL: P_SPECASSIGNEDMATLFORKEYDATE SQL: PSPECMATASSGMTKD Type: view COMPOSITE

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)

SourceAliasJoin Type
I_SpecAssignedMatlForKeyDate I_SpecAssignedMatlForKeyDate left_outer
I_Product Product from
I_MaterialPlant ProductPlant left_outer

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY Product I_Product Product Product Sold
ProductName
Plant I_MaterialPlant Plant Valuation Area
Specification
SpecificationAuthznGroup
SpecificationType

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_SpecAssignedMatlForKeyDate.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PSPECMATASSGMTKD

CREATE VIEW P_SpecAssignedMatlForKeyDate AS
SELECT
  Product.Product AS Product,
  Product._Text[1: Language = $session.system_language ].ProductName AS ProductName,
  ProductPlant.Plant AS Plant,
  SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).Specification AS Specification,
  SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).SpecificationAuthznGroup AS SpecificationAuthznGroup,
  SpecAssignedMaterial._SpecificationForKeyDate( P_KeyDate : $session.system_date).SpecificationType AS SpecificationType
FROM I_Product AS Product
LEFT OUTER JOIN I_MaterialPlant AS ProductPlant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SpecAssignedMatlForKeyDate ON /* join condition not captured in parsed metadata */
;