P_QtyContractPrediction

DDL: P_QTYCONTRACTPREDICTION SQL: PQTYCONTRPREDICT Type: view COMPOSITE

P_QtyContractPrediction is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_QuantityContractPrediction) and exposes 5 fields with key field PurchaseContract.

Data Sources (1)

SourceAliasJoin Type
I_QuantityContractPrediction I_QuantityContractPrediction from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PQTYCONTRPREDICT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
CompanyCode CompanyCode Receiver Company Code
ContractExpiryPredictedDate

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 P_QtyContractPrediction.
-- 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: PQTYCONTRPREDICT

CREATE VIEW P_QtyContractPrediction AS
SELECT
  PurchaseContract,
  PurchasingGroup,
  PurchasingOrganization,
  CompanyCode,
  min(ContractExpiryPredictedDate) AS ContractExpiryPredictedDate
FROM I_QuantityContractPrediction
;