P_PurgDocsSimlnLogItemCnt

DDL: P_PURGDOCSSIMLNLOGITEMCNT SQL: PDOCCNT Type: view CONSUMPTION Package: ODATA_MM_COMMONS_MASSUPDT

Document Item Count

P_PurgDocsSimlnLogItemCnt is a Consumption CDS View that provides data about "Document Item Count" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocSimulationLog) and exposes 4 fields with key fields SimulationJobUUID, PurchasingDocument. Part of development package ODATA_MM_COMMONS_MASSUPDT.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocSimulationLog I_PurchasingDocSimulationLog from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PDOCCNT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Document Item Count view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SimulationJobUUID SimulationJobUUID WorklistID
KEY PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
int4asNumberOfUniqueInfoSuccessMsgs

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_PurgDocsSimlnLogItemCnt.
-- 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: PDOCCNT

CREATE VIEW P_PurgDocsSimlnLogItemCnt AS
SELECT
  SimulationJobUUID,
  PurchasingDocument,
  PurchasingDocumentCategory,
  cast(sum(case when SystemMessageType = 'I' or SystemMessageType = 'S' then 1 else 0 end) as abap.int4) as NumberOfUniqueInfoSuccessMsgs AS int4asNumberOfUniqueInfoSuccessMsgs
FROM I_PurchasingDocSimulationLog
;