P_RU_MaterialReceiptDateMM3

DDL: P_RU_MATERIALRECEIPTDATEMM3 SQL: PRUMATRCPTDATE3 Type: view COMPOSITE

P_RU_MaterialReceiptDateMM3 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PurchaseOrderHistory, I_PurchaseOrderHistory) and exposes 7 fields.

Data Sources (2)

SourceAliasJoin Type
I_PurchaseOrderHistory PurchaseOrderHistory from
I_PurchaseOrderHistory PurchaseOrderHistory2 left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PRUMATRCPTDATE3 view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
PurchaseOrder I_PurchaseOrderHistory PurchaseOrder Purchasing Document
PurchaseOrderItem I_PurchaseOrderHistory PurchaseOrderItem Purchasing Document Item
MaterialDocument I_PurchaseOrderHistory MaterialDocument Material Doc.
MaterialDocumentYear I_PurchaseOrderHistory MaterialDocumentYear Material Document Year
MaterialDocumentItem I_PurchaseOrderHistory MaterialDocumentItem Material Document Item
PostingDateelseendasPostingDate
DocumentDateelseendasDocumentDate

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_RU_MaterialReceiptDateMM3.
-- 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: PRUMATRCPTDATE3

CREATE VIEW P_RU_MaterialReceiptDateMM3 AS
SELECT
  PurchaseOrderHistory.PurchaseOrder AS PurchaseOrder,
  PurchaseOrderHistory.PurchaseOrderItem AS PurchaseOrderItem,
  PurchaseOrderHistory.MaterialDocument AS MaterialDocument,
  PurchaseOrderHistory.MaterialDocumentYear AS MaterialDocumentYear,
  PurchaseOrderHistory.MaterialDocumentItem AS MaterialDocumentItem,
  case when PurchaseOrderHistory2.PurchaseOrder is null then PurchaseOrderHistory.PostingDate else '' end as PostingDate AS PostingDateelseendasPostingDate,
  case when PurchaseOrderHistory2.PurchaseOrder is null then PurchaseOrderHistory.DocumentDate else '' end as DocumentDate AS DocumentDateelseendasDocumentDate
FROM I_PurchaseOrderHistory AS PurchaseOrderHistory
LEFT OUTER JOIN I_PurchaseOrderHistory AS PurchaseOrderHistory2 ON /* join condition not captured in parsed metadata */
;