P_RU_MaterialReceiptDateMM4

DDL: P_RU_MATERIALRECEIPTDATEMM4 SQL: PRUMATRCPTDATE4 Type: view COMPOSITE

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

Data Sources (2)

SourceAliasJoin Type
P_RU_MaterialReceiptDateMM5 MaterialReceiptDateMM5 left_outer
I_PurchaseOrderHistory PurchaseOrderHistory left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PRUMATRCPTDATE4 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 (6)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
AccountingDocument AccountingDocument Journal Entry
FiscalYear FiscalYear G/L Fiscal Year
ExternalInvoice ExternalInvoice External Number
InvoiceDate InvoiceDate Run On
MigoDate

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_MaterialReceiptDateMM4.
-- 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: PRUMATRCPTDATE4

CREATE VIEW P_RU_MaterialReceiptDateMM4 AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  ExternalInvoice,
  InvoiceDate,
  cast(coalesce(PurchaseOrderHistory.PostingDate, MaterialReceiptDateMM5.PostingDate) as budat) AS MigoDate
LEFT OUTER JOIN I_PurchaseOrderHistory AS PurchaseOrderHistory ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_RU_MaterialReceiptDateMM5 AS MaterialReceiptDateMM5 ON /* join condition not captured in parsed metadata */
;