P_PurchaseContract
P_PurchaseContract is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PurchaseContract) and exposes 64 fields with key field PurchaseContract.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseContract | Document | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPURCTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | I_PurchaseContract | PurchaseContract | Purchasing Doc. |
| PurchaseContractForEdit | I_PurchaseContract | PurchaseContract | Purchasing Doc. | |
| PurchaseContractType | I_PurchaseContract | PurchaseContractType | Order Type | |
| PurchasingDocumentCategory | I_PurchaseContract | PurchasingDocumentCategory | Doc. Category | |
| CreationDate | I_PurchaseContract | CreationDate | Time Stamp | |
| Supplier | I_PurchaseContract | Supplier | Supplier | |
| CompanyCode | I_PurchaseContract | CompanyCode | Receiver Company Code | |
| PurchasingOrganization | I_PurchaseContract | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_PurchaseContract | PurchasingGroup | Purchasing Group | |
| DocumentCurrency | I_PurchaseContract | DocumentCurrency | Document Currency | |
| IncotermsClassification | I_PurchaseContract | IncotermsClassification | Incoterms | |
| IncotermsTransferLocation | I_PurchaseContract | IncotermsTransferLocation | Incoterms 2 | |
| PaymentTerms | I_PurchaseContract | PaymentTerms | Pyt Terms | |
| CashDiscount1Days | I_PurchaseContract | CashDiscount1Days | Days from Baseline Date for Payment | |
| CashDiscount2Days | I_PurchaseContract | CashDiscount2Days | Days from Baseline Date for Payment | |
| NetPaymentDays | I_PurchaseContract | NetPaymentDays | Net Pmt Terms Period | |
| CashDiscount1Percent | I_PurchaseContract | CashDiscount1Percent | Disc. Percent 1 | |
| CashDiscount2Percent | I_PurchaseContract | CashDiscount2Percent | Disc. Percent 2 | |
| PurchaseContractTargetAmount | I_PurchaseContract | PurchaseContractTargetAmount | Target Value | |
| ValidityStartDate | I_PurchaseContract | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | I_PurchaseContract | ValidityEndDate | ValidTo | |
| ReleaseCode | I_PurchaseContract | ReleaseCode | Release ind. | |
| CreatedByUser | I_PurchaseContract | CreatedByUser | User Name | |
| PurchasingDocumentDeletionCode | I_PurchaseContract | PurchasingDocumentDeletionCode | Del. Indicator | |
| SupplierAddressID | I_PurchaseContract | SupplierAddressID | Address Number | |
| SupplyingSupplier | I_PurchaseContract | SupplyingSupplier | Goods Supplier | |
| InvoicingParty | I_PurchaseContract | InvoicingParty | Supplier | |
| ExchangeRate | I_PurchaseContract | ExchangeRate | Exchange rate | |
| ExchangeRateIsFixed | I_PurchaseContract | ExchangeRateIsFixed | Fixed Exch.Rate | |
| QuotationSubmissionDate | I_PurchaseContract | QuotationSubmissionDate | Quotation Date | |
| SupplierQuotation | I_PurchaseContract | SupplierQuotation | RFQ | |
| ReleaseIsNotCompleted | I_PurchaseContract | ReleaseIsNotCompleted | Subj.to Release | |
| CorrespncExternalReference | I_PurchaseContract | CorrespncExternalReference | Your Reference | |
| CorrespncInternalReference | I_PurchaseContract | CorrespncInternalReference | Our Reference | |
| SupplierRespSalesPersonName | I_PurchaseContract | SupplierRespSalesPersonName | Salesperson | |
| SupplierPhoneNumber | I_PurchaseContract | SupplierPhoneNumber | Telephone | |
| IncotermsVersion | I_PurchaseContract | IncotermsVersion | Inco. Version | |
| IncotermsLocation1 | I_PurchaseContract | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | I_PurchaseContract | IncotermsLocation2 | Inco. Location2 | |
| IncotermsSupChnLoc1AddlUUID | I_PurchaseContract | IncotermsSupChnLoc1AddlUUID | Location UUID | |
| IncotermsSupChnLoc2AddlUUID | I_PurchaseContract | IncotermsSupChnLoc2AddlUUID | Location UUID | |
| IncotermsSupChnDvtgLocAddlUUID | I_PurchaseContract | IncotermsSupChnDvtgLocAddlUUID | Location UUID | |
| PurchasingDocumentName | I_PurchaseContract | PurchasingDocumentName | Purch. Doc. Name | |
| PurchasingDocumentOrigin | I_PurchaseContract | PurchasingDocumentOrigin | Status | |
| LastChangeDateTime | I_PurchaseContract | LastChangeDateTime | Timestamp | |
| PurchasingProcessingStatus | I_PurchaseContract | PurchasingProcessingStatus | Proc. State | |
| IsEndOfPurposeBlocked | I_PurchaseContract | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| IsActiveEntity | ||||
| PurgAggrgdProdCmplncSuplrSts | I_PurchaseContract | PurgAggrgdProdCmplncSuplrSts | Supplier Check Sts | |
| PurgAggrgdProdMarketabilitySts | I_PurchaseContract | PurgAggrgdProdMarketabilitySts | Prod. Marktablty Sts | |
| PurgAggrgdSftyDataSheetStatus | I_PurchaseContract | PurgAggrgdSftyDataSheetStatus | Sfty Data Sheet Sts | |
| PurgProdCmplncTotDngrsGoodsSts | I_PurchaseContract | PurgProdCmplncTotDngrsGoodsSts | Dangerous Goods Sts | |
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _IncotermsClassification | _IncotermsClassification | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _CreatedByUser | _CreatedByUser | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _ReleaseCode | _ReleaseCode | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PaymentTerms | _PaymentTerms |
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 P_PurchaseContract.
-- 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: PPURCTR
CREATE VIEW P_PurchaseContract AS
SELECT
Document.PurchaseContract AS PurchaseContract,
Document.PurchaseContract AS PurchaseContractForEdit,
Document.PurchaseContractType AS PurchaseContractType,
Document.PurchasingDocumentCategory AS PurchasingDocumentCategory,
Document.CreationDate AS CreationDate,
Document.Supplier AS Supplier,
Document.CompanyCode AS CompanyCode,
Document.PurchasingOrganization AS PurchasingOrganization,
Document.PurchasingGroup AS PurchasingGroup,
Document.DocumentCurrency AS DocumentCurrency,
Document.IncotermsClassification AS IncotermsClassification,
Document.IncotermsTransferLocation AS IncotermsTransferLocation,
Document.PaymentTerms AS PaymentTerms,
Document.CashDiscount1Days AS CashDiscount1Days,
Document.CashDiscount2Days AS CashDiscount2Days,
Document.NetPaymentDays AS NetPaymentDays,
Document.CashDiscount1Percent AS CashDiscount1Percent,
Document.CashDiscount2Percent AS CashDiscount2Percent,
Document.PurchaseContractTargetAmount AS PurchaseContractTargetAmount,
Document.ValidityStartDate AS ValidityStartDate,
Document.ValidityEndDate AS ValidityEndDate,
Document.ReleaseCode AS ReleaseCode,
Document.CreatedByUser AS CreatedByUser,
Document.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
Document.SupplierAddressID AS SupplierAddressID,
Document.SupplyingSupplier AS SupplyingSupplier,
Document.InvoicingParty AS InvoicingParty,
Document.ExchangeRate AS ExchangeRate,
Document.ExchangeRateIsFixed AS ExchangeRateIsFixed,
Document.QuotationSubmissionDate AS QuotationSubmissionDate,
Document.SupplierQuotation AS SupplierQuotation,
Document.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
Document.CorrespncExternalReference AS CorrespncExternalReference,
Document.CorrespncInternalReference AS CorrespncInternalReference,
Document.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
Document.SupplierPhoneNumber AS SupplierPhoneNumber,
Document.IncotermsVersion AS IncotermsVersion,
Document.IncotermsLocation1 AS IncotermsLocation1,
Document.IncotermsLocation2 AS IncotermsLocation2,
Document.IncotermsSupChnLoc1AddlUUID AS IncotermsSupChnLoc1AddlUUID,
Document.IncotermsSupChnLoc2AddlUUID AS IncotermsSupChnLoc2AddlUUID,
Document.IncotermsSupChnDvtgLocAddlUUID AS IncotermsSupChnDvtgLocAddlUUID,
Document.PurchasingDocumentName AS PurchasingDocumentName,
Document.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
Document.LastChangeDateTime AS LastChangeDateTime,
Document.PurchasingProcessingStatus AS PurchasingProcessingStatus,
Document.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
cast('X' as sdraft_is_active preserving type ) AS IsActiveEntity,
Document.PurgAggrgdProdCmplncSuplrSts AS PurgAggrgdProdCmplncSuplrSts,
Document.PurgAggrgdProdMarketabilitySts AS PurgAggrgdProdMarketabilitySts,
Document.PurgAggrgdSftyDataSheetStatus AS PurgAggrgdSftyDataSheetStatus,
Document.PurgProdCmplncTotDngrsGoodsSts AS PurgProdCmplncTotDngrsGoodsSts
FROM I_PurchaseContract AS Document
;
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