C_SuplrEvalByQuantityCube
Supplier Evaluation by Quantity Cube
C_SuplrEvalByQuantityCube (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
C_SuplrEvalByQuantityCube is a Consumption CDS View (Cube) that provides data about "Supplier Evaluation by Quantity Cube" in SAP S/4HANA. It reads from 1 data source (P_SupplierEvalByQuantity) and exposes 45 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 15 associations to related views. Part of development package ODATA_MM_ANALYTICS.
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-ANA-2CL |
| Capabilities | Data Provider for Analytical Queries |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sourcing and Procurement for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SupplierEvalByQuantity | P_SupplierEvalByQuantity | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_StartDate | vdm_validitystart | |
| P_EndDate | vdm_validityend |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_QuantityVarianceUpdatedScore | _UpdatedScore | QuantityVariance.PurchaseOrder = _UpdatedScore.PurchaseOrder and QuantityVariance.PurchaseOrderItem = _UpdatedScore.PurchaseOrderItem |
| [1..1] | I_CalendarDate | _Calendar | PurchaseOrderDate = _Calendar.CalendarDate |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | I_ProductGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | I_Product | _Material | $projection.Material = _Material.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_PurchasingCategoryValueHelp | _PurchasingCategory | $projection.PurchasingCategory = _PurchasingCategory.PurchasingCategory |
| [1..1] | I_Country | _Country | $projection.country = _Country.Country |
| [0..1] | I_Region | _SupplierRegion | $projection.region = _SupplierRegion.Region and $projection.country = _SupplierRegion.Country |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [1..1] | I_SuplrEvalDocCatConfign | _DocConfigCategory | $projection.SuplrEvalRelevantDocCategory = _DocConfigCategory.SuplrEvalRelevantDocCategory |
| [1..1] | I_SuplrEvalDelivCmpltdConfign | _DelivCmpltdConfign | $projection.SuplrEvalCritraDelivCompleted = _DelivCmpltdConfign.SuplrEvalCritraDelivCompleted |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMMQUANTVARCUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Supplier Evaluation by Quantity Cube | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | Purchase Order Number | ||
| KEY | PurchaseOrderItem | Item Number of Purchase Order | ||
| SuplrEvalCritraDelivCompleted | SuplrEvalCritraDelivCompleted | Delivery Completed | ||
| PurgDocMigrtnIsCmpltdForAnlyts | PurgDocMigrtnIsCmpltdForAnlyts | Single-Character Flag | ||
| SuplrEvalRelevantDocCategory | SuplrEvalRelevantDocCategory | Supplier Evaluation Configuration for Document Category type | ||
| PurOrdItmFirstGRPostingDate | PurOrdItmFirstGRPostingDate | First Goods Receipt Date | ||
| PurOrdItmFinalGRPostingDate | PurOrdItmFinalGRPostingDate | Final Goods Receipt Date | ||
| CalendarYear | _Calendar | CalendarYear | Calendar Year | |
| CalendarQuarter | _Calendar | CalendarQuarter | Calendar Quarter | |
| CalendarMonth | _Calendar | CalendarMonth | Calendar Month | |
| CalendarWeek | _Calendar | CalendarWeek | Calendar Week | |
| PurchasingOrganization | QuantityVariance | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Supplier | Supplier | Supplier | ||
| Country | _Supplier | Country | Country/Region Key | |
| Region | _Supplier | Region | Region (State, Province, County) | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Purchasing Document Category | ||
| Material | Material | Material Number | ||
| MaterialGroup | QuantityVariance | MaterialGroup | Material Group | |
| Plant | Plant | Valuation Area | ||
| PurchasingCategory | PurchasingCategory | Purchasing Category ID | ||
| PurgCatName | PurgCatName | Name of Purchasing Category | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Purchase Order Unit of Measure | ||
| DisplayCurrency | Display Currency | |||
| OrderedQuantity | Ordered Quantity | |||
| GoodsReceiptQty | DeliveredQuantity | Goods Receipt Quantity | ||
| QuantityVarianceInOrdUnit | Quantity Variance in Order Unit | |||
| QuantityVarianceInDspCrcy | Quantity Variance in Display Currency | |||
| QuantityVarianceInPctValue | Percentage Variance | |||
| NumberOfPurchaseOrders | Number of Purchase Orders | |||
| NumberOfPurchaseOrderItems | Number of Purchase Order Items | |||
| _Supplier | _Supplier | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _MaterialGroup | _MaterialGroup | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _PurchasingCategory | _PurchasingCategory | |||
| _Country | _Country | |||
| _SupplierRegion | _SupplierRegion | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _DocConfigCategory | _DocConfigCategory | |||
| _DelivCmpltdConfign | _DelivCmpltdConfign |
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_SuplrEvalByQuantityCube.
-- 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: CMMQUANTVARCUBE
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend
CREATE VIEW C_SuplrEvalByQuantityCube AS
SELECT
cast( QuantityVariance.PurchaseOrder as vdm_purchaseorder ) AS PurchaseOrder,
cast( QuantityVariance.PurchaseOrderItem as vdm_purchaseorderitem) AS PurchaseOrderItem,
SuplrEvalCritraDelivCompleted,
PurgDocMigrtnIsCmpltdForAnlyts,
SuplrEvalRelevantDocCategory,
PurOrdItmFirstGRPostingDate,
PurOrdItmFinalGRPostingDate,
_Calendar.CalendarYear AS CalendarYear,
_Calendar.CalendarQuarter AS CalendarQuarter,
_Calendar.CalendarMonth AS CalendarMonth,
_Calendar.CalendarWeek AS CalendarWeek,
QuantityVariance.PurchasingOrganization AS PurchasingOrganization,
PurchasingGroup,
Supplier,
_Supplier.Country AS Country,
_Supplier.Region AS Region,
CompanyCode,
PurchasingDocumentCategory,
Material,
QuantityVariance.MaterialGroup AS MaterialGroup,
Plant,
PurchasingCategory,
PurgCatName,
PurchaseOrderQuantityUnit,
cast( DisplayCurrency as displaycurrency ) AS DisplayCurrency,
cast( OrderedQuantity as mm_a_ordered_quantity ) AS OrderedQuantity,
DeliveredQuantity AS GoodsReceiptQty,
cast ( QuantityVarianceInOrdUnit as mm_a_quantity_variance ) AS QuantityVarianceInOrdUnit,
cast( QuantityVarianceInDspCrcy as mm_a_quantity_var_amount ) AS QuantityVarianceInDspCrcy,
cast ( QuantityVarianceInPct as mmpur_ana_de_quantityvar_pct ) AS QuantityVarianceInPctValue,
cast( 1 as mm_pur_ana_numbrofpurords ) AS NumberOfPurchaseOrders,
cast( 1 as mm_pur_ana_numbrofpurorditms ) AS NumberOfPurchaseOrderItems
FROM P_SupplierEvalByQuantity
LEFT OUTER JOIN P_QuantityVarianceUpdatedScore AS _UpdatedScore ON QuantityVariance.PurchaseOrder = _UpdatedScore.PurchaseOrder AND QuantityVariance.PurchaseOrderItem = _UpdatedScore.PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN I_CalendarDate AS _Calendar ON PurchaseOrderDate = _Calendar.CalendarDate -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_ProductGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [1..1]
LEFT OUTER JOIN I_Product AS _Material ON Material = _Material.Product -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_PurchasingCategoryValueHelp AS _PurchasingCategory ON PurchasingCategory = _PurchasingCategory.PurchasingCategory -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON country = _Country.Country -- association [1..1]
LEFT OUTER JOIN I_Region AS _SupplierRegion ON region = _SupplierRegion.Region AND country = _SupplierRegion.Country -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory -- association [1..1]
LEFT OUTER JOIN I_SuplrEvalDocCatConfign AS _DocConfigCategory ON SuplrEvalRelevantDocCategory = _DocConfigCategory.SuplrEvalRelevantDocCategory -- association [1..1]
LEFT OUTER JOIN I_SuplrEvalDelivCmpltdConfign AS _DelivCmpltdConfign ON SuplrEvalCritraDelivCompleted = _DelivCmpltdConfign.SuplrEvalCritraDelivCompleted -- association [1..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