P_AllocationRunReversalCount

DDL: P_ALLOCATIONRUNREVERSALCOUNT SQL: PALORUNREVCNT Type: view CONSUMPTION Package: ODATA_RUN_ALLOCATION

Allocation Run Reversal Count

P_AllocationRunReversalCount is a Consumption CDS View that provides data about "Allocation Run Reversal Count" in SAP S/4HANA. It reads from 2 data sources (I_AllocationDocument, I_AllocationRunDocument) and exposes 3 fields with key fields UniversalAllocationRun, AllocationCycleIsReversed. Part of development package ODATA_RUN_ALLOCATION.

Data Sources (2)

SourceAliasJoin Type
I_AllocationDocument Document from
I_AllocationRunDocument RunDocument inner

Annotations (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PALORUNREVCNT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
EndUserText.label Allocation Run Reversal Count view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY UniversalAllocationRun I_AllocationRunDocument UniversalAllocationRun UUID
KEY AllocationCycleIsReversed I_AllocationDocument AllocationCycleIsReversed Reversal Status
StatusCount

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_AllocationRunReversalCount.
-- 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: PALORUNREVCNT

CREATE VIEW P_AllocationRunReversalCount AS
SELECT
  RunDocument.UniversalAllocationRun AS UniversalAllocationRun,
  Document.AllocationCycleIsReversed AS AllocationCycleIsReversed,
  cast(count( * ) as abap.int4) AS StatusCount
FROM I_AllocationDocument AS Document
INNER JOIN I_AllocationRunDocument AS RunDocument ON /* join condition not captured in parsed metadata */
;