C_POItemCountForSuplrCube

DDL: C_POITEMCOUNTFORSUPLRCUBE SQL: CPOITMCNTCUBE Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

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

CategoryConsumption
StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-ANA-2CL
CapabilitiesData Provider for Analytical Queries
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSourcing and Procurement for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (3)

SourceAliasJoin Type
I_PurchaseOrder _PurchaseOrder inner
I_PurchaseOrderItem _PurchaseOrderItem inner
P_TotalNumberOfSuppliers AvailableSupplier from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;