P_MatlStkRepProcUsage

DDL: P_MATLSTKREPPROCUSAGE Type: view_entity COMPOSITE

P_MatlStkRepProcUsage is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MatlStkReportingProcedure) and exposes 4 fields with key field MaterialStockReportProcedUUID.

Data Sources (1)

SourceAliasJoin Type
I_MatlStkReportingProcedure _Procedure 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 (4)

KeyFieldSource TableSource FieldDescription
KEY MaterialStockReportProcedUUID I_MatlStkReportingProcedure MaterialStockReportProcedUUID Stock Reporting Procedure Id
MaterialStockReportProcedName I_MatlStkReportingProcedure MaterialStockReportProcedName Reporting Procedure
UsageInSubs
UsageInLogs

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_MatlStkRepProcUsage.
-- 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_MatlStkRepProcUsage AS
SELECT
  _Procedure.MaterialStockReportProcedUUID AS MaterialStockReportProcedUUID,
  _Procedure.MaterialStockReportProcedName AS MaterialStockReportProcedName,
  case when _UsageInSubs.NumberOfEntries is null then 0 else _UsageInSubs.NumberOfEntries end AS UsageInSubs,
  case when _UsageInLogs.NumberOfEntries is null then 0 else _UsageInLogs.NumberOfEntries end AS UsageInLogs
FROM I_MatlStkReportingProcedure AS _Procedure
;