I_CentralPurchaseContractAPI01
Central Purchase Contract
I_CentralPurchaseContractAPI01 (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
I_CentralPurchaseContractAPI01 is a Composite CDS View that provides data about "Central Purchase Contract" in SAP S/4HANA. It reads from 1 data source (I_CentralPurchaseContract) and exposes 48 fields with key field CentralPurchaseContract. It has 2 associations to related views.
SAP Help Documentation
| Category | CDS Views for Central Purchase Contracts |
|---|---|
| Status | Released |
This CDS view provides general information about the central purchase contract. This CDS view provides the prerequisites for answering the following business questions: Who is the supplier for a particular central purchase contract? What is the central purchasing organization, central purchasing group, and central company code associated with a central purchase contract? What are the payment terms and incoterms for a central purchase contract? What is the central purchase contract number? What is the central purchase contract type? When was the central purchase contract created? What is the period for which the central purchase contract is valid? What is the release status of the central purchase contract?
Prerequisites
You must have a role based on the SAP_BR_CENTRAL_PURCHASER business role template.
Structure
Object types This view relates to the following SAP object types: I_CentralPurchaseContractAPI01 Measures and attributes Some important measures and attributes are: Central Purchase Contract Central Purchasing Organization Central Purchasing Group Release Code Central Company Code
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | MM-PUR-HUB-CTR |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides general information about the central purchase contract.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Who is the supplier for a particular central purchase contract?</p></li> <li><p>What is the central purchasing organization, central purchasing group, and central company code associated with a central purchase contract?</p></li> <li><p>What are the payment terms and incoterms for a central purchase contract?</p></li> <li><p>What is the central purchase contract number? </p></li> <li><p>What is the central purchase contract type?</p></li> <li><p>When was the central purchase contract created?</p></li> <li><p>What is the period for which the central purchase contract is valid?</p></li> <li><p>What is the release status of the central purchase contract?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CentralPurchaseContract | I_CentralPurchaseContract | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_CntrlPurContractItemAPI01 | _CentralPurchaseContractItem | $projection.CentralPurchaseContract = _CentralPurchaseContractItem.CentralPurchaseContract |
| [1..*] | I_ExtendedPurgDocDistrMessages | _CntrlPurContrDistrMessages | $projection.CentralPurchaseContract = _CntrlPurContrDistrMessages.PurchasingDocument |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICNTRLPCTRHAPI01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Central Purchase Contract | view | |
| AbapCatalog.preserveKey | true | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CentralPurchaseContract | CentralPurchaseContract | Central Purchase Contract | |
| PurchaseContractType | PurchaseContractType | Purchasing Document Type | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Purchasing Document Category | ||
| Supplier | Supplier | Supplier | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| ValidityStartDate | ValidityStartDate | Start of Validity Period | ||
| ValidityEndDate | ValidityEndDate | End of Validity Period | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| LastChangeDateTime | LastChangeDateTime | Change Time Stamp | ||
| CreationDate | CreationDate | Creation Date of Purchasing Document | ||
| PaymentTerms | PaymentTerms | Terms of Payment Key | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| CashDiscount1Percent | CashDiscount1Percent | Cash Discount Percentage 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Cash Discount Percentage 2 | ||
| NetPaymentDays | NetPaymentDays | Net Payment Terms Period | ||
| IncotermsClassification | IncotermsClassification | Incoterms (Part 1) | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms (Part 2) | ||
| IncotermsVersion | IncotermsVersion | Incoterms Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Incoterms Location 1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Incoterms Location 2 | ||
| PurchaseContractTargetAmount | PurchaseContractTargetAmount | Target Value for Header Area per Distribution | ||
| ExchangeRate | Exchange rate | |||
| PurContractExchangeRateValue | Exchange rate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Indicator for Fixed Exchange Rate | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| QuotationSubmissionDate | QuotationSubmissionDate | Quotation Submission Date | ||
| SupplierQuotation | SupplierQuotation | Quotation Number | ||
| CorrespncExternalReference | CorrespncExternalReference | Your Reference | ||
| CorrespncInternalReference | CorrespncInternalReference | Our Reference | ||
| SupplierRespSalesPersonName | SupplierRespSalesPersonName | Responsible Salesperson at Supplier's Office | ||
| SupplierPhoneNumber | SupplierPhoneNumber | Supplier's Phone Number | ||
| ReleaseCode | ReleaseCode | Release Indicator: Purchasing Document | ||
| CreatedByUser | CreatedByUser | User of person who created a purchasing document | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Deletion Indicator in Purchasing Document | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Purchasing Document Processing State | ||
| ActivePurchasingDocument | ActivePurchasingDocument | Active Purchasing Document | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Business Purpose Completed | ||
| PurgContractIsInPreparation | Boolean Variable (X = True, - = False, Space = Unknown) | |||
| PurchasingDocumentName | PurchasingDocumentName | Name of Purchasing Document | ||
| PurchasingDocumentSubtype | PurchasingDocumentSubtype | Control indicator for purchasing document type | ||
| CntrlPurContrDistributionSts | _CntrlPurContrAggrgnDistrSts | CntrlPurContrDistributionSts | ||
| CntrlPurContrFlxblDistrIsAllwd | CntrlPurContrFlxblDistrIsAllwd | Boolean Variable (X = True, - = False, Space = Unknown) | ||
| PurgDocIsChgVers | PurgDocIsChgVers | Checkbox | ||
| _CentralPurchaseContractItem | _CentralPurchaseContractItem | |||
| _CntrlPurContrDistrMessages | _CntrlPurContrDistrMessages |
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_CentralPurchaseContractAPI01.
-- 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: ICNTRLPCTRHAPI01
CREATE VIEW I_CentralPurchaseContractAPI01 AS
SELECT
CentralPurchaseContract,
PurchaseContractType,
PurchasingDocumentCategory,
Supplier,
CompanyCode,
PurchasingOrganization,
PurchasingGroup,
ValidityStartDate,
ValidityEndDate,
DocumentCurrency,
LastChangeDateTime,
CreationDate,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
CashDiscount1Percent,
CashDiscount2Percent,
NetPaymentDays,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
PurchaseContractTargetAmount,
cast (ExchangeRate as abap.char(12)) AS ExchangeRate,
cast (ExchangeRate as abap.char(12)) AS PurContractExchangeRateValue,
ExchangeRateIsFixed,
SupplyingSupplier,
QuotationSubmissionDate,
SupplierQuotation,
CorrespncExternalReference,
CorrespncInternalReference,
SupplierRespSalesPersonName,
SupplierPhoneNumber,
ReleaseCode,
CreatedByUser,
PurchasingDocumentDeletionCode,
PurchasingProcessingStatus,
ActivePurchasingDocument,
IsEndOfPurposeBlocked,
cast ('' as boolean) AS PurgContractIsInPreparation,
PurchasingDocumentName,
PurchasingDocumentSubtype,
_CntrlPurContrAggrgnDistrSts.CntrlPurContrDistributionSts AS CntrlPurContrDistributionSts,
CntrlPurContrFlxblDistrIsAllwd,
PurgDocIsChgVers
FROM I_CentralPurchaseContract
LEFT OUTER JOIN I_CntrlPurContractItemAPI01 AS _CentralPurchaseContractItem ON CentralPurchaseContract = _CentralPurchaseContractItem.CentralPurchaseContract -- association [1..*]
LEFT OUTER JOIN I_ExtendedPurgDocDistrMessages AS _CntrlPurContrDistrMessages ON CentralPurchaseContract = _CntrlPurContrDistrMessages.PurchasingDocument -- 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