I_CentralPurchaseContract

DDL: I_CENTRALPURCHASECONTRACT SQL: ICNTRLPCON Type: view COMPOSITE

Central PC Basic Header View

I_CentralPurchaseContract is a Composite CDS View that provides data about "Central PC Basic Header View" in SAP S/4HANA. It reads from 1 data source (R_CentralPurchaseContract) and exposes 76 fields with key field CentralPurchaseContract. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_CentralPurchaseContract R_CentralPurchaseContract from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CntrlPurContrVersionHistory _CntrlPurContrVersionHistory $projection.CentralPurchaseContract = _CntrlPurContrVersionHistory.CentralPurchaseContract
[0..1] I_PurgDocVersionReasonValHelp _VersionReasonValHelp $projection.purchasingdocversionreasoncode = _VersionReasonValHelp.PurchasingDocVersionReasonCode
[1..1] I_CntrlPurContrValidityStatus _CntrlPurContrValidityStatus $projection.CentralPurchaseContract = _CntrlPurContrValidityStatus.CentralPurchaseContract and $projection.ActivePurchasingDocument = _CntrlPurContrValidityStatus.ActivePurchasingDocument

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICNTRLPCON view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Central PC Basic Header View view
VDM.viewType #COMPOSITE view
ObjectModel.compositionRoot true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey CentralPurchaseContract view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.entityChangeStateId LastChangeDateTime view
AccessControl.personalData.blocking #REQUIRED view

Fields (76)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
PurchaseContractType PurchaseContractType Order Type
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
LastChangeDateTime LastChangeDateTime Timestamp
CreationDate CreationDate Time Stamp
Supplier Supplier Supplier
PurchasingDocumentSubtype PurchasingDocumentSubtype Control
CompanyCode CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
DocumentCurrency DocumentCurrency Document Currency
Currency Currency Valuation Crcy
IncotermsClassification IncotermsClassification Incoterms
IncotermsTransferLocation IncotermsTransferLocation Incoterms 2
PaymentTerms PaymentTerms Pyt Terms
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
NetPaymentDays NetPaymentDays Net Pmt Terms Period
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
PurchaseContractTargetAmount PurchaseContractTargetAmount Target Value
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
ReleaseCode ReleaseCode Release ind.
CreatedByUser CreatedByUser User Name
PurchasingDocumentDeletionCode PurchasingDocumentDeletionCode Del. Indicator
SupplyingSupplier SupplyingSupplier Goods Supplier
InvoicingParty InvoicingParty Supplier
ExchangeRate ExchangeRate Exchange rate
ExchangeRateIsFixed ExchangeRateIsFixed Fixed Exch.Rate
QuotationSubmissionDate QuotationSubmissionDate Quotation Date
SupplierQuotation SupplierQuotation RFQ
CorrespncExternalReference CorrespncExternalReference Your Reference
CorrespncInternalReference CorrespncInternalReference Our Reference
SupplierRespSalesPersonName SupplierRespSalesPersonName Salesperson
SupplierPhoneNumber SupplierPhoneNumber Telephone
IncotermsVersion IncotermsVersion Inco. Version
IncotermsLocation1 IncotermsLocation1 Inco. Location1
IncotermsLocation2 IncotermsLocation2 Inco. Location2
PurchasingDocumentName PurchasingDocumentName Purch. Doc. Name
ReleaseIsNotCompleted ReleaseIsNotCompleted Subj.to Release
PurchasingProcessingStatus PurchasingProcessingStatus Proc. State
PurgDocumentDistributionType PurgDocumentDistributionType
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
PurchasingParentDocument PurchasingParentDocument Parent Document ID
ProcmtHubCompanyCodeGroupingID ProcmtHubCompanyCodeGroupingID Grouping ID
ActivePurchasingDocument ActivePurchasingDocument Active Purchase Doc
PurgDocChangeRequestStatus PurgDocChangeRequestStatus Change Request Stat.
PurchasingDocumentVersion PurchasingDocumentVersion Version
PurchasingDocumentOrigin PurchasingDocumentOrigin Status
IsExtPurgScenario IsExtPurgScenario Is Central PR
PurgDocIsChgVers PurgDocIsChgVers Checkbox
CntrlPurContrDistributionSts
PurchasingDocVersionReasonCode _CntrlPurContrVersionHistory PurchasingDocVersionReasonCode Reason
_PurchasingDocumentCategory _PurchasingDocumentCategory
_PurchasingDocumentType _PurchasingDocumentType
_IncotermsClassification _IncotermsClassification
_IncotermsVersion _IncotermsVersion
_VersionReasonValHelp _VersionReasonValHelp
_Supplier _Supplier
_CompanyCode _CompanyCode
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_CreatedByUser _CreatedByUser
_DocumentCurrency _DocumentCurrency
_ReleaseCode _ReleaseCode
_SupplyingSupplier _SupplyingSupplier
_InvoicingParty _InvoicingParty
_PaymentTerms _PaymentTerms
_CntrlPurContrAggrgnDistrSts _CntrlPurContrAggrgnDistrSts
_PaymentTermsText _PaymentTermsText
_CntrlPurContrValidityStatus _CntrlPurContrValidityStatus
_VersionType _VersionType
_CntrlPurContrStatusText _CntrlPurContrStatusText
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_CntrlPurchaseContractItem _CntrlPurchaseContractItem

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_CentralPurchaseContract.
-- 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: ICNTRLPCON

CREATE VIEW I_CentralPurchaseContract AS
SELECT
  CentralPurchaseContract,
  PurchaseContractType,
  PurchasingDocumentCategory,
  LastChangeDateTime,
  CreationDate,
  Supplier,
  PurchasingDocumentSubtype,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  DocumentCurrency,
  Currency,
  IncotermsClassification,
  IncotermsTransferLocation,
  PaymentTerms,
  CashDiscount1Days,
  CashDiscount2Days,
  NetPaymentDays,
  CashDiscount1Percent,
  CashDiscount2Percent,
  PurchaseContractTargetAmount,
  ValidityStartDate,
  ValidityEndDate,
  ReleaseCode,
  CreatedByUser,
  PurchasingDocumentDeletionCode,
  SupplyingSupplier,
  InvoicingParty,
  ExchangeRate,
  ExchangeRateIsFixed,
  QuotationSubmissionDate,
  SupplierQuotation,
  CorrespncExternalReference,
  CorrespncInternalReference,
  SupplierRespSalesPersonName,
  SupplierPhoneNumber,
  IncotermsVersion,
  IncotermsLocation1,
  IncotermsLocation2,
  PurchasingDocumentName,
  ReleaseIsNotCompleted,
  PurchasingProcessingStatus,
  PurgDocumentDistributionType,
  IsEndOfPurposeBlocked,
  PurchasingParentDocument,
  ProcmtHubCompanyCodeGroupingID,
  ActivePurchasingDocument,
  PurgDocChangeRequestStatus,
  PurchasingDocumentVersion,
  PurchasingDocumentOrigin,
  IsExtPurgScenario,
  PurgDocIsChgVers,
  cast ( '' as me_distribution_status) AS CntrlPurContrDistributionSts,
  _CntrlPurContrVersionHistory.PurchasingDocVersionReasonCode AS PurchasingDocVersionReasonCode
FROM R_CentralPurchaseContract
LEFT OUTER JOIN I_CntrlPurContrVersionHistory AS _CntrlPurContrVersionHistory ON CentralPurchaseContract = _CntrlPurContrVersionHistory.CentralPurchaseContract  -- association [0..1]
LEFT OUTER JOIN I_PurgDocVersionReasonValHelp AS _VersionReasonValHelp ON purchasingdocversionreasoncode = _VersionReasonValHelp.PurchasingDocVersionReasonCode  -- association [0..1]
LEFT OUTER JOIN I_CntrlPurContrValidityStatus AS _CntrlPurContrValidityStatus ON CentralPurchaseContract = _CntrlPurContrValidityStatus.CentralPurchaseContract AND ActivePurchasingDocument = _CntrlPurContrValidityStatus.ActivePurchasingDocument  -- association [1..1]
;