P_ContractItemCount

DDL: P_CONTRACTITEMCOUNT SQL: PITEMCOUNT Type: view CONSUMPTION Package: ODATA_MM_PUR_CTRMASS_UPDATE

view for Contract item count

P_ContractItemCount is a Consumption CDS View that provides data about "view for Contract item count" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContractItem) and exposes 3 fields with key fields PurchaseContract, PurchaseContractItem. Part of development package ODATA_MM_PUR_CTRMASS_UPDATE.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseContractItem I_PurchaseContractItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PITEMCOUNT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label view for Contract item count view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
NumberOfContractItems

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_ContractItemCount.
-- 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: PITEMCOUNT

CREATE VIEW P_ContractItemCount AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  cast( 1 as mm_a_contractitems ) AS NumberOfContractItems
FROM I_PurchaseContractItem
;