R_PurchaseContractItemTP

DDL: R_PURCHASECONTRACTITEMTP Type: view_entity TRANSACTIONAL

Purchase Contract Item

R_PurchaseContractItemTP is a Transactional CDS View that provides data about "Purchase Contract Item" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContractItem) and exposes 82 fields with key fields PurchaseContract, PurchaseContractItem. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseContractItem I_PurchaseContractItem from

Associations (5)

CardinalityTargetAliasCondition
[1..1] E_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchaseContract = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchaseContractItem = _PurchasingDocumentItem.PurchasingDocumentItem
[0..*] R_PurContrAccountTP _PurCtrAccount
[0..1] R_PurContrAddressTP _PurCtrAddress
[0..*] R_PurContrItemNotesTP _PurCtrItNotes
[1..*] R_PurContrItemCndnValdtyTP _PurContrItemCndnValdty

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Purchase Contract Item view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.representativeKey PurchaseContractItem view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (82)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
PurchaseContractItemUniqueID PurchaseContractItemUniqueID Document Item
CompanyCode CompanyCode Receiver Company Code
Material Material Vehicle Model
ManufacturerMaterial ManufacturerMaterial MPN: Material
PurchaseContractItemText PurchaseContractItemText Short Text
ContractNetPriceAmount ContractNetPriceAmount Net Price
OrderPriceUnit OrderPriceUnit Order Price Un.
VolumeUnit VolumeUnit Volume Unit
OrderQuantityUnit OrderQuantityUnit Sales Unit
MaterialGroup MaterialGroup Product Group
Customer Customer Sold-to Party
Subcontractor Subcontractor Supplier
ReferenceDeliveryAddressID ReferenceDeliveryAddressID Reference Address
ManualDeliveryAddressID ManualDeliveryAddressID Address Number
DeliveryAddressID DeliveryAddressID Address
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
GoodsReceiptIsExpected GoodsReceiptIsExpected Goods Receipt
NetPriceQuantity NetPriceQuantity Price Unit
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution
TargetQuantity TargetQuantity Target Quantity
TargetAmount TargetAmount Target Value
DocumentCurrency DocumentCurrency Document Currency
OrdPriceUnitToOrderUnitDnmntr OrdPriceUnitToOrderUnitDnmntr Quantity Conversion Denominator
OrderPriceUnitToOrderUnitNmrtr OrderPriceUnitToOrderUnitNmrtr Quantity Conversion Numerator
PurchasingDocumentItemCategory PurchasingDocumentItemCategory Item Category
SupplierMaterialNumber SupplierMaterialNumber Supp. Mat. No.
EvaldRcptSettlmtIsAllowed EvaldRcptSettlmtIsAllowed ERS
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
PriceIsToBePrinted PriceIsToBePrinted Print Price
SupplierConfirmationControlKey SupplierConfirmationControlKey Conf. Control
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
UnlimitedOverdeliveryIsAllowed UnlimitedOverdeliveryIsAllowed Unlimited Tol.
IncotermsClassification IncotermsClassification Incoterms
IncotermsLocation1 IncotermsLocation1 Inco. Location1
InvoiceIsExpected InvoiceIsExpected Invoice Receipt
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased GR-Based IV
PurgDocPriceDate PurgDocPriceDate Price Date
PurchasingInfoRecordUpdateCode PurchasingInfoRecordUpdateCode InfoUpdate
PurgDocReleaseOrderQuantity PurgDocReleaseOrderQuantity Rel. order qty.
PurgDocOrderAcknNumber PurgDocOrderAcknNumber Order Acknowl.
PurchasingPriceIsEstimated PurgDocEstimatedPrice Estimated Price
IsInfoAtRegistration IsInfoAtRegistration InfoAtReg.
NoDaysReminder1 NoDaysReminder1 1st Rem./Exped.
NoDaysReminder2 NoDaysReminder2 2nd Rem./Exped.
NoDaysReminder3 NoDaysReminder3 3rd Rem./Exped.
PlannedDeliveryDurationInDays PlannedDeliveryDurationInDays Plnd dely time
StockType StockType Stock Type
TaxCode TaxCode Tax Code
TaxCountry TaxCountry Tax Ctry/Reg.
TaxDeterminationDate TaxDeterminationDate Tx Determination Dte
RequirementTracking RequirementTracking Tracking Number
IsOrderAcknRqd IsOrderAcknRqd Acknowl. Reqd.
ShippingInstruction ShippingInstruction Shipping Instr.
GoodsReceiptIsNonValuated GoodsReceiptIsNonValuated GR Non-Valuated
ServicePerformer ServicePerformer Service Performer
ProductTypeCode ProductTypeCode Product Type Group
MaterialType MaterialType Material Type
PurchaseContractItemFormatted PurchaseContractItemFormatted Char15
PurchasingContractDeletionCode PurchasingContractDeletionCode Del. Indicator
PurchaseRequisition PurchaseRequisition Requisition
PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
PartialInvoiceDistribution PartialInvoiceDistribution Partial invoice
ManufacturerPartNmbr ManufacturerPartNmbr Mfr Part Number
Manufacturer Manufacturer Manufacturer
PurContractItmReplnmtElmntType PurContractItmReplnmtElmntType Kanban Indicat.
PurchasingCategory PurchasingCategory Purchasing Category
PurgCatName PurgCatName Purchasing Cat. Name
PurchaseContractType PurchaseContractType Order Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
PurgProdCmplncSupplierStatus PurgProdCmplncSupplierStatus Supplier Check Sts
PurchasingIsCatalogRelevant PurchasingIsCatalogRelevant Ctlg Item Indicator
LastChangeDateTime _PurchaseContract LastChangeDateTime Timestamp
_PurchaseContract _PurchaseContract
_PurCtrAccount _PurCtrAccount
_PurCtrAddress _PurCtrAddress
_PurCtrItNotes _PurCtrItNotes
_PurContrItemCndnValdty _PurContrItemCndnValdty

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 R_PurchaseContractItemTP.
-- 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 R_PurchaseContractItemTP AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  PurchaseContractItemUniqueID,
  CompanyCode,
  Material,
  ManufacturerMaterial,
  PurchaseContractItemText,
  ContractNetPriceAmount,
  OrderPriceUnit,
  VolumeUnit,
  OrderQuantityUnit,
  MaterialGroup,
  Customer,
  Subcontractor,
  ReferenceDeliveryAddressID,
  ManualDeliveryAddressID,
  DeliveryAddressID,
  Plant,
  StorageLocation,
  AccountAssignmentCategory,
  GoodsReceiptIsExpected,
  NetPriceQuantity,
  MultipleAcctAssgmtDistribution,
  TargetQuantity,
  TargetAmount,
  DocumentCurrency,
  OrdPriceUnitToOrderUnitDnmntr,
  OrderPriceUnitToOrderUnitNmrtr,
  PurchasingDocumentItemCategory,
  SupplierMaterialNumber,
  EvaldRcptSettlmtIsAllowed,
  UnderdelivTolrtdLmtRatioInPct,
  PriceIsToBePrinted,
  SupplierConfirmationControlKey,
  OverdelivTolrtdLmtRatioInPct,
  UnlimitedOverdeliveryIsAllowed,
  IncotermsClassification,
  IncotermsLocation1,
  InvoiceIsExpected,
  InvoiceIsGoodsReceiptBased,
  PurgDocPriceDate,
  PurchasingInfoRecordUpdateCode,
  PurgDocReleaseOrderQuantity,
  PurgDocOrderAcknNumber,
  PurgDocEstimatedPrice AS PurchasingPriceIsEstimated,
  IsInfoAtRegistration,
  NoDaysReminder1,
  NoDaysReminder2,
  NoDaysReminder3,
  PlannedDeliveryDurationInDays,
  StockType,
  TaxCode,
  TaxCountry,
  TaxDeterminationDate,
  RequirementTracking,
  IsOrderAcknRqd,
  ShippingInstruction,
  GoodsReceiptIsNonValuated,
  ServicePerformer,
  ProductTypeCode,
  MaterialType,
  PurchaseContractItemFormatted,
  PurchasingContractDeletionCode,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  PartialInvoiceDistribution,
  ManufacturerPartNmbr,
  Manufacturer,
  PurContractItmReplnmtElmntType,
  PurchasingCategory,
  PurgCatName,
  PurchaseContractType,
  PurchasingOrganization,
  PurchasingGroup,
  PurgProdCmplncSupplierStatus,
  PurchasingIsCatalogRelevant,
  _PurchaseContract.LastChangeDateTime AS LastChangeDateTime
FROM I_PurchaseContractItem
LEFT OUTER JOIN E_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchaseContract = _PurchasingDocumentItem.PurchasingDocument AND PurchaseContractItem = _PurchasingDocumentItem.PurchasingDocumentItem  -- association [1..1]
LEFT OUTER JOIN R_PurContrAccountTP AS _PurCtrAccount ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_PurContrAddressTP AS _PurCtrAddress ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN R_PurContrItemNotesTP AS _PurCtrItNotes ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_PurContrItemCndnValdtyTP AS _PurContrItemCndnValdty ON /* condition not available in parsed metadata */  -- association [1..*]
;