C_PurchasingInfoRecordDEX

DDL: C_PURCHASINGINFORECORDDEX SQL: CMMPURINFORECDEX Type: view CONSUMPTION

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

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-ANA
CapabilitiesData Source for Data Extraction
PackageSourcing & 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

Data Sources (1)

SourceAliasJoin Type
I_PurchasingInfoRecordApi01 I_PurchasingInfoRecordApi01 from

Associations (11)

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

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

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