C_PPS_PurContractItemHierTP_2
Purchase Contract Item
C_PPS_PurContractItemHierTP_2 is a Consumption CDS View that provides data about "Purchase Contract Item" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurchaseContractItemTP) and exposes 128 fields with key fields PurchaseContract, PurchaseContractItem. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PPS_PurchaseContractItemTP | R_PPS_PurchaseContractItemTP | projection |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_PPS_PurgDocTolKeyQuickView | _ToleranceKey | $projection.PPSDeliveryToleranceKey = _ToleranceKey.PPSDeliveryToleranceKey |
| [0..*] | C_PPS_PurContrDocHistoryC | _DocHistory | $projection.ActivePurchasingDocument = _DocHistory.PurchaseContract and $projection.PurchaseContractItem = _DocHistory.PurchaseContractItem |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Purchase Contract Item | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Search.searchable | true | view | |
| ObjectModel.representativeKey | PurchaseContractItem | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.allowNewDatasources | false | view | |
| AbapCatalog.extensibility.elementSuffix | PDI | view | |
| AbapCatalog.extensibility.quota.maximumFields | 404 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 40400 | view | |
| AbapCatalog.extensibility.allowNewCompositions | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.sapObjectNodeType.name | PPS_PurchaseContractItem | view |
Fields (128)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | PurchaseContract | Purchasing Doc. | |
| KEY | PurchaseContractItem | PurchaseContractItem | Item | |
| PurchaseContractItemUniqueID | PurchaseContractItemUniqueID | Document Item | ||
| PurgConfigurableItemNumber | PurgConfigurableItemNumber | Hierarchy Number | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Material | Material | Vehicle Model | ||
| ManufacturerMaterial | ManufacturerMaterial | MPN: Material | ||
| MaterialName | ||||
| PPSPricingArrangementType | PPSPricingArrangementType | |||
| PurchaseContractItemText | PurchaseContractItemText | Short Text | ||
| ContractNetPriceAmount | ContractNetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| VolumeUnit | VolumeUnit | Volume Unit | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialGroupName | ||||
| Customer | Customer | Sold-to Party | ||
| Subcontractor | Subcontractor | Supplier | ||
| ReferenceDeliveryAddressID | ReferenceDeliveryAddressID | Reference Address | ||
| DeliveryAddressID | DeliveryAddressID | Address | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | _StorageLocation | StorageLocationName | Storage Loc. Name | |
| AccountAssignmentCategory | AccountAssignmentCategory | Account Assignment Category | ||
| AcctAssignmentCategoryNamelocalized | ||||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| ActivePurchasingDocument | ActivePurchasingDocument | Active Purchase Doc | ||
| TargetSAPObjectNodeType | ||||
| MultipleAcctAssgmtDistribution | MultipleAcctAssgmtDistribution | Distribution Indicator | ||
| MultipleAcctAssgmtDistrName | ||||
| virtualAcctAssgmtUndistributedQtymenge_d | Undistributed Quantity | |||
| virtualAcctAssgmtUndistributedAmtbwert | Undistributed Amount | |||
| virtualAcctAssgmtUndistributedPctvproz | Undistributed Percentage | |||
| virtualUICT_AcctAssgmtUndistriQtyboolean | ||||
| virtualUICT_AcctAssgmtUndistriAmtboolean | ||||
| virtualUICT_AcctAssgmtUndistriPctboolean | ||||
| virtualUICT_PricingIsHiddenboolean | ||||
| virtualUICT_PACeilingAmountboolean | ||||
| virtualUICT_PAMaximumFeesboolean | ||||
| virtualUICT_PAMinimumFeesboolean | ||||
| virtualUICT_PAGovtShareAboveboolean | ||||
| virtualUICT_PAGovtShareBelowboolean | ||||
| virtualUICT_PAVALUESISNOTENABLEDboolean | ||||
| virtualUICT_PASHARESISNOTENABLEDboolean | ||||
| virtualUICT_HideMaterialboolean | ||||
| virtualUICT_DOCheckboxboolean | ||||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| TargetAmount | TargetAmount | Target Value | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Conversion denominator factor | ||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Conversion numerator factor | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| PurgDocExternalItemCategory | PurgDocExternalItemCategory | Item Category | ||
| PurgDocItemCategoryName | _PurgDocumentItemCategoryText | PurgDocItemCategoryName | Text for ItCat. | |
| SupplierMaterialNumber | SupplierMaterialNumber | Supplier Material Number | ||
| EvaldRcptSettlmtIsAllowed | EvaldRcptSettlmtIsAllowed | ERS | ||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | ||
| PriceIsToBePrinted | PriceIsToBePrinted | Print Price | ||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | Conf. Control | ||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | ||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | ||
| 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 | PurchasingPriceIsEstimated | Estimated Price | ||
| IsInfoAtRegistration | IsInfoAtRegistration | InfoAtReg. | ||
| NoDaysReminder1 | NoDaysReminder1 | 1st Rem./Exped. | ||
| NoDaysReminder2 | NoDaysReminder2 | 2nd Rem./Exped. | ||
| NoDaysReminder3 | NoDaysReminder3 | 3rd Rem./Exped. | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxCodeName | ||||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| 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 | ||
| ServicePerformerName | _ServicePerformer | BusinessPartnerName | Extracted Customer Name | |
| ProductTypeCode | ProductTypeCode | Product Type Group | ||
| ProductTypeName | _ProductTypeCodeText | Name | Item Category Description | |
| MaterialType | MaterialType | Material Type | ||
| PurchaseContractItemFormatted | PurchaseContractItemFormatted | Char15 | ||
| PurchasingContractDeletionCode | PurchasingContractDeletionCode | Del. Indicator | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| PartialInvoiceDistribution | PartialInvoiceDistribution | Partial Invoice | ||
| PartialInvoiceDistributionName | _PartialInvoiceIndicator | PartialInvoiceDistributionName | ||
| ManufacturerPartNmbr | ManufacturerPartNmbr | Mfr Part Number | ||
| Manufacturer | Manufacturer | Manufacturer | ||
| PurchasingCategory | PurchasingCategory | Purchasing Category | ||
| PurgCatName | ||||
| PurchaseContractType | PurchaseContractType | Order Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurgProdCmplncSupplierStatus | PurgProdCmplncSupplierStatus | Supplier Check Sts | ||
| PurchasingIsCatalogRelevant | PurchasingIsCatalogRelevant | Ctlg Item Indicator | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| PlannedDeliveryDurationInDays | PlannedDeliveryDurationInDays | Plnd dely time | ||
| PPSPerdOfPerfStartDate | PPSPerdOfPerfStartDate | PeROP Start Date | ||
| PPSPerdOfPerfEndDate | PPSPerdOfPerfEndDate | PeROP End Date | ||
| PPSSmartNumberItem | PPSSmartNumberItem | Smart Number | ||
| PPSSmartNumberItemIsManual | PPSSmartNumberItemIsManual | Manual Smart Number | ||
| PPSDeliveryToleranceKey | PPSDeliveryToleranceKey | Tolerance Key | ||
| IsDeleted | IsDeleted | Deleted | ||
| PPSPurContractItemIsBlocked | PPSPurContractItemIsBlocked | Blocked | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsClassificationNamelocalized | ||||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IsToBeAcceptedAtOrigin | IsToBeAcceptedAtOrigin | Origin Accept. | ||
| virtualUICT_HideAcceptAtOriginboolean | ||||
| PurchasingParentItem | PurchasingParentItem | Parent Item No | ||
| IsOutline | IsOutline | Item Set | ||
| PurgExternalSortNumber | PurgExternalSortNumber | External Sort No. | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingHierarchyNode | PurchasingHierarchyNode | Hier.node | ||
| HierarchyParentNode | HierarchyParentNode | Hier.node | ||
| HierarchyLevel | HierarchyLevel | Hierarchy Level | ||
| HierarchyNodeSubTreeSize | HierarchyNodeSubTreeSize | Descendant Count | ||
| HierarchyDrillState | HierarchyDrillState | Drill State | ||
| HierarchyNodeOrdinalNumber | HierarchyNodeOrdinalNumber | Node Number | ||
| PurContrConsumptionUnit | PurContrConsumptionUnit | Base Unit |
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_PPS_PurContractItemHierTP_2.
-- 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 C_PPS_PurContractItemHierTP_2 AS
SELECT
PurchaseContract,
PurchaseContractItem,
PurchaseContractItemUniqueID,
PurgConfigurableItemNumber,
CompanyCode,
Material,
ManufacturerMaterial,
_MaterialText[1:Language = $session.system_language].MaterialName AS MaterialName,
PPSPricingArrangementType,
PurchaseContractItemText,
ContractNetPriceAmount,
NetPriceQuantity,
OrderPriceUnit,
VolumeUnit,
OrderQuantityUnit,
MaterialGroup,
_MaterialGroupText[1: Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
Customer,
Subcontractor,
ReferenceDeliveryAddressID,
DeliveryAddressID,
Plant,
_Plant.PlantName AS PlantName,
StorageLocation,
_StorageLocation.StorageLocationName AS StorageLocationName,
AccountAssignmentCategory,
_AcctAssgmtCategoryText.AcctAssignmentCategoryName : localized AS AcctAssignmentCategoryNamelocalized,
GoodsReceiptIsExpected,
ActivePurchasingDocument,
cast( PPS_PurchaseContractItem.TargetSAPObjectNodeType as pps_e_sap_obj_nde_type preserving type ) AS TargetSAPObjectNodeType,
MultipleAcctAssgmtDistribution,
_MultipleAcctAssgmtDistrText[1:Language = $session.system_language].MultipleAcctAssgmtDistrName AS MultipleAcctAssgmtDistrName,
virtual AcctAssgmtUndistributedQty : menge_d AS virtualAcctAssgmtUndistributedQtymenge_d,
virtual AcctAssgmtUndistributedAmt : bwert AS virtualAcctAssgmtUndistributedAmtbwert,
virtual AcctAssgmtUndistributedPct : vproz AS virtualAcctAssgmtUndistributedPctvproz,
virtual UICT_AcctAssgmtUndistriQty : boolean AS virtualUICT_AcctAssgmtUndistriQtyboolean,
virtual UICT_AcctAssgmtUndistriAmt : boolean AS virtualUICT_AcctAssgmtUndistriAmtboolean,
virtual UICT_AcctAssgmtUndistriPct : boolean AS virtualUICT_AcctAssgmtUndistriPctboolean,
virtual UICT_PricingIsHidden : boolean AS virtualUICT_PricingIsHiddenboolean,
virtual UICT_PACeilingAmount : boolean AS virtualUICT_PACeilingAmountboolean,
virtual UICT_PAMaximumFees : boolean AS virtualUICT_PAMaximumFeesboolean,
virtual UICT_PAMinimumFees : boolean AS virtualUICT_PAMinimumFeesboolean,
virtual UICT_PAGovtShareAbove : boolean AS virtualUICT_PAGovtShareAboveboolean,
virtual UICT_PAGovtShareBelow : boolean AS virtualUICT_PAGovtShareBelowboolean,
virtual UICT_PAVALUESISNOTENABLED : boolean AS virtualUICT_PAVALUESISNOTENABLEDboolean,
virtual UICT_PASHARESISNOTENABLED : boolean AS virtualUICT_PASHARESISNOTENABLEDboolean,
virtual UICT_HideMaterial : boolean AS virtualUICT_HideMaterialboolean,
virtual UICT_DOCheckbox : boolean AS virtualUICT_DOCheckboxboolean,
TargetQuantity,
TargetAmount,
DocumentCurrency,
OrdPriceUnitToOrderUnitDnmntr,
OrderPriceUnitToOrderUnitNmrtr,
PurchasingDocumentItemCategory,
PurgDocExternalItemCategory,
_PurgDocumentItemCategoryText.PurgDocItemCategoryName AS PurgDocItemCategoryName,
SupplierMaterialNumber,
EvaldRcptSettlmtIsAllowed,
UnderdelivTolrtdLmtRatioInPct,
PriceIsToBePrinted,
SupplierConfirmationControlKey,
OverdelivTolrtdLmtRatioInPct,
UnlimitedOverdeliveryIsAllowed,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
PurgDocPriceDate,
PurchasingInfoRecordUpdateCode,
PurgDocReleaseOrderQuantity,
PurgDocOrderAcknNumber,
PurchasingPriceIsEstimated,
IsInfoAtRegistration,
NoDaysReminder1,
NoDaysReminder2,
NoDaysReminder3,
TaxCode,
_TaxCodeText[ 1: Language = $session.system_language ].TaxCodeName AS TaxCodeName,
TaxCalculationProcedure,
TaxCountry,
TaxDeterminationDate,
RequirementTracking,
IsOrderAcknRqd,
ShippingInstruction,
GoodsReceiptIsNonValuated,
ServicePerformer,
_ServicePerformer.BusinessPartnerName AS ServicePerformerName,
ProductTypeCode,
_ProductTypeCodeText.Name AS ProductTypeName,
MaterialType,
PurchaseContractItemFormatted,
PurchasingContractDeletionCode,
PurchaseRequisition,
PurchaseRequisitionItem,
PartialInvoiceDistribution,
_PartialInvoiceIndicator.PartialInvoiceDistributionName AS PartialInvoiceDistributionName,
ManufacturerPartNmbr,
Manufacturer,
PurchasingCategory,
_PurchasingCategoryMatlGroup._PurchasingCategory.PurgCatName AS PurgCatName,
PurchaseContractType,
PurchasingOrganization,
PurchasingGroup,
PurgProdCmplncSupplierStatus,
PurchasingIsCatalogRelevant,
LastChangeDateTime,
PlannedDeliveryDurationInDays,
PPSPerdOfPerfStartDate,
PPSPerdOfPerfEndDate,
PPSSmartNumberItem,
PPSSmartNumberItemIsManual,
PPSDeliveryToleranceKey,
IsDeleted,
PPSPurContractItemIsBlocked,
IncotermsClassification,
_IncotermsClassificationText.IncotermsClassificationName : localized AS IncotermsClassificationNamelocalized,
IncotermsLocation1,
IsToBeAcceptedAtOrigin,
virtual UICT_HideAcceptAtOrigin : boolean AS virtualUICT_HideAcceptAtOriginboolean,
PurchasingParentItem,
IsOutline,
PurgExternalSortNumber,
PurchasingDocumentCategory,
PurchasingHierarchyNode,
HierarchyParentNode,
HierarchyLevel,
HierarchyNodeSubTreeSize,
HierarchyDrillState,
HierarchyNodeOrdinalNumber,
PurContrConsumptionUnit
FROM R_PPS_PurchaseContractItemTP
LEFT OUTER JOIN C_PPS_PurgDocTolKeyQuickView AS _ToleranceKey ON PPSDeliveryToleranceKey = _ToleranceKey.PPSDeliveryToleranceKey -- association [0..1]
LEFT OUTER JOIN C_PPS_PurContrDocHistoryC AS _DocHistory ON ActivePurchasingDocument = _DocHistory.PurchaseContract AND PurchaseContractItem = _DocHistory.PurchaseContractItem -- association [0..*]
;
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