C_PurchaseRequisitionItemDEX

DDL: C_PURCHASEREQUISITIONITEMDEX SQL: CMMPRITMDEX Type: view CONSUMPTION

Data Extraction for Purchase Requisition Item

C_PurchaseRequisitionItemDEX (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

PurchaseRequisitionItem · Sourcing & Procurement

C_PurchaseRequisitionItemDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Purchase Requisition Item" in SAP S/4HANA. It reads from 1 data source (I_PurchaseRequisitionItemAPI01) and exposes 123 fields with key fields PurchaseRequisition, PurchaseRequisitionItem. It has 27 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_PurchaseRequisitionItemAPI01 I_PurchaseRequisitionItemAPI01 from

Associations (27)

CardinalityTargetAliasCondition
[1..1] I_PurchasingDocumentType _PurchasingDocumentType $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.PurchaseRequisitionType = _PurchasingDocumentType.PurchasingDocumentType
[1..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[0..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_ProductGroup_2 _ProductGroup $projection.MaterialGroup = _ProductGroup.ProductGroup
[0..1] I_PurchasingObjectCategory _PurchasingObjectCategory $projection.PurchasingDocumentCategory = _PurchasingObjectCategory.PurchasingDocumentCategory
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Supplier _FixedSupplier $projection.FixedSupplier = _FixedSupplier.Supplier
[0..1] I_Address_2 _DeliveryAddress $projection.DeliveryAddressID = _DeliveryAddress.AddressID and _DeliveryAddress.AddressPersonID = '' and _DeliveryAddress.AddressRepresentationCode = ''
[0..1] I_Address_2 _ManualDeliveryAddress $projection.ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID and _ManualDeliveryAddress.AddressPersonID = '' and _ManualDeliveryAddress.AddressRepresentationCode = ''
[0..1] I_Currency _Currency $projection.PurReqnItemCurrency = _Currency.Currency
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_Address_2 _ItemDeliveryAddress $projection.ItemDeliveryAddressID = _ItemDeliveryAddress.AddressID and _ItemDeliveryAddress.AddressPersonID = '' and _ItemDeliveryAddress.AddressRepresentationCode = ''
[1..1] I_Language _Language $projection.Language = _Language.Language
[0..1] I_BusinessPartner _BusinessPartner $projection.ServicePerformer = _BusinessPartner.BusinessPartner
[0..1] I_ProductTypeCode _ProductTypeCode $projection.ProductType = _ProductTypeCode.ProductTypeCode
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_MRPController _MRPController $projection.Plant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_Address_2 _Address $projection.AddressID = _Address.AddressID and _Address.AddressPersonID = '' and _Address.AddressRepresentationCode = ''
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_InventorySpecialStockType _InventorySpecialStockType $projection.InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType
[1..1] C_PurchaseContractDEX _PurchaseContract $projection.PurchaseContract = _PurchaseContract.PurchaseContract
[1..1] C_PurchaseContractItemDEX _PurchaseContractItem $projection.PurchaseContract = _PurchaseContractItem.PurchaseContract and $projection.PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem
[1..1] C_PurchasingInfoRecordDEX _PurchasingInfoRecord $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CMMPRITMDEX view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Data Extraction for Purchase Requisition Item 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 PurchaseRequisitionItem view
ObjectModel.modelingPattern #ANALYTICAL_FACT view

Fields (123)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition PurchaseRequisition Purchase Requisition Number
KEY PurchaseRequisitionItem PurchaseRequisitionItem Item number of purchase requisition
PurchaseReqnItemUniqueID PurchaseReqnItemUniqueID Key to identify purchase requisition item
PurchasingDocument PurchasingDocument Purchase order number
PurchasingDocumentItem PurchasingDocumentItem Purchase order item number
PurReqnReleaseStatus PurReqnReleaseStatus Requisition Processing State
PurchaseRequisitionType PurchaseRequisitionType Purchase Requisition Document Type
PurchasingDocumentSubtype PurchasingDocumentSubtype Control indicator for purchasing document type
PurchasingDocumentItemCategory PurchasingDocumentItemCategory Item category in purchasing document
PurchaseRequisitionItemText PurchaseRequisitionItemText Short Text
AccountAssignmentCategory AccountAssignmentCategory Account Assignment Category
Material Material Material Number
MaterialGroup MaterialGroup Material Group
PurchasingDocumentCategory PurchasingDocumentCategory Purchasing Document Category
PurchaseRequisitionPrice PurchaseRequisitionPrice Price in Purchase Requisition
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration Goods receipt processing time in days
ReleaseCode ReleaseCode Release Indicator
PurchaseRequisitionReleaseDate PurchaseRequisitionReleaseDate Purchase Requisition Release Date
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Plant Plant Valuation Area
SourceOfSupplyIsAssigned SourceOfSupplyIsAssigned Assigned Source of Supply
SupplyingPlant SupplyingPlant Supplying (issuing) plant in case of stock transport order
PurReqnLimitConsumptionAmt PurReqnLimitConsumptionAmt Consumption Value for Limit Items
DeliveryDate DeliveryDate Item Delivery Date
CreationDate CreationDate Requisition (request) date
ProcessingStatus ProcessingStatus Processing status of purchase requisition
PurchasingInfoRecord PurchasingInfoRecord Number of purchasing info record
Supplier Supplier Desired Vendor
IsDeleted IsDeleted Deletion Indicator in Purchasing Document
FixedSupplier FixedSupplier Fixed Vendor
RequisitionerName RequisitionerName Name of requisitioner/requester
CreatedByUser CreatedByUser Name of Person Responsible for Creating the Object
PurReqCreationDate PurReqCreationDate Requisition (request) date
DeliveryAddressID Delivery Address
ManualDeliveryAddressID ManualDeliveryAddressID Manual address number in purchasing document item
PurReqnItemCurrency PurReqnItemCurrency Currency Key
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn Planned Delivery Time in Days
DelivDateCategory DelivDateCategory Category of delivery date
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution Indicator for Multiple Account Assignment
StorageLocation StorageLocation Storage Location
PurReqnSSPRequestor PurReqnSSPRequestor Requestor
PurReqnSSPAuthor PurReqnSSPAuthor Author of Requisition
PurchaseContract PurchaseContract Number of principal purchase agreement
PurReqnSourceOfSupplyType PurReqnSourceOfSupplyType Purchasing Document Category
PurchaseContractItem PurchaseContractItem Item Number of Principal Purchase Agreement
ConsumptionPosting ConsumptionPosting Consumption Posting
PurReqnOrigin PurReqnOrigin Creation indicator (purchase requisition/schedule lines)
PurReqnSSPCatalog PurReqnSSPCatalog Technical Key of a Web Service (for Example - a Catalog)
PurReqnSSPCatalogItem PurReqnSSPCatalogItem Catalog Item Id
PurReqnSSPCrossCatalogItem PurReqnSSPCrossCatalogItem Catalog item key
IsPurReqnBlocked IsPurReqnBlocked Purchase Requisition Blocked
ItemDeliveryAddressID ItemDeliveryAddressID Number of delivery address
Language Language Report Text Language
IsClosed IsClosed Purchase requisition closed
ReleaseIsNotCompleted ReleaseIsNotCompleted Release Not Yet Completely Effected
ServicePerformer ServicePerformer Service Performer
ProductType Product Type Group
PurchaseRequisitionStatus PurchaseRequisitionStatus Release State
ReleaseStrategy ReleaseStrategy Release strategy in the purchase requisition
PerformancePeriodStartDate PerformancePeriodStartDate Start Date for Period of Performance
PerformancePeriodEndDate PerformancePeriodEndDate End Date for Period of Performance
CompanyCode CompanyCode Receiver Company Code
SupplierMaterialNumber SupplierMaterialNumber Material Number Used by Supplier
Batch Batch Batch Number
MaterialRevisionLevel MaterialRevisionLevel_2 Revision Level
MinRemainingShelfLife MinRemainingShelfLife Minimum Remaining Shelf Life
ItemNetAmount ItemNetAmount Tot. val. rel.
GoodsReceiptIsExpected GoodsReceiptIsExpected Goods Receipt Indicator
InvoiceIsExpected InvoiceIsExpected Invoice Receipt Indicator
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated Goods Receipt, Non-Valuated
RequirementTracking RequirementTracking Requirement Tracking Number
MRPController MRPController MRP Controller
TaxCode TaxCode Tax on sales/purchases code
PurchaseRequisitionIsFixed PurchaseRequisitionIsFixed Purchase requisition is fixed
AddressID AddressID Manual address number in purchasing document item
LastChangeDateTime LastChangeDateTime UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
ProcurementHubSourceSystem ProcurementHubSourceSystem Connected System ID
ExtPurgOrgForPurg ExtPurgOrgForPurg Purchasing Organization
ExtCompanyCodeForPurg ExtCompanyCodeForPurg Company Code of External System
ExtPlantForPurg ExtPlantForPurg Plant of External System
ExtInfoRecordForPurg ExtInfoRecordForPurg Info Record of External System
ExtContractItemForPurg ExtContractItemForPurg Contract Item of External System
ExtContractForPurg ExtContractForPurg Contract of External System
ExtDesiredSupplierForPurg ExtDesiredSupplierForPurg Desired Supplier of External System
ExtFixedSupplierForPurg ExtFixedSupplierForPurg Fixed Supplier of External System
ExtMaterialForPurg ExtMaterialForPurg Material of External System
RequestedQuantity RequestedQuantity Purchase requisition quantity
PurReqnPriceQuantity PurReqnPriceQuantity Price unit
BaseUnit BaseUnit Purchase requisition unit of measure
IsPurReqnCmplt IsPurReqnCmplt Purchase Requisition not yet Complete
PurReqnItemBlockingReasonText PurReqnItemBlockingReasonText Reason for Item Block
InventorySpecialStockType InventorySpecialStockType Special Stock Indicator
QuotaArrangement QuotaArrangement Number of quota arrangement
QuotaArrangementItem QuotaArrangementItem Quota arrangement item
_PurchaseRequisition _PurchaseRequisition
_PurchasingDocumentType _PurchasingDocumentType
_PurgDocumentItemCategory _PurgDocumentItemCategory
_Product _Product
_ProductGroup _ProductGroup
_PurchasingObjectCategory _PurchasingObjectCategory
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_Plant _Plant
_SupplyingPlant _SupplyingPlant
_Supplier _Supplier
_FixedSupplier _FixedSupplier
_DeliveryAddress _DeliveryAddress
_ManualDeliveryAddress _ManualDeliveryAddress
_Currency _Currency
_StorageLocation _StorageLocation
_ItemDeliveryAddress _ItemDeliveryAddress
_Language _Language
_BusinessPartner _BusinessPartner
_ProductTypeCode _ProductTypeCode
_CompanyCode _CompanyCode
_MRPController _MRPController
_Address _Address
_UnitOfMeasure _UnitOfMeasure
_InventorySpecialStockType _InventorySpecialStockType
_PurchaseContract _PurchaseContract
_PurchaseContractItem _PurchaseContractItem
_PurchasingInfoRecord _PurchasingInfoRecord

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_PurchaseRequisitionItemDEX.
-- 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: CMMPRITMDEX

CREATE VIEW C_PurchaseRequisitionItemDEX AS
SELECT
  PurchaseRequisition,
  PurchaseRequisitionItem,
  PurchaseReqnItemUniqueID,
  PurchasingDocument,
  PurchasingDocumentItem,
  PurReqnReleaseStatus,
  PurchaseRequisitionType,
  PurchasingDocumentSubtype,
  PurchasingDocumentItemCategory,
  PurchaseRequisitionItemText,
  AccountAssignmentCategory,
  Material,
  MaterialGroup,
  PurchasingDocumentCategory,
  PurchaseRequisitionPrice,
  MaterialGoodsReceiptDuration,
  ReleaseCode,
  PurchaseRequisitionReleaseDate,
  PurchasingOrganization,
  PurchasingGroup,
  Plant,
  SourceOfSupplyIsAssigned,
  SupplyingPlant,
  PurReqnLimitConsumptionAmt,
  DeliveryDate,
  CreationDate,
  ProcessingStatus,
  PurchasingInfoRecord,
  Supplier,
  IsDeleted,
  FixedSupplier,
  RequisitionerName,
  CreatedByUser,
  PurReqCreationDate,
  cast ( DeliveryAddressID as adrn2_ll preserving type) AS DeliveryAddressID,
  ManualDeliveryAddressID,
  PurReqnItemCurrency,
  MaterialPlannedDeliveryDurn,
  DelivDateCategory,
  MultipleAcctAssgmtDistribution,
  StorageLocation,
  PurReqnSSPRequestor,
  PurReqnSSPAuthor,
  PurchaseContract,
  PurReqnSourceOfSupplyType,
  PurchaseContractItem,
  ConsumptionPosting,
  PurReqnOrigin,
  PurReqnSSPCatalog,
  PurReqnSSPCatalogItem,
  PurReqnSSPCrossCatalogItem,
  IsPurReqnBlocked,
  ItemDeliveryAddressID,
  Language,
  IsClosed,
  ReleaseIsNotCompleted,
  ServicePerformer,
  cast(ProductType as abap.char(4)) AS ProductType,
  PurchaseRequisitionStatus,
  ReleaseStrategy,
  PerformancePeriodStartDate,
  PerformancePeriodEndDate,
  CompanyCode,
  SupplierMaterialNumber,
  Batch,
  MaterialRevisionLevel_2 AS MaterialRevisionLevel,
  MinRemainingShelfLife,
  ItemNetAmount,
  GoodsReceiptIsExpected,
  InvoiceIsExpected,
  GoodsReceiptIsNonValuated,
  RequirementTracking,
  MRPController,
  TaxCode,
  PurchaseRequisitionIsFixed,
  AddressID,
  LastChangeDateTime,
  ProcurementHubSourceSystem,
  ExtPurgOrgForPurg,
  ExtCompanyCodeForPurg,
  ExtPlantForPurg,
  ExtInfoRecordForPurg,
  ExtContractItemForPurg,
  ExtContractForPurg,
  ExtDesiredSupplierForPurg,
  ExtFixedSupplierForPurg,
  ExtMaterialForPurg,
  RequestedQuantity,
  PurReqnPriceQuantity,
  BaseUnit,
  IsPurReqnCmplt,
  PurReqnItemBlockingReasonText,
  InventorySpecialStockType,
  QuotaArrangement,
  QuotaArrangementItem
FROM I_PurchaseRequisitionItemAPI01
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchasingDocumentType ON PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory AND PurchaseRequisitionType = _PurchasingDocumentType.PurchasingDocumentType  -- association [1..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- 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 [1..1]
LEFT OUTER JOIN I_PurchasingObjectCategory AS _PurchasingObjectCategory ON PurchasingDocumentCategory = _PurchasingObjectCategory.PurchasingDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _FixedSupplier ON FixedSupplier = _FixedSupplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _DeliveryAddress ON DeliveryAddressID = _DeliveryAddress.AddressID AND _DeliveryAddress.AddressPersonID = '' AND _DeliveryAddress.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _ManualDeliveryAddress ON ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID AND _ManualDeliveryAddress.AddressPersonID = '' AND _ManualDeliveryAddress.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON PurReqnItemCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_Address_2 AS _ItemDeliveryAddress ON ItemDeliveryAddressID = _ItemDeliveryAddress.AddressID AND _ItemDeliveryAddress.AddressPersonID = '' AND _ItemDeliveryAddress.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON ServicePerformer = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductTypeCode ON ProductType = _ProductTypeCode.ProductTypeCode  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND MRPController = _MRPController.MRPController  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _Address ON AddressID = _Address.AddressID AND _Address.AddressPersonID = '' AND _Address.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_InventorySpecialStockType AS _InventorySpecialStockType ON InventorySpecialStockType = _InventorySpecialStockType.InventorySpecialStockType  -- association [0..1]
LEFT OUTER JOIN C_PurchaseContractDEX AS _PurchaseContract ON PurchaseContract = _PurchaseContract.PurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_PurchaseContractItemDEX AS _PurchaseContractItem ON PurchaseContract = _PurchaseContractItem.PurchaseContract AND PurchaseContractItem = _PurchaseContractItem.PurchaseContractItem  -- association [1..1]
LEFT OUTER JOIN C_PurchasingInfoRecordDEX AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord  -- association [1..1]
;