P_MatlStkReportLastExecDate

DDL: P_MATLSTKREPORTLASTEXECDATE Type: view_entity COMPOSITE Package: ODATA_MM_IM_STOCKOUTPUT

Material Stock Subscription Log

P_MatlStkReportLastExecDate is a Composite CDS View that provides data about "Material Stock Subscription Log" in SAP S/4HANA. It reads from 1 data source (I_MatlStkReportSubscriptionLog) and exposes 2 fields. It has 1 association to related views. Part of development package ODATA_MM_IM_STOCKOUTPUT.

Data Sources (1)

SourceAliasJoin Type
I_MatlStkReportSubscriptionLog _SubsLog from

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_MatlStkReportRunLog _RunLog _SubsLog.MaterialStockReportRunUUID = _RunLog.MaterialStockReportRunUUID

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
CreationDateTime
MaterialStockReportUUID MaterialStockReportUUID Stock Report ID

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_MatlStkReportLastExecDate.
-- 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.

CREATE VIEW P_MatlStkReportLastExecDate AS
SELECT
  max( _RunLog.CreationDateTime ) AS CreationDateTime,
  MaterialStockReportUUID
FROM I_MatlStkReportSubscriptionLog AS _SubsLog
LEFT OUTER JOIN I_MatlStkReportRunLog AS _RunLog ON _SubsLog.MaterialStockReportRunUUID = _RunLog.MaterialStockReportRunUUID  -- association [1..*]
;