C_InvtryTurnoverSupplier
All Supplier for material, plant
C_InvtryTurnoverSupplier is a Consumption CDS View that provides data about "All Supplier for material, plant" in SAP S/4HANA. It reads from 2 data sources (P_InvtryTurnoverSupplierQty, P_SupplierByMaterialPlant) and exposes 18 fields with key fields Plant, Material, MaterialBaseUnit, PurchasingOrganization. It has 6 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_InvtryTurnoverSupplierQty | P_InvtryTurnoverSupplierQty | left_outer |
| P_SupplierByMaterialPlant | rel | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_SupplierCompanyByPlant | _SupplierCompanyByPlant | $projection.Supplier = _SupplierCompanyByPlant.Supplier and $projection.Plant = _SupplierCompanyByPlant.Plant |
| [0..1] | P_InvtryTurnoverSuplrTimeVarc | _InvtryTurnoverSuplrTimeVarc | $projection.Supplier = _InvtryTurnoverSuplrTimeVarc.Supplier and $projection.Material = _InvtryTurnoverSuplrTimeVarc.Material and $projection.Plant = _InvtryTurnoverSuplrTimeVarc.Plant |
| [0..1] | P_InvtryTurnoverSuplrQtyVarc | _InvtryTurnoverSuplrQtyVarc | $projection.Supplier = _InvtryTurnoverSuplrQtyVarc.Supplier and $projection.Material = _InvtryTurnoverSuplrQtyVarc.Material and $projection.Plant = _InvtryTurnoverSuplrQtyVarc.Plant |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.MaterialBaseUnit = _BaseUnit.UnitOfMeasure |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CINVTOSUPLR | 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 | All Supplier for material, plant | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementDateFunctionStartDate | ||||
| SupplierasSupplier | ||||
| KEY | Plant | P_SupplierByMaterialPlant | Plant | Valuation Area |
| KEY | Material | P_SupplierByMaterialPlant | Material | Vehicle Model |
| KEY | MaterialBaseUnit | |||
| KEY | PurchasingOrganization | PurchasingOrganization | Purchasing Organization | |
| WeightedRelevance | ||||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| AuthorizationGroup | _Supplier | AuthorizationGroup | AuthorizGroup | |
| CityName | _Supplier | CityName | Name | |
| CountryName | ||||
| DeliveredQtyInMatlBaseUnit | ||||
| TimeVarianceInPct | ||||
| QuantityVarianceInPct | ||||
| _Supplier | _Supplier | |||
| _Material | _Material | |||
| _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_InvtryTurnoverSupplier.
-- 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: CINVTOSUPLR
-- Parameters: P_StartDate : bedat
CREATE VIEW C_InvtryTurnoverSupplier AS
SELECT
resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
rel.Plant AS Plant,
rel.Material AS Material,
coalesce(_InvtryTurnoverSupplierQty.MaterialBaseUnit, _Material.MaterialBaseUnit) AS MaterialBaseUnit,
PurchasingOrganization,
cast(0 as vdm_weightedrelevance) AS WeightedRelevance,
_Supplier.SupplierName AS SupplierName,
_Supplier.AuthorizationGroup AS AuthorizationGroup,
_Supplier.CityName AS CityName,
cast(_Supplier._StandardAddress._Country._Text[1: Language=$session.system_language].CountryName as odata_mm_country_name preserving type) AS CountryName,
cast(_InvtryTurnoverSupplierQty.MatlWrhsStkQtyInMatlBaseUnit + _InvtryTurnoverSupplierQty.MatlCnsmpnQtyInMatlBaseUnit as menge_d) AS DeliveredQtyInMatlBaseUnit,
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,
cast(DIVISION(ceil( _InvtryTurnoverSuplrQtyVarc( P_StartDate : $parameters.P_StartDate, P_EndDate : $session.system_date ).QuantityVarianceInPct * 1000.0-0.5),1000,3) as invtryto_quantity_variance) AS QuantityVarianceInPct
FROM P_SupplierByMaterialPlant AS rel
LEFT OUTER JOIN P_InvtryTurnoverSupplierQty ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON Supplier = _SupplierCompanyByPlant.Supplier AND Plant = _SupplierCompanyByPlant.Plant -- association [1..1]
LEFT OUTER JOIN P_InvtryTurnoverSuplrTimeVarc AS _InvtryTurnoverSuplrTimeVarc ON Supplier = _InvtryTurnoverSuplrTimeVarc.Supplier AND Material = _InvtryTurnoverSuplrTimeVarc.Material AND Plant = _InvtryTurnoverSuplrTimeVarc.Plant -- association [0..1]
LEFT OUTER JOIN P_InvtryTurnoverSuplrQtyVarc AS _InvtryTurnoverSuplrQtyVarc ON Supplier = _InvtryTurnoverSuplrQtyVarc.Supplier AND Material = _InvtryTurnoverSuplrQtyVarc.Material AND Plant = _InvtryTurnoverSuplrQtyVarc.Plant -- association [0..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