I_PPS_PurContrItemDraftCount

DDL: I_PPS_PURCONTRITEMDRAFTCOUNT Type: view_entity COMPOSITE

Count no of Items for docs - Draft

I_PPS_PurContrItemDraftCount is a Composite CDS View that provides data about "Count no of Items for docs - Draft" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurContractItemDraft) and exposes 3 fields with key field PurchaseContract.

Data Sources (1)

SourceAliasJoin Type
R_PPS_PurContractItemDraft R_PPS_PurContractItemDraft from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Count no of Items for docs - Draft view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
ParentDraftUUID ParentDraftUUID NodeID
NumberOfItems

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_PPS_PurContrItemDraftCount.
-- 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.

CREATE VIEW I_PPS_PurContrItemDraftCount AS
SELECT
  PurchaseContract,
  ParentDraftUUID,
  count(distinct PurchaseContractItem) AS NumberOfItems
FROM R_PPS_PurContractItemDraft
;