P_POCountInQtyContract

DDL: P_POCOUNTINQTYCONTRACT SQL: PPOCOUNTQC Type: view CONSUMPTION

Purchase Order Count in Quantity Contract

P_POCountInQtyContract is a Consumption CDS View that provides data about "Purchase Order Count in Quantity Contract" in SAP S/4HANA. It reads from 4 data sources (I_PurContractClassification, I_PurchaseContractHistory, I_PurchaseContract, I_PurchaseContractItem) and exposes 3 fields with key fields PurchaseContract, PurchaseContractItem.

Data Sources (4)

SourceAliasJoin Type
I_PurContractClassification ContractClassification inner
I_PurchaseContractHistory ContractHistory from
I_PurchaseContract PurchaseContract inner
I_PurchaseContractItem PurchaseContractItem inner

Parameters (2)

NameTypeDefault
P_StartDate vdm_validitystart
P_EndDate vdm_validitystart

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PPOCOUNTQC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #CONSUMPTION view
VDM.private true view
EndUserText.label Purchase Order Count in Quantity Contract view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract I_PurchaseContractHistory PurchaseContract Purchasing Doc.
KEY PurchaseContractItem I_PurchaseContractHistory PurchaseContractItem Item
NumberOfPurchaseOrderItems

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_POCountInQtyContract.
-- 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: PPOCOUNTQC
-- Parameters: P_StartDate : vdm_validitystart, P_EndDate : vdm_validitystart

CREATE VIEW P_POCountInQtyContract AS
SELECT
  ContractHistory.PurchaseContract AS PurchaseContract,
  ContractHistory.PurchaseContractItem AS PurchaseContractItem,
  count(*) AS NumberOfPurchaseOrderItems
FROM I_PurchaseContractHistory AS ContractHistory
INNER JOIN I_PurchaseContractItem AS PurchaseContractItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseContract AS PurchaseContract ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurContractClassification AS ContractClassification ON /* join condition not captured in parsed metadata */
;