I_PurchaseContractAPI01
Purchase Contract
I_PurchaseContractAPI01 (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
I_PurchaseContractAPI01 is a Composite CDS View that provides data about "Purchase Contract" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContract) and exposes 45 fields with key field PurchaseContract. It has 1 association to related views. Part of development package VDM_MM_PUR_CON.
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-OA-CON-2CL |
| Capabilities | Data Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Sourcing and Procurement for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view provides general information about the entire contract and also provides the prerequisites for answering the following business questions:</p> <ul><li><p>Who is the supplier for a particular contract?</p></li> <li><p>What is the purchasing organization, purchasing group, and company code associated with a contract?</p></li> <li><p>What are the payment terms and incoterms for a contract?</p></li> <li><p>What is the contract number? </p></li> <li><p>What is the contract type?</p></li> <li><p>When was the contract created?</p></li> <li><p>What is the period for which the contract is valid?</p></li> <li><p>Is the contract released for consumption or is it still blocked?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseContract | I_PurchaseContract | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_PurchasingDocument | _HeaderExtension | $projection.PurchaseContract = _HeaderExtension.PurchasingDocument |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPURCONTRAPI | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Purchase Contract | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | I_PurchaseContract | PurchaseContract | Purchasing Contract Header |
| PurchaseContractType | I_PurchaseContract | PurchaseContractType | Purchasing Document Type | |
| PurchasingDocumentCategory | I_PurchaseContract | PurchasingDocumentCategory | Purchasing Document Category | |
| LastChangeDateTime | I_PurchaseContract | LastChangeDateTime | Change Time Stamp | |
| CreationDate | I_PurchaseContract | CreationDate | Creation Date of Purchasing Document | |
| 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 (Part 1) | |
| IncotermsTransferLocation | I_PurchaseContract | IncotermsTransferLocation | Incoterms (Part 2) | |
| PaymentTerms | I_PurchaseContract | PaymentTerms | Terms of Payment Key | |
| 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 Payment Terms Period | |
| CashDiscount1Percent | I_PurchaseContract | CashDiscount1Percent | Cash Discount Percentage 1 | |
| CashDiscount2Percent | I_PurchaseContract | CashDiscount2Percent | Cash Discount Percentage 2 | |
| PurchaseContractTargetAmount | I_PurchaseContract | PurchaseContractTargetAmount | Target Value for Header Area per Distribution | |
| ValidityStartDate | I_PurchaseContract | ValidityStartDate | Start of Validity Period | |
| ValidityEndDate | I_PurchaseContract | ValidityEndDate | End of Validity Period | |
| ReleaseCode | I_PurchaseContract | ReleaseCode | Release Indicator: Purchasing Document | |
| CreatedByUser | I_PurchaseContract | CreatedByUser | User of person who created a purchasing document | |
| PurchasingDocumentDeletionCode | I_PurchaseContract | PurchasingDocumentDeletionCode | Deletion Indicator in Purchasing Document | |
| SupplyingSupplier | I_PurchaseContract | SupplyingSupplier | Goods Supplier | |
| InvoicingParty | I_PurchaseContract | InvoicingParty | Different Invoicing Party | |
| ExchangeRate | I_PurchaseContract | ExchangeRate | Exchange rate | |
| ExchangeRateIsFixed | I_PurchaseContract | ExchangeRateIsFixed | Indicator for Fixed Exchange Rate | |
| QuotationSubmissionDate | I_PurchaseContract | QuotationSubmissionDate | Quotation Submission Date | |
| SupplierQuotation | I_PurchaseContract | SupplierQuotation | Quotation Number | |
| CorrespncExternalReference | I_PurchaseContract | CorrespncExternalReference | Your Reference | |
| CorrespncInternalReference | I_PurchaseContract | CorrespncInternalReference | Our Reference | |
| SupplierRespSalesPersonName | I_PurchaseContract | SupplierRespSalesPersonName | Responsible Salesperson at Supplier's Office | |
| SupplierPhoneNumber | I_PurchaseContract | SupplierPhoneNumber | Supplier's Phone Number | |
| IncotermsVersion | I_PurchaseContract | IncotermsVersion | Incoterms Version | |
| IncotermsLocation1 | I_PurchaseContract | IncotermsLocation1 | Incoterms Location 1 | |
| IncotermsLocation2 | I_PurchaseContract | IncotermsLocation2 | Incoterms Location 2 | |
| ReleaseIsNotCompleted | I_PurchaseContract | ReleaseIsNotCompleted | Release Not Yet Completely Effected | |
| SupplierAddressID | I_PurchaseContract | SupplierAddressID | Address Number | |
| PurgDocExternalReference | I_PurchaseContract | PurgDocExternalReference | External Reference ID | |
| PurchasingDocumentName | I_PurchaseContract | PurchasingDocumentName | Name of Purchasing Document | |
| PurchasingDocumentOrigin | I_PurchaseContract | PurchasingDocumentOrigin | Status of Purchasing Document | |
| PurchasingProcessingStatus | I_PurchaseContract | PurchasingProcessingStatus | Purchasing Document Processing State | |
| PurgAggrgdProdCmplncSuplrSts | I_PurchaseContract | PurgAggrgdProdCmplncSuplrSts | Product Compliance Supplier Check Status (All Items) | |
| PurgHasCatalogRelevantItems | I_PurchaseContract | PurgHasCatalogRelevantItems | Indicator for Purchasing Document with Catalog Item(s) |
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 I_PurchaseContractAPI01.
-- 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: IPURCONTRAPI
CREATE VIEW I_PurchaseContractAPI01 AS
SELECT
I_PurchaseContract.PurchaseContract AS PurchaseContract,
I_PurchaseContract.PurchaseContractType AS PurchaseContractType,
I_PurchaseContract.PurchasingDocumentCategory AS PurchasingDocumentCategory,
I_PurchaseContract.LastChangeDateTime AS LastChangeDateTime,
I_PurchaseContract.CreationDate AS CreationDate,
I_PurchaseContract.Supplier AS Supplier,
I_PurchaseContract.CompanyCode AS CompanyCode,
I_PurchaseContract.PurchasingOrganization AS PurchasingOrganization,
I_PurchaseContract.PurchasingGroup AS PurchasingGroup,
I_PurchaseContract.DocumentCurrency AS DocumentCurrency,
I_PurchaseContract.IncotermsClassification AS IncotermsClassification,
I_PurchaseContract.IncotermsTransferLocation AS IncotermsTransferLocation,
I_PurchaseContract.PaymentTerms AS PaymentTerms,
I_PurchaseContract.CashDiscount1Days AS CashDiscount1Days,
I_PurchaseContract.CashDiscount2Days AS CashDiscount2Days,
I_PurchaseContract.NetPaymentDays AS NetPaymentDays,
I_PurchaseContract.CashDiscount1Percent AS CashDiscount1Percent,
I_PurchaseContract.CashDiscount2Percent AS CashDiscount2Percent,
I_PurchaseContract.PurchaseContractTargetAmount AS PurchaseContractTargetAmount,
I_PurchaseContract.ValidityStartDate AS ValidityStartDate,
I_PurchaseContract.ValidityEndDate AS ValidityEndDate,
I_PurchaseContract.ReleaseCode AS ReleaseCode,
I_PurchaseContract.CreatedByUser AS CreatedByUser,
I_PurchaseContract.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
I_PurchaseContract.SupplyingSupplier AS SupplyingSupplier,
I_PurchaseContract.InvoicingParty AS InvoicingParty,
I_PurchaseContract.ExchangeRate AS ExchangeRate,
I_PurchaseContract.ExchangeRateIsFixed AS ExchangeRateIsFixed,
I_PurchaseContract.QuotationSubmissionDate AS QuotationSubmissionDate,
I_PurchaseContract.SupplierQuotation AS SupplierQuotation,
I_PurchaseContract.CorrespncExternalReference AS CorrespncExternalReference,
I_PurchaseContract.CorrespncInternalReference AS CorrespncInternalReference,
I_PurchaseContract.SupplierRespSalesPersonName AS SupplierRespSalesPersonName,
I_PurchaseContract.SupplierPhoneNumber AS SupplierPhoneNumber,
I_PurchaseContract.IncotermsVersion AS IncotermsVersion,
I_PurchaseContract.IncotermsLocation1 AS IncotermsLocation1,
I_PurchaseContract.IncotermsLocation2 AS IncotermsLocation2,
I_PurchaseContract.ReleaseIsNotCompleted AS ReleaseIsNotCompleted,
I_PurchaseContract.SupplierAddressID AS SupplierAddressID,
I_PurchaseContract.PurgDocExternalReference AS PurgDocExternalReference,
I_PurchaseContract.PurchasingDocumentName AS PurchasingDocumentName,
I_PurchaseContract.PurchasingDocumentOrigin AS PurchasingDocumentOrigin,
I_PurchaseContract.PurchasingProcessingStatus AS PurchasingProcessingStatus,
I_PurchaseContract.PurgAggrgdProdCmplncSuplrSts AS PurgAggrgdProdCmplncSuplrSts,
I_PurchaseContract.PurgHasCatalogRelevantItems AS PurgHasCatalogRelevantItems
FROM I_PurchaseContract
LEFT OUTER JOIN E_PurchasingDocument AS _HeaderExtension ON PurchaseContract = _HeaderExtension.PurchasingDocument -- association [0..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