I_MaterialKPIForCycleCounting
I View Material KPIs fory Cycle Counting
I_MaterialKPIForCycleCounting is a Composite CDS View that provides data about "I View Material KPIs fory Cycle Counting" in SAP S/4HANA. It reads from 3 data sources (I_Productplantstorage, P_MaterialKPIForCycleCounting, P_PlantsWithCycleCountInd) and exposes 22 fields with key fields Plant, Material. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_Productplantstorage | masterData | from |
| P_MaterialKPIForCycleCounting | P_MaterialKPIForCycleCounting | left_outer |
| P_PlantsWithCycleCountInd | plants | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StartDate | nsdm_reference_startdate | |
| P_EndDate | nsdm_reference_enddate | |
| P_InventoryConsumptionGroup | inventory_consumption_group |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CycleCountingSettings | _CycleCounting | _CycleCounting.CycleCountType = $projection.CycleCountType and _CycleCounting.Plant = masterData.Plant |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_PlantCompanyCodeCurrency | _PlantCompanyCodeCurrency | $projection.Plant = _PlantCompanyCodeCurrency.Plant |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMATKPIFORCYC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | I View Material KPIs fory Cycle Counting | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_Productplantstorage | Plant | Valuation Area |
| KEY | Material | Product | Product Sold | |
| PlantName | _Plant | PlantName | Plant Name | |
| MaterialName | ||||
| MaterialGroup | ||||
| MaterialGroupName | ||||
| MaterialType | ||||
| MaterialTypeName | ||||
| NmbrOfPhysInvtryPerFiscalYear | ||||
| PhysInvtryIntvlForCycCounting | _CycleCounting | PhysInvtryIntvlForCycCounting | ||
| PhysInvtryFloatTimeCycCounting | _CycleCounting | PhysInvtryFloatTimeCycCounting | ||
| CycleCountingIndicatorIsFixed | CC ind. fixed | |||
| MaterialBaseUnit | _Product | BaseUnit | Unit of Measure | |
| StockValueInCCCrcyEnd | ||||
| Currency | _PlantCompanyCodeCurrency | Currency | Valuation Crcy | |
| AvgMatlStkQtyInMatlBaseUnit | ||||
| AvgMatlStkAmountInCompanyCrcy | ||||
| CnsmpnQtyInBaseUnitInPeriod | ||||
| CnsmpnAmountInCCCrcyInPeriod | ||||
| InventoryTurnover | ||||
| PInvDiffQtyPerYearInBaseUnit | ||||
| DifferenceAmtPerYrInCoCodeCrcy |
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_MaterialKPIForCycleCounting.
-- 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: IMATKPIFORCYC
-- Parameters: P_StartDate : nsdm_reference_startdate, P_EndDate : nsdm_reference_enddate, P_InventoryConsumptionGroup : inventory_consumption_group
CREATE VIEW I_MaterialKPIForCycleCounting AS
SELECT
masterData.Plant AS Plant,
Product AS Material,
_Plant.PlantName AS PlantName,
_Product._Text[1: Language=$session.system_language].ProductName AS MaterialName,
cast( _Product.ProductGroup as matkl preserving type ) AS MaterialGroup,
cast( _Product._ProductGroupText[1: Language=$session.system_language].MaterialGroupName as nsdm_wgbez preserving type ) AS MaterialGroupName,
cast( _Product.ProductType as mtart preserving type ) AS MaterialType,
cast( _Product._ProductTypeName[1: Language=$session.system_language].MaterialTypeName as nsdm_mtbez preserving type ) AS MaterialTypeName,
cast( _CycleCounting.NmbrOfPhysInvtryPerFiscalYear as nsdm_cyclecountsperyear ) AS NmbrOfPhysInvtryPerFiscalYear,
_CycleCounting.PhysInvtryIntvlForCycCounting AS PhysInvtryIntvlForCycCounting,
_CycleCounting.PhysInvtryFloatTimeCycCounting AS PhysInvtryFloatTimeCycCounting,
cast( CycleCountingIndicatorIsFixed as nsdm_cyclecountingindisfixed ) AS CycleCountingIndicatorIsFixed,
_Product.BaseUnit AS MaterialBaseUnit,
cast( kpi.StockValueInCCCrcyEnd as nsdm_stockvalueonenddate) AS StockValueInCCCrcyEnd,
_PlantCompanyCodeCurrency.Currency AS Currency,
cast(kpi.AvgMatlStkQtyInMatlBaseUnit as nsdm_avgmatlstkqtyinbaseunit) AS AvgMatlStkQtyInMatlBaseUnit,
cast(kpi.AvgMatlStkAmountInCompanyCrcy as nsdm_avgmatlstkamountincccrcy) AS AvgMatlStkAmountInCompanyCrcy,
cast(kpi.CnsmpnQtyInBaseUnitInPeriod as nsdm_cnsmpnqtyinperiodinbuom) AS CnsmpnQtyInBaseUnitInPeriod,
cast(kpi.CnsmpnAmountInCCCrcyInPeriod as nsdm_cnsmpnvalinperiodinccc) AS CnsmpnAmountInCCCrcyInPeriod,
cast(kpi.InventoryTurnover as nsdm_inventoryturnover) AS InventoryTurnover,
cast(kpi.PInvDiffQtyPerYearInBaseUnit as pi_difference_qty_per_year) AS PInvDiffQtyPerYearInBaseUnit,
cast(kpi.DifferenceAmtPerYrInCoCodeCrcy as nsdm_differenceamtperyrinccc) AS DifferenceAmtPerYrInCoCodeCrcy
FROM I_Productplantstorage AS masterData
INNER JOIN P_PlantsWithCycleCountInd AS plants ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_MaterialKPIForCycleCounting ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CycleCountingSettings AS _CycleCounting ON _CycleCounting.CycleCountType = CycleCountType AND _CycleCounting.Plant = masterData.Plant -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_PlantCompanyCodeCurrency AS _PlantCompanyCodeCurrency ON Plant = _PlantCompanyCodeCurrency.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