P_MatlStkSubscrpnLogStats

DDL: P_MATLSTKSUBSCRPNLOGSTATS Type: view_entity COMPOSITE

P_MatlStkSubscrpnLogStats is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MatlStkLastRepSubsLog) and exposes 5 fields with key field MaterialStockSubscriptionUUID.

Data Sources (1)

SourceAliasJoin Type
P_MatlStkLastRepSubsLog _SubsLog from

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 (5)

KeyFieldSource TableSource FieldDescription
KEY MaterialStockSubscriptionUUID MaterialStockSubscriptionUUID Collection Subs. Id
MaterialStockSubscriptionItem MaterialStockSubscriptionItem Stock Reporting Subscription Id Item
MatlStkSubscrpnItemIteration
FirstGoodsMovementPostingDate
LastGoodsMovementPostingDate

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_MatlStkSubscrpnLogStats.
-- 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_MatlStkSubscrpnLogStats AS
SELECT
  MaterialStockSubscriptionUUID,
  MaterialStockSubscriptionItem,
  max( MatlStkSubscrpnItemIteration ) AS MatlStkSubscrpnItemIteration,
  min( FirstGoodsMovementPostingDate ) AS FirstGoodsMovementPostingDate,
  max( LastGoodsMovementPostingDate ) AS LastGoodsMovementPostingDate
FROM P_MatlStkLastRepSubsLog AS _SubsLog
;