C_InvtryTurnoverAnalysis
Inventory Turnover Analysis
C_InvtryTurnoverAnalysis is a Consumption CDS View that provides data about "Inventory Turnover Analysis" in SAP S/4HANA. It reads from 1 data source (P_InvtryTurnoverAnlysValues) and exposes 25 fields with key fields Plant, Material. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_InvtryTurnoverAnlysValues | P_InvtryTurnoverAnlysValues | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_StartDate | vdm_v_start_date | |
| P_EndDate | vdm_v_end_date |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_MaterialPlant | _MaterialPlant | $projection.Plant = _MaterialPlant.Plant and $projection.Material = _MaterialPlant.Material |
| [1..1] | C_InvtryTurnoverAnlysDets | _InvtryTurnoverAnlysDets | $projection.Material = _InvtryTurnoverAnlysDets.Material and $projection.Plant = _InvtryTurnoverAnlysDets.Plant |
| [0..1] | I_MatlDocArchivingDate | _MatlDocArchivingDate | $projection.Material = _MatlDocArchivingDate.StockIdentifyingMaterial and $projection.Plant = _MatlDocArchivingDate.Plant |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CINVTRYTOANA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| UI.headerInfo.typeName | Inventory Turnover Analysis | view | |
| UI.headerInfo.typeNamePlural | Inventory Turnover Analysis | view | |
| UI.headerInfo.title.label | Inventory Turnover Analysis | view | |
| UI.headerInfo.title.value | Material | view | |
| UI.headerInfo.description.label | Plant | view | |
| UI.headerInfo.description.value | Plant | view | |
| Consumption.semanticObject | Material | view | |
| EndUserText.label | Inventory Turnover Analysis | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | Plant | Valuation Area | |
| KEY | Material | Material | Vehicle Model | |
| MaterialName | ||||
| MaterialBaseUnit | _Material | MaterialBaseUnit | Valuation Unit | |
| CoeffOfVarcForGoodsIssueInPct | CoeffOfVarianceForGIInPct | |||
| CoeffOfVarcForCnsmpnInPct | CoeffOfVarianceForConsInPct | |||
| Currency | Currency | Valuation Crcy | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AvgMatlStkAmountInCompanyCrcy | AvgMatlStkAmountInCompanyCrcy | |||
| AvgMatlStkQtyInMatlBaseUnit | AvgMatlStkQtyInMatlBaseUnit | |||
| InventoryTurnover | ||||
| AnnualizedInventoryTurnover | ||||
| AverageStockValueCategory | ||||
| AverageStockValueCategoryName | ||||
| MaterialABCClassification | _MaterialPlant | MaterialABCClassification | ABC Indicator | |
| MaterialGroup | _Material | MaterialGroup | Product Group | |
| MaterialType | _Material | MaterialType | Material Type | |
| datsendasLatestMatlDocArchivingDate | ||||
| _BaseUnit | _Material | _BaseUnit | ||
| _MaterialABCClassification | _MaterialPlant | _MaterialABCClassification | ||
| _MaterialGroup | _Material | _MaterialGroup | ||
| _MaterialType | _Material | _MaterialType | ||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _InvtryTurnoverAnlysDets | _InvtryTurnoverAnlysDets |
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_InvtryTurnoverAnalysis.
-- 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.
-- SQL view name: CINVTRYTOANA
-- Parameters: P_Language : sylangu, P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date
CREATE VIEW C_InvtryTurnoverAnalysis AS
SELECT
Plant,
Material,
_Material._Text[1: Language=$parameters.P_Language].MaterialName AS MaterialName,
_Material.MaterialBaseUnit AS MaterialBaseUnit,
CoeffOfVarianceForGIInPct AS CoeffOfVarcForGoodsIssueInPct,
CoeffOfVarianceForConsInPct AS CoeffOfVarcForCnsmpnInPct,
Currency,
CompanyCode,
AvgMatlStkAmountInCompanyCrcy,
AvgMatlStkQtyInMatlBaseUnit,
cast(round(InventoryTurnover, 3) as inventoryturnover) AS InventoryTurnover,
cast(DIVISION(InventoryTurnover * 365 , dats_days_between($parameters.P_StartDate, $parameters.P_EndDate) + 1, 3) as invtrytoann) AS AnnualizedInventoryTurnover,
cast('' as invtryto_val_cat) AS AverageStockValueCategory,
cast('' as invtryto_val_cat_name) AS AverageStockValueCategoryName,
_MaterialPlant.MaterialABCClassification AS MaterialABCClassification,
_Material.MaterialGroup AS MaterialGroup,
_Material.MaterialType AS MaterialType,
case when _MatlDocArchivingDate.LatestMatlDocArchivingDate >= :P_StartDate then _MatlDocArchivingDate.LatestMatlDocArchivingDate else cast('00010101' as abap.dats) end as LatestMatlDocArchivingDate AS datsendasLatestMatlDocArchivingDate,
_Material._BaseUnit AS _BaseUnit,
_MaterialPlant._MaterialABCClassification AS _MaterialABCClassification,
_Material._MaterialGroup AS _MaterialGroup,
_Material._MaterialType AS _MaterialType
FROM P_InvtryTurnoverAnlysValues
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Plant = _MaterialPlant.Plant AND Material = _MaterialPlant.Material -- association [1..1]
LEFT OUTER JOIN C_InvtryTurnoverAnlysDets AS _InvtryTurnoverAnlysDets ON Material = _InvtryTurnoverAnlysDets.Material AND Plant = _InvtryTurnoverAnlysDets.Plant -- association [1..1]
LEFT OUTER JOIN I_MatlDocArchivingDate AS _MatlDocArchivingDate ON Material = _MatlDocArchivingDate.StockIdentifyingMaterial AND Plant = _MatlDocArchivingDate.Plant -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA