C_PFMProductStockDEX

DDL: C_PFMPRODUCTSTOCKDEX Type: view CONSUMPTION Package: VDM_SUS_PFM_EXTRACTION

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

CategoryCDS Views for Product Footprint Management
Data CategoryFact
StatusReleased
Purpose
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.

View on SAP Help Portal →

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessCross Applications
Application ComponentSUS-PFM-INT
CapabilitiesData Source for Data Extraction
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageCross 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

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Annotations (18)

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

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