C_InvtryTurnoverAnlysDets

DDL: C_INVTRYTURNOVERANLYSDETS SQL: CINVTOANLYSDETS Type: view CONSUMPTION

Inventory Turnover Analysis Details

C_InvtryTurnoverAnlysDets is a Consumption CDS View that provides data about "Inventory Turnover Analysis Details" in SAP S/4HANA. It reads from 1 data source (I_MaterialPlant) and exposes 15 fields with key field Plant. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialPlant _MaterialPlant from

Parameters (1)

NameTypeDefault
P_StartDate bedat

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_ProductPlant _ProductPlant $projection.Plant = _ProductPlant.Plant and $projection.Material = _ProductPlant.Product
[0..1] C_InvtryTurnoverPrfrdSupplier _InvtryTurnoverPrfrdSupplier $projection.Plant = _InvtryTurnoverPrfrdSupplier.Plant and $projection.Material = _InvtryTurnoverPrfrdSupplier.Material
[0..*] C_InvtryTurnoverSupplier _InvtryTurnoverSupplier $projection.Plant = _InvtryTurnoverSupplier.Plant and $projection.Material = _InvtryTurnoverSupplier.Material
[0..1] I_UnitOfMeasure _BaseUnit $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure

Annotations (20)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CINVTOANLYSDETS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED 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 Details view
VDM.private false view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view

Fields (15)

KeyFieldSource TableSource FieldDescription
resultElementDateFunctionStartDate
Material
KEY Plant I_MaterialPlant Plant Valuation Area
MaterialName
PlantName I_Plant PlantName Plant Name
MaterialBaseUnit
Currency I_CompanyCode Currency Valuation Crcy
CompanyCode I_CompanyCode CompanyCode Receiver Company Code
MaterialSafetyStockQty I_MaterialPlant MaterialSafetyStockQty Safety Stock
MinimumLotSizeQuantity _ProductPlant MinimumLotSizeQuantity Min. Lot Size
MaximumLotSizeQuantity _ProductPlant MaximumLotSizeQuantity Max. Lot Size
FixedLotSizeQuantity _ProductPlant FixedLotSizeQuantity Fixed lot size
_InvtryTurnoverPrfrdSupplier _InvtryTurnoverPrfrdSupplier
_InvtryTurnoverSupplier _InvtryTurnoverSupplier
_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_InvtryTurnoverAnlysDets.
-- 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: CINVTOANLYSDETS
-- Parameters: P_StartDate : bedat

CREATE VIEW C_InvtryTurnoverAnlysDets AS
SELECT
  resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
  binding: [ { targetParameter: 'P_DateFunction', type: #CONSTANT, value : 'PREVIOUS365DAYS' AS Material,
  _MaterialPlant.Plant AS Plant,
  _MaterialPlant._Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  I_Plant.PlantName AS PlantName,
  _MaterialPlant._Material.MaterialBaseUnit AS MaterialBaseUnit,
  I_CompanyCode.Currency AS Currency,
  I_CompanyCode.CompanyCode AS CompanyCode,
  _MaterialPlant.MaterialSafetyStockQty AS MaterialSafetyStockQty,
  _ProductPlant.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
  _ProductPlant.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
  _ProductPlant.FixedLotSizeQuantity AS FixedLotSizeQuantity
FROM I_MaterialPlant AS _MaterialPlant
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Plant = _ProductPlant.Plant AND Material = _ProductPlant.Product  -- association [0..1]
LEFT OUTER JOIN C_InvtryTurnoverPrfrdSupplier AS _InvtryTurnoverPrfrdSupplier ON Plant = _InvtryTurnoverPrfrdSupplier.Plant AND Material = _InvtryTurnoverPrfrdSupplier.Material  -- association [0..1]
LEFT OUTER JOIN C_InvtryTurnoverSupplier AS _InvtryTurnoverSupplier ON Plant = _InvtryTurnoverSupplier.Plant AND Material = _InvtryTurnoverSupplier.Material  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON MaterialBaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
;