C_PurgDocsMassChgSimlnMsgs

DDL: C_PURGDOCSMASSCHGSIMLNMSGS SQL: CDOCSIMMSGS Type: view CONSUMPTION Package: ODATA_MM_COMMONS_MASSUPDT

Error, Warning Count for Documents

C_PurgDocsMassChgSimlnMsgs is a Consumption CDS View that provides data about "Error, Warning Count for Documents" in SAP S/4HANA. It reads from 1 data source (P_PurgDocsSimlnLogItemCnt) and exposes 7 fields with key fields SimulationJobUUID, PurchasingDocument. It has 2 associations to related views. It is exposed through 2 OData services (ASQL_F3332, ASQL_F4400). Part of development package ODATA_MM_COMMONS_MASSUPDT.

Data Sources (1)

SourceAliasJoin Type
P_PurgDocsSimlnLogItemCnt P_PurgDocsSimlnLogItemCnt from

Associations (2)

CardinalityTargetAliasCondition
[1..*] C_PurgMassUpdtErrWrngMsgs _PurgMassUpdtErrWrngMsgs $projection.SimulationJobUUID = _PurgMassUpdtErrWrngMsgs.SimulationJobUUID and $projection.PurchasingDocument = _PurgMassUpdtErrWrngMsgs.PurchasingDocument
[1..*] I_PurchasingDocSimulationJob _PurchasingDocSimulationJob $projection.SimulationJobUUID = _PurchasingDocSimulationJob.SimulationJobUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDOCSIMMSGS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Error, Warning Count for Documents view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F3332 ASQL_F3332 C2 NOT_RELEASED
ASQL_F4400 ASQL_F4400 C2 NOT_RELEASED

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY SimulationJobUUID SimulationJobUUID
KEY PurchasingDocument Purchasing Document
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentSubtype _PurchasingDocSimulationJob PurchasingDocumentSubtype Control Indicator
ErrorCount ErrorCount
WarningCount WarningCount
_PurgMassUpdtErrWrngMsgs _PurgMassUpdtErrWrngMsgs

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 C_PurgDocsMassChgSimlnMsgs.
-- 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: CDOCSIMMSGS

CREATE VIEW C_PurgDocsMassChgSimlnMsgs AS
SELECT
  SimulationJobUUID,
  cast (PurchasingDocument as vdm_purchaseorder preserving type) AS PurchasingDocument,
  PurchasingDocumentCategory,
  _PurchasingDocSimulationJob.PurchasingDocumentSubtype AS PurchasingDocumentSubtype,
  ErrorCount,
  WarningCount
FROM P_PurgDocsSimlnLogItemCnt
LEFT OUTER JOIN C_PurgMassUpdtErrWrngMsgs AS _PurgMassUpdtErrWrngMsgs ON SimulationJobUUID = _PurgMassUpdtErrWrngMsgs.SimulationJobUUID AND PurchasingDocument = _PurgMassUpdtErrWrngMsgs.PurchasingDocument  -- association [1..*]
LEFT OUTER JOIN I_PurchasingDocSimulationJob AS _PurchasingDocSimulationJob ON SimulationJobUUID = _PurchasingDocSimulationJob.SimulationJobUUID  -- association [1..*]
;