C_PFMProductStockDEX
CDI Data Provider for stock inventory BAM data extraction
C_PFMProductStockDEX (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Material Document · Cross Applications
C_PFMProductStockDEX is a Consumption CDS View (Fact) that provides data about "CDI Data Provider for stock inventory BAM data extraction" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 21 fields with key fields MaterialDocumentKey1, MaterialDocumentKey2, MaterialDocumentKey3, MaterialDocumentKey4, MaterialDocumentKey5. Part of development package VDM_SUS_PFM_EXTRACTION.
SAP Help Documentation
| Category | CDS Views for Product Footprint Management |
|---|---|
| Data Category | Fact |
| Status | Released |
This CDS view is used by Product Footprint Management for the data extraction of stock inventory. This view provides the necessary detail data based on stock inventory.
Prerequisites
Since the CDS entity uses a privileged access control, access is only possible through the data extraction runtime. Therefore, no additional authorizations are needed.
Structure
Fields used for filtering The main filters are as follows: Field Description CompanyCode Company code Plant Plant Material Material MaterialGroup Material group MaterialType Material type StorageLocation Storage location Supplier Supplier Customer Customer InventoryStockType Inventory stock type InventorySpecialStockType Inventory special stock type PostingDate Posting date MaterialBaseUnit Material base unit Further important fields Important fields in this view include the following: Field Name Description MaterialDocumentYear Material document year CalendarMonth Calendar month MatlWrhsStkQtyInMatlBaseUnit Material warehouse stock quantity in material base unit Data Extraction Type This CDS view is enabled for data extraction in full mode.
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | SUS-PFM-INT |
| Capabilities | Data Source for Data Extraction |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view is used by Product Footprint Management for the data extraction of stock inventory. This view provides the necessary detail data based on stock inventory.</p> |
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 |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPFMMATSTCKDEX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.sapObjectNodeType.name | MaterialDocument | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | CDI Data Provider for stock inventory BAM data extraction | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocumentKey1 | MaterialDocumentKey1 | Key field 1 | |
| KEY | MaterialDocumentKey2 | MaterialDocumentKey2 | Key field 2 | |
| KEY | MaterialDocumentKey3 | MaterialDocumentKey3 | Key field 3 | |
| KEY | MaterialDocumentKey4 | MaterialDocumentKey4 | Key field 4 | |
| KEY | MaterialDocumentKey5 | MaterialDocumentKey5 | Key field 5 | |
| KEY | MaterialDocumentKey6 | MaterialDocumentKey6 | Key field 6 | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| Material | StockIdentifyingMaterial | Material for Stock Mamangement | ||
| StorageLocation | StockIdfgStorageLocation | Storage Location (Stock Identifier) | ||
| Supplier | SpecialStockIdfgSupplier | Supplier for Special Stock | ||
| Customer | SpecialStockIdfgCustomer | Customer for Special Stock | ||
| InventoryStockType | InventoryStockType | Stock Type of Goods Movement (Stock Identifier) | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| PostingDate | PostingDate | Posting Date in the Document | ||
| MaterialBaseUnit | MaterialBaseUnit | Base Unit of Measure | ||
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| MaterialGroup | _StockIdentifyingMaterial | MaterialGroup | Material Group | |
| MaterialType | _StockIdentifyingMaterial | MaterialType | Material Type | |
| MatlWrhsStkQtyInMatlBaseUnit | Stock Quantity |
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_PFMProductStockDEX.
-- 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.
CREATE VIEW C_PFMProductStockDEX AS
SELECT
MaterialDocumentKey1,
MaterialDocumentKey2,
MaterialDocumentKey3,
MaterialDocumentKey4,
MaterialDocumentKey5,
MaterialDocumentKey6,
CompanyCode,
Plant,
StockIdentifyingMaterial AS Material,
StockIdfgStorageLocation AS StorageLocation,
SpecialStockIdfgSupplier AS Supplier,
SpecialStockIdfgCustomer AS Customer,
InventoryStockType,
InventorySpecialStockType,
PostingDate,
MaterialBaseUnit,
MaterialDocumentYear,
CalendarMonth,
_StockIdentifyingMaterial.MaterialGroup AS MaterialGroup,
_StockIdentifyingMaterial.MaterialType AS MaterialType,
cast(MatlStkChangeQtyInBaseUnit as nsdm_stock_qty preserving type) AS MatlWrhsStkQtyInMatlBaseUnit
FROM I_MaterialDocumentRecord
;
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