A_PurchaseContractItem
Item
A_PurchaseContractItem is a Composite CDS View that provides data about "Item" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContractItem) and exposes 62 fields with key fields PurchaseContract, PurchaseContractItem. It has 6 associations to related views. Part of development package ODATA_MM_PUR_CON_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseContractItem | I_PurchaseContractItem | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | A_PurchaseContract | _PurchaseContract | $projection.PurchaseContract = _PurchaseContract.PurchaseContract |
| [0..*] | A_PurCtrAccount | _PurCtrAccount | $projection.PurchaseContract = _PurCtrAccount.PurchaseContract and $projection.PurchaseContractItem = _PurCtrAccount.PurchaseContractItem |
| [1..*] | A_PurContrItemCondition | _PurContrItemCondition | $projection.PurchaseContract = _PurContrItemCondition.PurchaseContract and $projection.PurchaseContractItem = _PurContrItemCondition.PurchaseContractItem |
| [1..*] | A_PurCtrAddress | _PurCtrAddress | $projection.PurchaseContractItem = _PurCtrAddress.PurchaseContractItem and $projection.PurchaseContract = _PurCtrAddress.PurchaseContract ----Extension |
| [0..1] | E_PurchasingDocumentItem | _PurchaseContractItemExtension | $projection.PurchaseContract = _PurchaseContractItemExtension.PurchasingDocument and $projection.PurchaseContractItem = _PurchaseContractItemExtension.PurchasingDocumentItem |
| [1..*] | A_ValAddedSrvcMM | _ValueAddedService | $projection.PurchaseContract = _ValueAddedService.ValAddedSrvcMMRefDocNmbr and $projection.PurchaseContractItem = _ValueAddedService.ValAddedSrvcMMRefDocItem |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | APURCHASECTRITM | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Item | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | PurchaseContractItem | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | false | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | PurchaseContract | Purchasing Doc. | |
| KEY | PurchaseContractItem | PurchaseContractItem | Item | |
| PurchasingContractDeletionCode | PurchasingContractDeletionCode | Del. Indicator | ||
| PurchaseContractItemText | PurchaseContractItemText | Short Text | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| SupplierMaterialNumber | SupplierMaterialNumber | Supp. Mat. No. | ||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| TargetQuantity | TargetQuantity | Target Quantity | ||
| PurgDocReleaseOrderQuantity | PurgDocReleaseOrderQuantity | Rel. order qty. | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | ||
| ContractNetPriceAmount | ContractNetPriceAmount | Net Price | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxCountry | TaxCountry | Tax Ctry/Reg. | ||
| TaxDeterminationDate | TaxDeterminationDate | Tx Determination Dte | ||
| StockType | StockType | Stock Type | ||
| IsInfoRecordUpdated | IsInfoRecordUpdated | InfoUpdate | ||
| PriceIsToBePrinted | PriceIsToBePrinted | Print Price | ||
| PurgDocEstimatedPrice | PurgDocEstimatedPrice | Estimated Price | ||
| NoDaysReminder1 | NoDaysReminder1 | 1st Rem./Exped. | ||
| NoDaysReminder2 | NoDaysReminder2 | 2nd Rem./Exped. | ||
| NoDaysReminder3 | NoDaysReminder3 | 3rd Rem./Exped. | ||
| PlannedDeliveryDurationInDays | PlannedDeliveryDurationInDays | Plnd dely time | ||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | ||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | ||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| MultipleAcctAssgmtDistribution | MultipleAcctAssgmtDistribution | Distribution | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| GoodsReceiptIsNonValuated | GoodsReceiptIsNonValuated | GR Non-Valuated | ||
| InvoiceIsExpected | InvoiceIsExpected | Invoice Receipt | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | GR-Based IV | ||
| IsOrderAcknRqd | IsOrderAcknRqd | Acknowl. Reqd. | ||
| PurgDocOrderAcknNumber | PurgDocOrderAcknNumber | Order Acknowl. | ||
| ShippingInstruction | ShippingInstruction | Shipping Instr. | ||
| ManualDeliveryAddressID | ManualDeliveryAddressID | Address Number | ||
| VolumeUnit | VolumeUnit | Volume Unit | ||
| Subcontractor | Subcontractor | Supplier | ||
| EvaldRcptSettlmtIsAllowed | EvaldRcptSettlmtIsAllowed | ERS | ||
| Material | Material | Vehicle Model | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| ProductType | ProductType | Product Type Group | ||
| MaterialType | MaterialType | Material Type | ||
| PurContractItmReplnmtElmntType | PurContractItmReplnmtElmntType | Kanban Indicat. | ||
| FormattedPurchaseContractItem | FormattedPurchaseContractItem | Char15 | ||
| PurchasingParentItem | PurchasingParentItem | Parent Item No | ||
| IsOutline | IsStatisticalItem | Statisticl.Indicator | ||
| PurgConfigurableItemNumber | PurgConfigurableItemNumber | Hierarchy Number | ||
| PurgDocExtRefSiblingSortNumber | PurgExternalSortNumber | External Sort No. | ||
| _PurchaseContract | _PurchaseContract | |||
| _PurCtrAccount | _PurCtrAccount | |||
| _PurCtrAddress | _PurCtrAddress | |||
| _PurContrItemCondition | _PurContrItemCondition | |||
| _ValueAddedService | _ValueAddedService |
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 A_PurchaseContractItem.
-- 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: APURCHASECTRITM
CREATE VIEW A_PurchaseContractItem AS
SELECT
PurchaseContract,
PurchaseContractItem,
PurchasingContractDeletionCode,
PurchaseContractItemText,
CompanyCode,
Plant,
StorageLocation,
RequirementTracking,
MaterialGroup,
SupplierMaterialNumber,
OrderQuantityUnit,
TargetQuantity,
PurgDocReleaseOrderQuantity,
OrderPriceUnit,
OrderPriceUnitToOrderUnitNmrtr,
OrdPriceUnitToOrderUnitDnmntr,
ContractNetPriceAmount,
DocumentCurrency,
NetPriceQuantity,
TaxCode,
TaxCountry,
TaxDeterminationDate,
StockType,
IsInfoRecordUpdated,
PriceIsToBePrinted,
PurgDocEstimatedPrice,
NoDaysReminder1,
NoDaysReminder2,
NoDaysReminder3,
PlannedDeliveryDurationInDays,
OverdelivTolrtdLmtRatioInPct,
UnlimitedOverdeliveryIsAllowed,
UnderdelivTolrtdLmtRatioInPct,
PurchasingDocumentItemCategory,
AccountAssignmentCategory,
MultipleAcctAssgmtDistribution,
GoodsReceiptIsExpected,
GoodsReceiptIsNonValuated,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
IsOrderAcknRqd,
PurgDocOrderAcknNumber,
ShippingInstruction,
ManualDeliveryAddressID,
VolumeUnit,
Subcontractor,
EvaldRcptSettlmtIsAllowed,
Material,
ServicePerformer,
ProductType,
MaterialType,
PurContractItmReplnmtElmntType,
FormattedPurchaseContractItem,
PurchasingParentItem,
IsStatisticalItem AS IsOutline,
PurgConfigurableItemNumber,
PurgExternalSortNumber AS PurgDocExtRefSiblingSortNumber
FROM I_PurchaseContractItem
LEFT OUTER JOIN A_PurchaseContract AS _PurchaseContract ON PurchaseContract = _PurchaseContract.PurchaseContract -- association [1..1]
LEFT OUTER JOIN A_PurCtrAccount AS _PurCtrAccount ON PurchaseContract = _PurCtrAccount.PurchaseContract AND PurchaseContractItem = _PurCtrAccount.PurchaseContractItem -- association [0..*]
LEFT OUTER JOIN A_PurContrItemCondition AS _PurContrItemCondition ON PurchaseContract = _PurContrItemCondition.PurchaseContract AND PurchaseContractItem = _PurContrItemCondition.PurchaseContractItem -- association [1..*]
LEFT OUTER JOIN A_PurCtrAddress AS _PurCtrAddress ON PurchaseContractItem = _PurCtrAddress.PurchaseContractItem AND PurchaseContract = _PurCtrAddress.PurchaseContract -- association [1..*]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _PurchaseContractItemExtension ON PurchaseContract = _PurchaseContractItemExtension.PurchasingDocument AND PurchaseContractItem = _PurchaseContractItemExtension.PurchasingDocumentItem -- association [0..1]
LEFT OUTER JOIN A_ValAddedSrvcMM AS _ValueAddedService ON PurchaseContract = _ValueAddedService.ValAddedSrvcMMRefDocNmbr AND PurchaseContractItem = _ValueAddedService.ValAddedSrvcMMRefDocItem -- association [1..*]
;
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