C_POItemCountForSuplrCube
PO and Item Count for Total Supplier - Cube
C_POItemCountForSuplrCube (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_POItemCountForSuplrCube is a Consumption CDS View (Cube) that provides data about "PO and Item Count for Total Supplier - Cube" in SAP S/4HANA. It reads from 3 data sources (I_PurchaseOrder, I_PurchaseOrderItem, P_TotalNumberOfSuppliers) and exposes 12 fields with key fields Supplier, PurchaseOrder, PurchaseOrderItem. It has 3 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 (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrder | _PurchaseOrder | inner |
| I_PurchaseOrderItem | _PurchaseOrderItem | inner |
| P_TotalNumberOfSuppliers | AvailableSupplier | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPOITMCNTCUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | 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 | |
| EndUserText.label | PO and Item Count for Total Supplier - Cube | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | P_TotalNumberOfSuppliers | Supplier | Account Number of Supplier |
| KEY | PurchaseOrder | I_PurchaseOrder | PurchaseOrder | Purchase Order Number |
| KEY | PurchaseOrderItem | I_PurchaseOrderItem | PurchaseOrderItem | Item Number of Purchase Order |
| SupplierAccountGroup | SupplierAccountGroup | Supplier Account Group | ||
| AuthorizationGroup | AuthorizationGroup | Authorization Group | ||
| Country | Country | Country/Region Key | ||
| Region | Region | Region (State, Province, County) | ||
| NumberOfPurchaseOrders | Number of Purchase Orders | |||
| NumberOfPurchaseOrderItems | Number of Purchase Order Items | |||
| _Supplier | _Supplier | |||
| _Country | _Country | |||
| _SupplierRegion | _SupplierRegion |
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_POItemCountForSuplrCube.
-- 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: CPOITMCNTCUBE
CREATE VIEW C_POItemCountForSuplrCube AS
SELECT
AvailableSupplier.Supplier AS Supplier,
_PurchaseOrder.PurchaseOrder AS PurchaseOrder,
_PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
SupplierAccountGroup,
AuthorizationGroup,
Country,
Region,
cast( 1 as mm_pur_ana_numbrofpurords ) AS NumberOfPurchaseOrders,
cast( 1 as mm_pur_ana_numbrofpurorditms ) AS NumberOfPurchaseOrderItems
FROM P_TotalNumberOfSuppliers AS AvailableSupplier
INNER JOIN I_PurchaseOrder AS _PurchaseOrder ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseOrderItem AS _PurchaseOrderItem ON /* join condition not captured in parsed metadata */
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_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- 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