C_PurchasingInfoRecordDEX
Data Extraction for Purchasing Info Record
C_PurchasingInfoRecordDEX (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Purchasing Info Record · Sourcing & Procurement
C_PurchasingInfoRecordDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Purchasing Info Record" in SAP S/4HANA. It reads from 1 data source (I_PurchasingInfoRecordApi01) and exposes 44 fields with key field PurchasingInfoRecord. It has 11 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-ANA |
| Capabilities | Data Source for Data Extraction |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
| Description | <p>These CDS views are app independent, and are available for all external consumers who want to extract the data to SAP Business Warehouse (SAP BW) or other external systems.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingInfoRecordApi01 | I_PurchasingInfoRecordApi01 | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_PurgInfoRecdOrgPlntDataApi01 | _PurgInfoRecdOrgPlntDataApi01 | $projection.PurchasingInfoRecord = _PurgInfoRecdOrgPlntDataApi01.PurchasingInfoRecord |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [0..1] | I_ProductGroup_2 | _ProductGroup | $projection.MaterialGroup = _ProductGroup.ProductGroup |
| [0..1] | I_UnitOfMeasure | _PurgDocOrderQuantityUnit | $projection.PurgDocOrderQuantityUnit = _PurgDocOrderQuantityUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_Supplier | _PriorSupplier | $projection.PriorSupplier = _PriorSupplier.Supplier |
| [0..1] | I_Supplier | _Manufacturer | $projection.Manufacturer = _Manufacturer.Supplier |
| [1..1] | I_UnitOfMeasure | _ProductPurchasePointsQtyUnit | $projection.ProductPurchasePointsQtyUnit = _ProductPurchasePointsQtyUnit.UnitOfMeasure |
| [0..1] | I_Country | _Country | $projection.SupplierCertOriginCountry = _Country.Country |
| [0..1] | I_Region | _Region | $projection.SupplierCertOriginCountry = _Region.Country and $projection.SupplierCertOriginRegion = _Region.Region |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMMPURINFORECDEX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Data Extraction for Purchasing Info Record | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.sapObjectNodeType.name | PurchasingInfoRecord | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_FACT | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingInfoRecord | PurchasingInfoRecord | Number of purchasing info record | |
| Supplier | Supplier | Supplier's Account Number | ||
| Material | Material | Material Number | ||
| MaterialGroup | MaterialGroup | Material Group | ||
| CreationDate | CreationDate | Record Created On | ||
| IsDeleted | IsDeleted | Purchasing info: General data flagged for deletion | ||
| PurchasingInfoRecordDesc | PurchasingInfoRecordDesc | Short Text for Purchasing Info Record | ||
| PurgDocOrderQuantityUnit | PurgDocOrderQuantityUnit | Purchasing Document Order Qty Unit | ||
| OrderItemQtyToBaseQtyNmrtr | Numerator for Conversion of Order Unit to Base Unit | |||
| OrderItemQtyToBaseQtyDnmntr | OrderItemQtyToBaseQtyDnmntr | Denominator for Conversion of Order Unit to Base Unit | ||
| SupplierMaterialNumber | SupplierMaterialNumber | Material Number Used by Supplier | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Salesperson Responsible in the Event of Queries | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier's Telephone Number | ||
| BaseUnit | BaseUnit | Base Unit of Measure | ||
| SupplierMaterialGroup | SupplierMaterialGroup | Supplier Material Group | ||
| PriorSupplier | PriorSupplier | Prior Supplier | ||
| VarblPurOrdUnitIsActive | VarblPurOrdUnitIsActive | Variable Purchase Order Unit Active | ||
| Manufacturer | Manufacturer | Manufacturer | ||
| IsRegularSupplier | IsRegularSupplier | Regular Supplier | ||
| SupplierSubrange | SupplierSubrange | Supplier Subrange | ||
| NoDaysReminder1 | NoDaysReminder1 | Number of Days for First Reminder/Expediter | ||
| NoDaysReminder2 | NoDaysReminder2 | Number of Days for Second Reminder/Expediter | ||
| NoDaysReminder3 | NoDaysReminder3 | Number of Days for Third Reminder/Expediter | ||
| ProductPurchasePointsQty | ProductPurchasePointsQty | Number of Points | ||
| ProductPurchasePointsQtyUnit | ProductPurchasePointsQtyUnit | Points Unit | ||
| ReturnAgreement | ReturnAgreement | Return Agreement | ||
| SupplierCertOriginCat | SupplierCertOriginCat | Certificate Category | ||
| SupplierCertOriginNumber | SupplierCertOriginNumber | Certificate Number | ||
| SupplierCertValidityEndDate | SupplierCertValidityEndDate | Certificate of Origin Valid Until | ||
| SupplierCertOriginCountry | SupplierCertOriginCountry | Country/Region of Issue of Certificate of Origin | ||
| SupplierCertOriginRegion | SupplierCertOriginRegion | Region (State, Province, County) | ||
| SuplrCertOriginClassfctnNumber | SuplrCertOriginClassfctnNumber | Number | ||
| SupplierSubrangeSortNumber | SupplierSubrangeSortNumber | Sort Sequence Number | ||
| _PurgInfoRecdOrgPlntDataApi01 | _PurgInfoRecdOrgPlntDataApi01 | |||
| _Supplier | _Supplier | |||
| _Product | _Product | |||
| _ProductGroup | _ProductGroup | |||
| _PurgDocOrderQuantityUnit | _PurgDocOrderQuantityUnit | |||
| _BaseUnit | _BaseUnit | |||
| _PriorSupplier | _PriorSupplier | |||
| _Manufacturer | _Manufacturer | |||
| _ProductPurchasePointsQtyUnit | _ProductPurchasePointsQtyUnit | |||
| _Country | _Country | |||
| _Region | _Region |
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_PurchasingInfoRecordDEX.
-- 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: CMMPURINFORECDEX
CREATE VIEW C_PurchasingInfoRecordDEX AS
SELECT
PurchasingInfoRecord,
Supplier,
Material,
MaterialGroup,
CreationDate,
IsDeleted,
PurchasingInfoRecordDesc,
PurgDocOrderQuantityUnit,
cast ( OrderItemQtyToBaseQtyNmrtr as umbsz_ll preserving type) AS OrderItemQtyToBaseQtyNmrtr,
OrderItemQtyToBaseQtyDnmntr,
SupplierMaterialNumber,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
BaseUnit,
SupplierMaterialGroup,
PriorSupplier,
VarblPurOrdUnitIsActive,
Manufacturer,
IsRegularSupplier,
SupplierSubrange,
NoDaysReminder1,
NoDaysReminder2,
NoDaysReminder3,
ProductPurchasePointsQty,
ProductPurchasePointsQtyUnit,
ReturnAgreement,
SupplierCertOriginCat,
SupplierCertOriginNumber,
SupplierCertValidityEndDate,
SupplierCertOriginCountry,
SupplierCertOriginRegion,
SuplrCertOriginClassfctnNumber,
SupplierSubrangeSortNumber
FROM I_PurchasingInfoRecordApi01
LEFT OUTER JOIN I_PurgInfoRecdOrgPlntDataApi01 AS _PurgInfoRecdOrgPlntDataApi01 ON PurchasingInfoRecord = _PurgInfoRecdOrgPlntDataApi01.PurchasingInfoRecord -- association [1..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON MaterialGroup = _ProductGroup.ProductGroup -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _PurgDocOrderQuantityUnit ON PurgDocOrderQuantityUnit = _PurgDocOrderQuantityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _PriorSupplier ON PriorSupplier = _PriorSupplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Manufacturer ON Manufacturer = _Manufacturer.Supplier -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ProductPurchasePointsQtyUnit ON ProductPurchasePointsQtyUnit = _ProductPurchasePointsQtyUnit.UnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON SupplierCertOriginCountry = _Country.Country -- association [0..1]
LEFT OUTER JOIN I_Region AS _Region ON SupplierCertOriginCountry = _Region.Country AND SupplierCertOriginRegion = _Region.Region -- association [0..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