I_PurchaseContractAPI01

DDL: I_PURCHASECONTRACTAPI01 SQL: IPURCONTRAPI Type: view COMPOSITE Package: VDM_MM_PUR_CON

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

CategoryComposite
StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-OA-CON-2CL
CapabilitiesData 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
PackageSourcing 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

Data Sources (1)

SourceAliasJoin Type
I_PurchaseContract I_PurchaseContract from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_PurchasingDocument _HeaderExtension $projection.PurchaseContract = _HeaderExtension.PurchasingDocument

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;