C_InvtryTurnoverPrfrdSupplier
Inventory Turnover Preferred Supplier
C_InvtryTurnoverPrfrdSupplier is a Consumption CDS View that provides data about "Inventory Turnover Preferred Supplier" in SAP S/4HANA. It reads from 1 data source (P_InvtryTurnoverPrfrdSupplier) and exposes 14 fields with key field Plant. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_InvtryTurnoverPrfrdSupplier | P_InvtryTurnoverPrfrdSupplier | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialPlant | _MaterialPlant | $projection.Plant = _MaterialPlant.Plant and $projection.Material = _MaterialPlant.Material |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_SupplierCompanyByPlant | _SupplierCompanyByPlant | $projection.Supplier = _SupplierCompanyByPlant.Supplier and $projection.Plant = _SupplierCompanyByPlant.Plant |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CINVTOPRFSUPLR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Inventory Turnover Preferred Supplier | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementDateFunctionStartDate | ||||
| UnitOfMeasurekeyMaterial | ||||
| KEY | Plant | Plant | Valuation Area | |
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| AuthorizationGroup | _Supplier | AuthorizationGroup | AuthorizGroup | |
| CityName | ||||
| CountryName | ||||
| TimeVarianceInPct | ||||
| MaterialBaseUnit | ||||
| _Supplier | _Supplier | |||
| _BaseUnit | _BaseUnit | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant |
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_InvtryTurnoverPrfrdSupplier.
-- 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: CINVTOPRFSUPLR
-- Parameters: P_StartDate : bedat
CREATE VIEW C_InvtryTurnoverPrfrdSupplier AS
SELECT
resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
binding: [ { targetParameter: 'P_DateFunction', type: #CONSTANT, value : 'PREVIOUS365DAYS' AS UnitOfMeasurekeyMaterial,
Plant,
Supplier,
PurchasingOrganization,
_Supplier.SupplierName AS SupplierName,
_Supplier.AuthorizationGroup AS AuthorizationGroup,
_Supplier._StandardAddress.CityName AS CityName,
_Supplier._StandardAddress._Country._Text[1: Language=$session.system_language].CountryName AS CountryName,
cast(DIVISION(ceil(_InvtryTurnoverSuplrTimeVarc( P_StartDate : $parameters.P_StartDate, P_EndDate : $session.system_date ).TimeVarianceInPct * 1000.0-0.5),1000,3) as invtryto_time_variance) AS TimeVarianceInPct,
_MaterialPlant._Material.MaterialBaseUnit AS MaterialBaseUnit
FROM P_InvtryTurnoverPrfrdSupplier
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Plant = _MaterialPlant.Plant AND Material = _MaterialPlant.Material -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON Supplier = _SupplierCompanyByPlant.Supplier AND Plant = _SupplierCompanyByPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON MaterialBaseUnit = _BaseUnit.UnitOfMeasure -- 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