P_PurContrRlvnceCalctWeight

DDL: P_PURCONTRRLVNCECALCTWEIGHT SQL: PCONRELWGT Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
P_ContrWeightConsumption P_ContrWeightConsumption from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PCONRELWGT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
WeightedRelevance
PurContrConsumedVal PurContrConsumedVal Consumed Value
PurchaseContractTargetAmount PurchaseContractTargetAmount Target Value
ContractConsumptionInPct ContractConsumptionInPct Consumption Pct
ActivePurchasingDocument ActivePurchasingDocument Active Purchase Doc

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_PurContrRlvnceCalctWeight.
-- 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: PCONRELWGT

CREATE VIEW P_PurContrRlvnceCalctWeight AS
SELECT
  PurchaseContract,
  WeightedRelevance * division (43,100,3) AS WeightedRelevance,
  PurContrConsumedVal,
  PurchaseContractTargetAmount,
  ContractConsumptionInPct,
  ActivePurchasingDocument
FROM P_ContrWeightConsumption
;