P_MaterialStockTimeSeriesICG

DDL: P_MATERIALSTOCKTIMESERIESICG Type: view_entity COMPOSITE Package: ODATA_MM_IM_KPITIMESERIES

Determine material stock for the periods of period type

P_MaterialStockTimeSeriesICG is a Composite CDS View that provides data about "Determine material stock for the periods of period type" in SAP S/4HANA. It reads from 1 data source (P_MaterialStockTimeSeries1ICG) and exposes 23 fields with key fields PeriodType, StartDate, EndDate, YearPeriod, Material. Part of development package ODATA_MM_IM_KPITIMESERIES.

Data Sources (1)

SourceAliasJoin Type
P_MaterialStockTimeSeries1ICG P_MaterialStockTimeSeries1ICG from

Parameters (4)

NameTypeDefault
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date
P_PeriodType nsdm_period_type
P_InventoryConsumptionGroup inventory_consumption_group

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PeriodType PeriodType PeriodIndicator
KEY StartDate StartDate Valid From
KEY EndDate EndDate Term to
KEY YearPeriod YearPeriod Fiscal Year Period
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY Batch Batch Lot No.
KEY Supplier Supplier Supplier
KEY SDDocument SDDocument SD Document
KEY SDDocumentItem SDDocumentItem
KEY WBSElementInternalID WBSElementInternalID WBS Internal ID
KEY Customer Customer Sold-to Party
KEY InventoryStockType InventoryStockType Stock Type
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYearVariant FiscalYearVariant FY Variant
KEY Currency Currency Valuation Crcy
KEY CostEstimate CostEstimate Cost EstimateNo
MatlWrhsStkQtyInMatlBaseUnit
MatlCnsmpnQtyInMatlBaseUnit
MatlStkQtySumInPeriod

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_MaterialStockTimeSeriesICG.
-- 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.
-- Parameters: P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date, P_PeriodType : nsdm_period_type, P_InventoryConsumptionGroup : inventory_consumption_group

CREATE VIEW P_MaterialStockTimeSeriesICG AS
SELECT
  PeriodType,
  StartDate,
  EndDate,
  YearPeriod,
  Material,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  SDDocument,
  SDDocumentItem,
  WBSElementInternalID,
  Customer,
  InventoryStockType,
  InventorySpecialStockType,
  MaterialBaseUnit,
  CompanyCode,
  FiscalYearVariant,
  Currency,
  CostEstimate,
  cast(sum(MatlWrhsStkQtyInMatlBaseUnit) as nsdm_stock_qty preserving type) AS MatlWrhsStkQtyInMatlBaseUnit,
  cast(sum(MatlCnsmpnQtyInMatlBaseUnit) as nsdm_stock_qty preserving type) AS MatlCnsmpnQtyInMatlBaseUnit,
  sum(MatlStkQtySumInPeriod) AS MatlStkQtySumInPeriod
FROM P_MaterialStockTimeSeries1ICG
;