C_PurchaseContractItemDEX

DDL: C_PURCHASECONTRACTITEMDEX SQL: CMMPURCONTITMDEX Type: view CONSUMPTION

Data Extraction for Purchase Contract Item

C_PurchaseContractItemDEX (Consumption)

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

PurchaseContractItem · Sourcing & Procurement

C_PurchaseContractItemDEX is a Consumption CDS View (Fact) that provides data about "Data Extraction for Purchase Contract Item" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContractItemAPI01) and exposes 98 fields with key fields PurchaseContract, PurchaseContractItem. It has 30 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_PurchaseContractItemAPI01 I_PurchaseContractItemAPI01 from

Associations (30)

CardinalityTargetAliasCondition
[1] E_PurchasingDocument _HeaderExtension $projection.PurchaseContract = _HeaderExtension.PurchasingDocument
[1] E_PurchasingDocumentItem _ExtensionItem $projection.PurchaseContract = _ExtensionItem.PurchasingDocument and $projection.PurchaseContractItem = _ExtensionItem.PurchasingDocumentItem
[1..1] C_PurchaseContractDEX _PurchaseContractDEX $projection.PurchaseContract = _PurchaseContractDEX.PurchaseContract
[1..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency
[1..1] I_UnitOfMeasure _OrderQuantityUnit $projection.OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[1..1] I_ProductGroup_2 _ProductGroup $projection.MaterialGroup = _ProductGroup.ProductGroup
[0..1] I_Product _Product $projection.Material = _Product.Product
[1..1] I_PurgDocumentItemCategory _PurgDocumentItemCategory $projection.PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_PurchaseContractType _PurchasingContractType $projection.PurchaseContractType = _PurchasingContractType.PurchaseContractType
[1..1] I_PurchasingDocumentCategory _PurchasingDocumentCategory $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Supplier _InvoicingParty $projection.InvoicingParty = _InvoicingParty.Supplier
[0..1] I_Supplier _SupplyingSupplier $projection.SupplyingSupplier = _SupplyingSupplier.Supplier
[1..1] I_UnitOfMeasure _OrderPriceUnit $projection.OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure
[1..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Supplier _Subcontractor $projection.Subcontractor = _Subcontractor.Supplier
[0..1] I_Address_2 _ReferenceDeliveryAddress $projection.ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID and _ReferenceDeliveryAddress.AddressPersonID = '' and _ReferenceDeliveryAddress.AddressRepresentationCode = ''
[0..1] I_Address_2 _ManualDeliveryAddress $projection.ManualDeliveryAddressID = _ManualDeliveryAddress.AddressID and _ManualDeliveryAddress.AddressPersonID = '' and _ManualDeliveryAddress.AddressRepresentationCode = ''
[0..1] I_Address_2 _DeliveryAddress $projection.DeliveryAddressID = _DeliveryAddress.AddressID and _DeliveryAddress.AddressPersonID = '' and _DeliveryAddress.AddressRepresentationCode = ''
[0..1] I_PurgInfoRecordUpdateCode _PurgInfoRecordUpdateCode $projection.PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode
[0..1] I_InventoryUsabilityCode _StockType $projection.StockType = _StockType.InventoryUsabilityCode
[1..1] I_ShippingInstruction _ShippingInstruction $projection.ShippingInstruction = _ShippingInstruction.ShippingInstruction
[0..1] I_BusinessPartner _ServicePerformer $projection.ServicePerformer = _ServicePerformer.BusinessPartner
[0..1] I_ProductTypeCode _ProductTypeCode $projection.ProductTypeCode = _ProductTypeCode.ProductTypeCode
[0..1] I_ProductType_2 _MaterialType $projection.MaterialType = _MaterialType.ProductType

Annotations (15)

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

Fields (98)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Contract Header
KEY PurchaseContractItem PurchaseContractItem Item Number of Purchasing Contract
DocumentCurrency DocumentCurrency Document Currency
OrderQuantityUnit OrderQuantityUnit Purchase Order Unit of Measure
TargetQuantity TargetQuantity Target Quantity
StorageLocation StorageLocation Storage Location
MaterialGroup MaterialGroup Material Group
Material Material Material Number
ContractNetPriceAmount ContractNetPriceAmount Net Price in Purchasing Document (in Document Currency)
NetPriceQuantity NetPriceQuantity Price Unit
PurchasingDocumentItemCategory PurchasingDocumentItemCategory Item category in purchasing document
InvoiceIsExpected InvoiceIsExpected Invoice Receipt Indicator
PurchaseContractItemText PurchaseContractItemText Short Text
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased Indicator: GR-Based Invoice Verification
GoodsReceiptIsExpected GoodsReceiptIsExpected Goods Receipt Indicator
Plant Plant Valuation Area
EvaldRcptSettlmtIsAllowed EvaldRcptSettlmtIsAllowed Evaluated Receipt Settlement (ERS)
TargetAmount TargetAmount Target Value for Outline Agreement in Document Currency
PurchaseContractType _PurchaseContractAPI01 PurchaseContractType Purchasing Document Type
PurchasingDocumentCategory _PurchaseContractAPI01 PurchasingDocumentCategory Purchasing Document Category
PurchasingGroup _PurchaseContractAPI01 PurchasingGroup Purchasing Group
PurchasingOrganization _PurchaseContractAPI01 PurchasingOrganization Purchasing Organization
ValidityStartDate _PurchaseContractAPI01 ValidityStartDate Start of Validity Period
ValidityEndDate _PurchaseContractAPI01 ValidityEndDate End of Validity Period
Supplier _PurchaseContractAPI01 Supplier Supplier
InvoicingParty _PurchaseContractAPI01 InvoicingParty Different Invoicing Party
SupplyingSupplier _PurchaseContractAPI01 SupplyingSupplier Goods Supplier
CreationDate _PurchaseContractAPI01 CreationDate Creation Date of Purchasing Document
LastChangeDateTime _PurchaseContractAPI01 LastChangeDateTime Change Time Stamp
ExchangeRate Exchange Rate
OrderPriceUnit OrderPriceUnit Order Price Unit (Purchasing)
VolumeUnit VolumeUnit Volume Unit
Customer Customer Sold-to Party
Subcontractor Subcontractor Supplier to be Supplied/Who is to Receive Delivery
ReferenceDeliveryAddressID ReferenceDeliveryAddressID Reference Delivery Address
ManualDeliveryAddressID ManualDeliveryAddressID Manual address number in purchasing document item
DeliveryAddressID Delivery Address
AccountAssignmentCategory AccountAssignmentCategory Account Assignment Category
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution Indicator for Multiple Account Assignment
OrdPriceUnitToOrderUnitDnmntr OrdPriceUnitToOrderUnitDnmntr Denominator for Conv. of Order Price Unit into Order Unit
OrderPriceUnitToOrderUnitNmrtr OrderPriceUnitToOrderUnitNmrtr Numerator for Conversion of Order Price Unit into Order Unit
SupplierMaterialNumber SupplierMaterialNumber Material Number Used by Supplier
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdelivery Tolerance
PriceIsToBePrinted PriceIsToBePrinted Price Printout
SupplierConfirmationControlKey SupplierConfirmationControlKey Confirmation Control Key
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdelivery Tolerance
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed Unlimited Overdelivery Allowed
PurgDocPriceDate PurgDocPriceDate Date of Price Determination
PurchasingInfoRecordUpdateCode PurchasingInfoRecordUpdateCode Indicator: Update Info Record
PurgDocReleaseOrderQuantity PurgDocReleaseOrderQuantity Standard release order quantity
PurgDocOrderAcknNumber PurgDocOrderAcknNumber Order Acknowledgment Number
PurchasingPriceIsEstimated PurgDocEstimatedPrice Indicator: Estimated Price
IsInfoAtRegistration IsInfoAtRegistration Info at Registration
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
StockType StockType Stock Type
TaxCode TaxCode Tax on sales/purchases code
RequirementTracking RequirementTracking Requirement Tracking Number
IsOrderAcknRqd IsOrderAcknRqd Order Acknowledgment Requirement
ShippingInstruction ShippingInstruction Shipping Instructions
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated Goods Receipt, Non-Valuated
ServicePerformer ServicePerformer Service Performer
ProductTypeCode ProductTypeCode Product Type Group
MaterialType MaterialType Material Type
PurchaseContractItemFormatted Purchase Contract Item Formatted
PurchasingContractDeletionCode PurchasingContractDeletionCode Deletion Indicator in Purchasing Document
PurchaseContractItemUniqueID PurchaseContractItemUniqueID Concatenation of EBELN and EBELP
PurchasingCategory PurchasingCategory Purchasing Category ID
PurgCatName PurgCatName Name of Purchasing Category
_PurchaseContractDEX _PurchaseContractDEX
_DocumentCurrency _DocumentCurrency
_OrderQuantityUnit _OrderQuantityUnit
_StorageLocation _StorageLocation
_ProductGroup _ProductGroup
_Product _Product
_PurgDocumentItemCategory _PurgDocumentItemCategory
_Plant _Plant
_PurchasingContractType _PurchasingContractType
_PurchasingDocumentCategory _PurchasingDocumentCategory
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier
_InvoicingParty _InvoicingParty
_SupplyingSupplier _SupplyingSupplier
_OrderPriceUnit _OrderPriceUnit
_VolumeUnit _VolumeUnit
_Customer _Customer
_Subcontractor _Subcontractor
_ReferenceDeliveryAddress _ReferenceDeliveryAddress
_ManualDeliveryAddress _ManualDeliveryAddress
_DeliveryAddress _DeliveryAddress
_PurgInfoRecordUpdateCode _PurgInfoRecordUpdateCode
_StockType _StockType
_ShippingInstruction _ShippingInstruction
_ServicePerformer _ServicePerformer
_ProductTypeCode _ProductTypeCode
_MaterialType _MaterialType

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_PurchaseContractItemDEX.
-- 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: CMMPURCONTITMDEX

CREATE VIEW C_PurchaseContractItemDEX AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  DocumentCurrency,
  OrderQuantityUnit,
  TargetQuantity,
  StorageLocation,
  MaterialGroup,
  Material,
  ContractNetPriceAmount,
  NetPriceQuantity,
  PurchasingDocumentItemCategory,
  InvoiceIsExpected,
  PurchaseContractItemText,
  InvoiceIsGoodsReceiptBased,
  GoodsReceiptIsExpected,
  Plant,
  EvaldRcptSettlmtIsAllowed,
  TargetAmount,
  _PurchaseContractAPI01.PurchaseContractType AS PurchaseContractType,
  _PurchaseContractAPI01.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  _PurchaseContractAPI01.PurchasingGroup AS PurchasingGroup,
  _PurchaseContractAPI01.PurchasingOrganization AS PurchasingOrganization,
  _PurchaseContractAPI01.ValidityStartDate AS ValidityStartDate,
  _PurchaseContractAPI01.ValidityEndDate AS ValidityEndDate,
  _PurchaseContractAPI01.Supplier AS Supplier,
  _PurchaseContractAPI01.InvoicingParty AS InvoicingParty,
  _PurchaseContractAPI01.SupplyingSupplier AS SupplyingSupplier,
  _PurchaseContractAPI01.CreationDate AS CreationDate,
  _PurchaseContractAPI01.LastChangeDateTime AS LastChangeDateTime,
  cast ( _PurchaseContractAPI01.ExchangeRate as fis_exchange_rate preserving type) AS ExchangeRate,
  OrderPriceUnit,
  VolumeUnit,
  Customer,
  Subcontractor,
  ReferenceDeliveryAddressID,
  ManualDeliveryAddressID,
  cast ( DeliveryAddressID as adrn2_ll preserving type) AS DeliveryAddressID,
  AccountAssignmentCategory,
  MultipleAcctAssgmtDistribution,
  OrdPriceUnitToOrderUnitDnmntr,
  OrderPriceUnitToOrderUnitNmrtr,
  SupplierMaterialNumber,
  UnderdelivTolrtdLmtRatioInPct,
  PriceIsToBePrinted,
  SupplierConfirmationControlKey,
  OverdelivTolrtdLmtRatioInPct,
  UnlimitedOverdeliveryIsAllowed,
  PurgDocPriceDate,
  PurchasingInfoRecordUpdateCode,
  PurgDocReleaseOrderQuantity,
  PurgDocOrderAcknNumber,
  PurgDocEstimatedPrice AS PurchasingPriceIsEstimated,
  IsInfoAtRegistration,
  NoDaysReminder1,
  NoDaysReminder2,
  NoDaysReminder3,
  StockType,
  TaxCode,
  RequirementTracking,
  IsOrderAcknRqd,
  ShippingInstruction,
  GoodsReceiptIsNonValuated,
  ServicePerformer,
  ProductTypeCode,
  MaterialType,
  cast ( PurchaseContractItemFormatted as mm_pur_ctr_itm_frmtd preserving type) AS PurchaseContractItemFormatted,
  PurchasingContractDeletionCode,
  PurchaseContractItemUniqueID,
  PurchasingCategory,
  PurgCatName
FROM I_PurchaseContractItemAPI01
LEFT OUTER JOIN E_PurchasingDocument AS _HeaderExtension ON PurchaseContract = _HeaderExtension.PurchasingDocument  -- association [1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _ExtensionItem ON PurchaseContract = _ExtensionItem.PurchasingDocument AND PurchaseContractItem = _ExtensionItem.PurchasingDocumentItem  -- association [1]
LEFT OUTER JOIN C_PurchaseContractDEX AS _PurchaseContractDEX ON PurchaseContract = _PurchaseContractDEX.PurchaseContract  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON OrderQuantityUnit = _OrderQuantityUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON MaterialGroup = _ProductGroup.ProductGroup  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON PurchasingDocumentItemCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_PurchaseContractType AS _PurchasingContractType ON PurchaseContractType = _PurchasingContractType.PurchaseContractType  -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _InvoicingParty ON InvoicingParty = _InvoicingParty.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SupplyingSupplier ON SupplyingSupplier = _SupplyingSupplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderPriceUnit ON OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Subcontractor ON Subcontractor = _Subcontractor.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _ReferenceDeliveryAddress ON ReferenceDeliveryAddressID = _ReferenceDeliveryAddress.AddressID AND _ReferenceDeliveryAddress.AddressPersonID = '' AND _ReferenceDeliveryAddress.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_Address_2 AS _DeliveryAddress ON DeliveryAddressID = _DeliveryAddress.AddressID AND _DeliveryAddress.AddressPersonID = '' AND _DeliveryAddress.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_PurgInfoRecordUpdateCode AS _PurgInfoRecordUpdateCode ON PurchasingInfoRecordUpdateCode = _PurgInfoRecordUpdateCode.PurchasingInfoRecordUpdateCode  -- association [0..1]
LEFT OUTER JOIN I_InventoryUsabilityCode AS _StockType ON StockType = _StockType.InventoryUsabilityCode  -- association [0..1]
LEFT OUTER JOIN I_ShippingInstruction AS _ShippingInstruction ON ShippingInstruction = _ShippingInstruction.ShippingInstruction  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _ServicePerformer ON ServicePerformer = _ServicePerformer.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductTypeCode ON ProductTypeCode = _ProductTypeCode.ProductTypeCode  -- association [0..1]
LEFT OUTER JOIN I_ProductType_2 AS _MaterialType ON MaterialType = _MaterialType.ProductType  -- association [0..1]
;