C_NonMngdPurchasingSpend3
Non Managed Purchasing Spend Cube
C_NonMngdPurchasingSpend3 is a Consumption CDS View (Cube) that provides data about "Non Managed Purchasing Spend Cube" in SAP S/4HANA. It reads from 3 data sources (I_CalendarDate, P_NonMngdPurchasingSpend, I_PurchasingCategoryMatlGroup) and exposes 39 fields. It has 11 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | CalendarDate | left_outer |
| P_NonMngdPurchasingSpend | P_NonMngdPurchasingSpend | from |
| I_PurchasingCategoryMatlGroup | PurchasingCategoryMatlGroup | left_outer |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_DateFunction | datefunctionid | |
| P_StartDate | mm_a_delivery_date | |
| P_EndDate | mm_a_delivery_date | |
| P_Language | sylangu |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea |
| [0..1] | I_GLAccount | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..1] | I_User | _User | $projection.AccountingDocCreatedByUser = _User.UserID |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [1..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | I_ProductGroup | _ProductGroup | $projection.ProductGroup = _ProductGroup.MaterialGroup |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AbapCatalog.sqlViewName | CMMNONMNGDPUSPN3 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Non Managed Purchasing Spend Cube | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| AccountingDocument | Journal Entry | |||
| Supplier | Supplier | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| GLAccount | GLAccount | General Ledger | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | User which created overhead document | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| WBSElement | WBSElement | WBS Internal ID | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| CostCenter | CostCenter | Cost Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Product | Material | Vehicle Model | ||
| Material | Material | Vehicle Model | ||
| ProductGroup | NonManaged2 | MaterialGroup | Product Group | |
| MaterialGroup | NonManaged2 | MaterialGroup | Product Group | |
| PurchasingCategory | ||||
| PurgCatName | ||||
| Fund | Fund | Sender Fund | ||
| CompanyCodeCurrency | Local Currency | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Plant | Plant | Valuation Area | ||
| CalendarYear | I_CalendarDate | CalendarYear | Year | |
| CalendarQuarter | I_CalendarDate | CalendarQuarter | Calendar Quarter | |
| CalendarMonth | I_CalendarDate | CalendarMonth | Calendar Month | |
| CalendarWeek | I_CalendarDate | CalendarWeek | Calendar Week | |
| CreatedByUserFullName | ||||
| TotalSpendAmount | ||||
| DisplayCurrency | ||||
| _Supplier | _Supplier | |||
| _Product | _Product | |||
| _ProductGroup | _ProductGroup | |||
| _MaterialGroup | _MaterialGroup | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _CompanyCode | _CompanyCode | |||
| _GLAccount | _GLAccount |
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_NonMngdPurchasingSpend3.
-- 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: CMMNONMNGDPUSPN3
-- Parameters: P_DisplayCurrency : displaycurrency, P_DateFunction : datefunctionid, P_StartDate : mm_a_delivery_date, P_EndDate : mm_a_delivery_date, P_Language : sylangu
CREATE VIEW C_NonMngdPurchasingSpend3 AS
SELECT
FiscalYear,
cast( AccountingDocument as mm_a_accounting_document ) AS AccountingDocument,
cast ( Supplier as odata_lifnr ) AS Supplier,
CompanyCode,
GLAccount,
AccountingDocumentType,
AccountingDocCreatedByUser,
PostingDate,
WBSElement,
WBSElementInternalID,
CostCenter,
ControllingArea,
Material AS Product,
Material,
NonManaged2.MaterialGroup AS ProductGroup,
NonManaged2.MaterialGroup AS MaterialGroup,
PurchasingCategoryMatlGroup._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
PurchasingCategoryMatlGroup._PurchasingCategory.PurgCatName AS PurgCatName,
Fund,
cast( CompanyCodeCurrency as mm_a_cocode_currency ) AS CompanyCodeCurrency,
ProfitCenter,
Plant,
CalendarDate.CalendarYear AS CalendarYear,
CalendarDate.CalendarQuarter AS CalendarQuarter,
CalendarDate.CalendarMonth AS CalendarMonth,
CalendarDate.CalendarWeek AS CalendarWeek,
cast( _User.UserDescription as mm_a_user_description ) AS CreatedByUserFullName,
cast( TotalSpendAmount as mm_a_total_spend_amount ) AS TotalSpendAmount,
cast( :P_DisplayCurrency as displaycurrency ) AS DisplayCurrency
FROM P_NonMngdPurchasingSpend
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS PurchasingCategoryMatlGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CalendarDate AS CalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea -- association [1..*]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON AccountingDocCreatedByUser = _User.UserID -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [1..1]
LEFT OUTER JOIN I_ProductGroup AS _ProductGroup ON ProductGroup = _ProductGroup.MaterialGroup -- association [1..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