C_AllocRunReferenceMapping

DDL: C_ALLOCRUNREFERENCEMAPPING SQL: CALLOCNREFMAP Type: view CONSUMPTION Package: ODATA_RUN_ALLOCATION

Allocation Run Reference Mapping

C_AllocRunReferenceMapping is a Consumption CDS View that provides data about "Allocation Run Reference Mapping" in SAP S/4HANA. It reads from 1 data source (I_AllocRunReferenceMapping) and exposes 13 fields with key fields UniversalAllocationRun, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment, AllocationRunReceiverItem. It has 2 associations to related views. It is exposed through 2 OData services (ASQL_F3548, ASQL_F4363). Part of development package ODATA_RUN_ALLOCATION.

Data Sources (1)

SourceAliasJoin Type
I_AllocRunReferenceMapping I_AllocRunReferenceMapping from

Associations (2)

CardinalityTargetAliasCondition
[0..1] C_AllocationRunResult _ReceiverResult _ReceiverResult.UniversalAllocationRun = $projection.UniversalAllocationRun and _ReceiverResult.AllocationCycle = $projection.AllocationCycle and _ReceiverResult.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _ReceiverResult.AllocationCycleSegment = $projection.AllocationCycleSegment and _ReceiverResult.AllocationRunDataCategory = 'R' and _ReceiverResult.AllocationRunResultItem = $projection.AllocationRunReceiverItem
[0..1] C_AllocationRunResult _ReferenceResult _ReferenceResult.UniversalAllocationRun = $projection.UniversalAllocationRun and _ReferenceResult.AllocationCycle = $projection.AllocationCycle and _ReferenceResult.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _ReferenceResult.AllocationCycleSegment = $projection.AllocationCycleSegment and _ReferenceResult.AllocationRunDataCategory = 'F' and _ReferenceResult.AllocationRunResultItem = $projection.AllocationRunReferenceItem

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CALLOCNREFMAP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Allocation Run Reference Mapping view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F3548 ASQL_F3548 C2 NOT_RELEASED
ASQL_F4363 ASQL_F4363 C2 NOT_RELEASED

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY UniversalAllocationRun UniversalAllocationRun UUID
KEY AllocationCycle AllocationCycle Cycle
KEY AllocationCycleStartDate AllocationCycleStartDate Valid From
KEY AllocationCycleSegment AllocationCycleSegment Segment Number
KEY AllocationRunReceiverItem AllocationRunReceiverItem Result Pos.
KEY AllocationRunReferenceItem AllocationRunReferenceItem Result Pos.
AllocationCycleName AllocationCycleName Allocation Cycle
AllocationType AllocationType Table
Ledger Ledger Ledger
AllocationActualPlanVariant AllocationActualPlanVariant Actual/Plan
AllocationPostingType AllocationPostingType Posting Type
_ReceiverResult _ReceiverResult
_ReferenceResult _ReferenceResult

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_AllocRunReferenceMapping.
-- 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: CALLOCNREFMAP

CREATE VIEW C_AllocRunReferenceMapping AS
SELECT
  UniversalAllocationRun,
  AllocationCycle,
  AllocationCycleStartDate,
  AllocationCycleSegment,
  AllocationRunReceiverItem,
  AllocationRunReferenceItem,
  AllocationCycleName,
  AllocationType,
  Ledger,
  AllocationActualPlanVariant,
  AllocationPostingType
FROM I_AllocRunReferenceMapping
LEFT OUTER JOIN C_AllocationRunResult AS _ReceiverResult ON _ReceiverResult.UniversalAllocationRun = UniversalAllocationRun AND _ReceiverResult.AllocationCycle = AllocationCycle AND _ReceiverResult.AllocationCycleStartDate = AllocationCycleStartDate AND _ReceiverResult.AllocationCycleSegment = AllocationCycleSegment AND _ReceiverResult.AllocationRunDataCategory = 'R' AND _ReceiverResult.AllocationRunResultItem = AllocationRunReceiverItem  -- association [0..1]
LEFT OUTER JOIN C_AllocationRunResult AS _ReferenceResult ON _ReferenceResult.UniversalAllocationRun = UniversalAllocationRun AND _ReferenceResult.AllocationCycle = AllocationCycle AND _ReferenceResult.AllocationCycleStartDate = AllocationCycleStartDate AND _ReferenceResult.AllocationCycleSegment = AllocationCycleSegment AND _ReferenceResult.AllocationRunDataCategory = 'F' AND _ReferenceResult.AllocationRunResultItem = AllocationRunReferenceItem  -- association [0..1]
;