I_StockQuantityValueTimeSeries

DDL: I_STOCKQUANTITYVALUETIMESERIES Type: view COMPOSITE

Stock Quantity and Value time series

I_StockQuantityValueTimeSeries is a Composite CDS View (Cube) that provides data about "Stock Quantity and Value time series" in SAP S/4HANA. It reads from 1 data source (P_StockQuantityValueTS1) and exposes 21 fields with key fields YearPeriod, Product, Plant, StorageLocation, Batch. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_StockQuantityValueTS1 P_StockQuantityValueTS1 from

Parameters (4)

NameTypeDefault
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date
P_PeriodType nsdm_period_type
P_DisplayCurrency nsdm_display_currency

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_InventoryStockType _InventoryStockType $projection.InventoryStockType = _InventoryStockType.InventoryStockType
[1..1] I_InventorySpecialStockType _InventorySpecialStockType $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.MaterialBaseUnit = _UnitOfMeasure.UnitOfMeasure
[1..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_CalendarMonthName _CalendarMonth $projection.CalendarMonth = _CalendarMonth.CalendarMonth
[0..1] I_CalendarQuarterText _CalendarQuarter $projection.CalendarQuarter = _CalendarQuarter.CalendarQuarter and _CalendarQuarter.Language = $session.system_language

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName ISTOCKQUANVALTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Stock Quantity and Value time series view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
VDM.private false view
Analytics.dataCategory #CUBE view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

Fields (21)

KeyFieldSource TableSource FieldDescription
defaultValueEUR
system_languagekeyEndDate
KEY YearPeriod YearPeriod Fiscal Year Period
KEY Product 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 Currency Currency Valuation Crcy
KEY ValuationAreaType ValuationAreaType Valuation area
DisplayCurrency
CompanyCode CompanyCode Receiver Company Code
MatlWrhsStkQtyInMatlBaseUnit MatlWrhsStkQtyInMatlBaseUnit Quantity
StockValueInCCCrcy StockValueInCCCrcy Total Value

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 I_StockQuantityValueTimeSeries.
-- 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_DisplayCurrency : nsdm_display_currency

CREATE VIEW I_StockQuantityValueTimeSeries AS
SELECT
  defaultValue: 'EUR' AS defaultValueEUR,
  YearPeriod,
  Material AS Product,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  SDDocument,
  SDDocumentItem,
  WBSElementInternalID,
  Customer,
  InventoryStockType,
  InventorySpecialStockType,
  MaterialBaseUnit,
  Currency,
  ValuationAreaType,
  cast(:P_DisplayCurrency as nsdm_display_currency preserving type ) AS DisplayCurrency,
  CompanyCode,
  MatlWrhsStkQtyInMatlBaseUnit,
  StockValueInCCCrcy
FROM P_StockQuantityValueTS1
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_InventoryStockType AS _InventoryStockType ON InventoryStockType = _InventoryStockType.InventoryStockType  -- association [1..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON MaterialBaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_CalendarMonthName AS _CalendarMonth ON CalendarMonth = _CalendarMonth.CalendarMonth  -- association [0..1]
LEFT OUTER JOIN I_CalendarQuarterText AS _CalendarQuarter ON CalendarQuarter = _CalendarQuarter.CalendarQuarter AND _CalendarQuarter.Language = $session.system_language  -- association [0..1]
;