C_InvtryTurnoverTimeSers

DDL: C_INVTRYTURNOVERTIMESERS Type: view_entity CONSUMPTION Package: ODATA_MM_IM_INV_TURNOVR_ANLYS

Inventory Turnover Time Series

C_InvtryTurnoverTimeSers is a Consumption CDS View that provides data about "Inventory Turnover Time Series" in SAP S/4HANA. It reads from 1 data source (P_InvtryTurnoverTmeSersAggrgnC) and exposes 14 fields with key fields StartDate, EndDate, Material, Plant. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F1956). Part of development package ODATA_MM_IM_INV_TURNOVR_ANLYS.

Data Sources (1)

SourceAliasJoin Type
P_InvtryTurnoverTmeSersAggrgnC P_InvtryTurnoverTmeSersAggrgnC from

Parameters (3)

NameTypeDefault
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date
P_PeriodType char_01

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_MatlDocArchivingDate _MatlDocArchivingDate $projection.Material = _MatlDocArchivingDate.StockIdentifyingMaterial and $projection.Plant = _MatlDocArchivingDate.Plant
[0..1] I_UnitOfMeasure _BaseUnit $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inventory Turnover Time Series view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private false view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F1956 ASQL_F1956 C2 NOT_RELEASED

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY StartDate series StartDate Valid From
KEY EndDate series EndDate Term to
KEY Material series Material Vehicle Model
KEY Plant series Plant Valuation Area
MaterialBaseUnit series MaterialBaseUnit Valuation Unit
datsendasLatestMatlDocArchivingDate
MatlWrhsStkQtyInMatlBaseUnit Quantity
MatlCnsmpnQtyInMatlBaseUnit
MatlStkDecrQtyInMatlBaseUnit
MatlStkIncrQtyInMatlBaseUnit
Currency Currency Valuation Crcy
MatlStkAmountInCompanyCrcy MatlStkAmountInCompanyCrcy
CompanyCode CompanyCode Receiver Company Code
_BaseUnit _BaseUnit

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 C_InvtryTurnoverTimeSers.
-- 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 : char_01

CREATE VIEW C_InvtryTurnoverTimeSers AS
SELECT
  series.StartDate AS StartDate,
  series.EndDate AS EndDate,
  series.Material AS Material,
  series.Plant AS Plant,
  series.MaterialBaseUnit AS MaterialBaseUnit,
  case when _MatlDocArchivingDate.LatestMatlDocArchivingDate >= $parameters.P_StartDate then _MatlDocArchivingDate.LatestMatlDocArchivingDate else cast('00010101' as abap.dats) end as LatestMatlDocArchivingDate AS datsendasLatestMatlDocArchivingDate,
  cast( MatlWrhsStkQtyInMatlBaseUnit as invtryto_mat_stk_qty) AS MatlWrhsStkQtyInMatlBaseUnit,
  cast (MatlCnsmpnQtyInMatlBaseUnit as invtryto_mat_cons_qty) AS MatlCnsmpnQtyInMatlBaseUnit,
  cast(MatlStkDecrQtyInMatlBaseUnit as invtryto_stk_decr) AS MatlStkDecrQtyInMatlBaseUnit,
  cast(MatlStkIncrQtyInMatlBaseUnit as invtryto_stk_incr) AS MatlStkIncrQtyInMatlBaseUnit,
  Currency,
  MatlStkAmountInCompanyCrcy,
  CompanyCode
FROM P_InvtryTurnoverTmeSersAggrgnC
LEFT OUTER JOIN I_MatlDocArchivingDate AS _MatlDocArchivingDate ON Material = _MatlDocArchivingDate.StockIdentifyingMaterial AND Plant = _MatlDocArchivingDate.Plant  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON MaterialBaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
;