I_CntrlPurContrWthPriceHist

DDL: I_CNTRLPURCONTRWTHPRICEHIST SQL: ICNTRTPRICHST Type: view BASIC Package: ODATA_MM_PUR_CCTR_ANALYTICS

Central Contracts Price data

I_CntrlPurContrWthPriceHist is a Basic CDS View that provides data about "Central Contracts Price data" in SAP S/4HANA. It reads from 1 data source (mmpur_ana_cenctr) and exposes 46 fields with key fields ActivePurchasingDocument, PurchasingDocumentVersion, CentralPurchaseContractItem, ProcmtHubPlantUniqueID, ProcmtHubContrValidityUUID. It has 9 associations to related views. Part of development package ODATA_MM_PUR_CCTR_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
mmpur_ana_cenctr mmpur_ana_cenctr from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_Product _Material $projection.Material = _Material.Product
[1..1] I_ProductGroup_2 _MaterialGroup $projection.MaterialGroup = _MaterialGroup.ProductGroup
[1..1] I_Currency _AnalyticalReportingCurrency $projection.AnalyticalReportingCurrency = _AnalyticalReportingCurrency.Currency
[1..1] I_Currency _AnalyticalReportingCurrency2 $projection.AnalyticalReportingCurrency2 = _AnalyticalReportingCurrency2.Currency
[1..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICNTRTPRICHST view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.preserveKey true view
EndUserText.label Central Contracts Price data view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY ActivePurchasingDocument Active Purchase Doc
KEY PurchasingDocumentVersion document_version Version
KEY CentralPurchaseContractItem Task ID
KEY ProcmtHubPlantUniqueID plant_unique_id Plant Unique ID
KEY ProcmtHubContrValidityUUID validity_uuid Validity ID
KEY ProcmtHubContrIsCurrentVersion is_current_version True
CentralPurchaseContract document_number SD Document
PurchaseContractType contract_type Document Type
ConditionValidityStartDate price_validity_start_date Valid From
ConditionValidityEndDate price_validity_end_date Valid To
NetPriceAmount net_price_doc_curr NET PRICE
NetPriceInReportingCurrency net_price_rep_currency1 NET PRICE
NetPriceInReportingCurrency2 net_price_rep_currency2 NET PRICE
NetAmount effective_price_doc_curr Effective value
NetAmountInReportingCurrency effective_price_rep_curr1 NET PRICE
NetAmountInReportingCurrency2 effective_price_rep_curr2 NET PRICE
ProcmtHubContrBasePrDocCrcyAmt base_price_doc_curr NET PRICE
ProcmtHubContrBasePrCrcy1Amt base_price_rep_currency1 NET PRICE
ProcmtHubContrBasePrCrcy2Amt base_price_rep_currency2 NET PRICE
DocumentCurrency document_currency Currency
AnalyticalReportingCurrency reporting_currency1 Reporting Currency 1
AnalyticalReportingCurrency2 reporting_currency2 Reporting Currency 2
CreationDate version_creation_date Date
Supplier supplier Supplier
CompanyCode company_code Company Code
PurchasingGroup purchasing_group Purch. Group
PurchasingOrganization purchasing_org Purchasing Org.
Material extmaterialforpurg Material
MaterialGroup material_group Material Group
ChangeReasonIsRelevantForVers change_reason_indicator TRUE
OrderQuantityUnit unit_of_measure Unit of Measure
CreatedByUser changed_by User Name
ProcmtHubIncotermsClassfctn incoterms1 Incoterms
ProcmtHubIncoterms2Classfctn incoterms2 Incoterms 2
PaymentTerms payment_terms Terms of Paymnt
ShippingCondition shipping_instructions Shipping Conditions
ProcmtHubCompanyCodeGroupingID company_code_group Grouping ID
_AnalyticalReportingCurrency _AnalyticalReportingCurrency
_AnalyticalReportingCurrency2 _AnalyticalReportingCurrency2
_Supplier _Supplier
_CompanyCode _CompanyCode
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization
_MaterialGroup _MaterialGroup
_Material _Material
_DocumentCurrency _DocumentCurrency

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_CntrlPurContrWthPriceHist.
-- 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: ICNTRTPRICHST

CREATE VIEW I_CntrlPurContrWthPriceHist AS
SELECT
  cast (active_doc_number as vdm_centralpurchasecontract preserving type) AS ActivePurchasingDocument,
  document_version AS PurchasingDocumentVersion,
  cast (item as vdm_cntrlpurchasecontractitem preserving type) AS CentralPurchaseContractItem,
  plant_unique_id AS ProcmtHubPlantUniqueID,
  validity_uuid AS ProcmtHubContrValidityUUID,
  is_current_version AS ProcmtHubContrIsCurrentVersion,
  document_number AS CentralPurchaseContract,
  contract_type AS PurchaseContractType,
  price_validity_start_date AS ConditionValidityStartDate,
  price_validity_end_date AS ConditionValidityEndDate,
  net_price_doc_curr AS NetPriceAmount,
  net_price_rep_currency1 AS NetPriceInReportingCurrency,
  net_price_rep_currency2 AS NetPriceInReportingCurrency2,
  effective_price_doc_curr AS NetAmount,
  effective_price_rep_curr1 AS NetAmountInReportingCurrency,
  effective_price_rep_curr2 AS NetAmountInReportingCurrency2,
  base_price_doc_curr AS ProcmtHubContrBasePrDocCrcyAmt,
  base_price_rep_currency1 AS ProcmtHubContrBasePrCrcy1Amt,
  base_price_rep_currency2 AS ProcmtHubContrBasePrCrcy2Amt,
  document_currency AS DocumentCurrency,
  reporting_currency1 AS AnalyticalReportingCurrency,
  reporting_currency2 AS AnalyticalReportingCurrency2,
  version_creation_date AS CreationDate,
  Supplier,
  company_code AS CompanyCode,
  purchasing_group AS PurchasingGroup,
  purchasing_org AS PurchasingOrganization,
  extmaterialforpurg AS Material,
  material_group AS MaterialGroup,
  change_reason_indicator AS ChangeReasonIsRelevantForVers,
  unit_of_measure AS OrderQuantityUnit,
  changed_by AS CreatedByUser,
  incoterms1 AS ProcmtHubIncotermsClassfctn,
  incoterms2 AS ProcmtHubIncoterms2Classfctn,
  payment_terms AS PaymentTerms,
  shipping_instructions AS ShippingCondition,
  company_code_group AS ProcmtHubCompanyCodeGroupingID
FROM mmpur_ana_cenctr
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Material ON Material = _Material.Product  -- association [1..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _MaterialGroup ON MaterialGroup = _MaterialGroup.ProductGroup  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _AnalyticalReportingCurrency ON AnalyticalReportingCurrency = _AnalyticalReportingCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _AnalyticalReportingCurrency2 ON AnalyticalReportingCurrency2 = _AnalyticalReportingCurrency2.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency  -- association [1..1]
;