A_UnivAllocRunResultMappingAI

DDL: A_UNIVALLOCRUNRESULTMAPPINGAI Type: view_entity CONSUMPTION Package: ODATA_UNIV_ALLOCATION_JOULE

Run Results Mapping for AI

A_UnivAllocRunResultMappingAI is a Consumption CDS View that provides data about "Run Results Mapping for AI" in SAP S/4HANA. It reads from 1 data source (I_AllocationRunResultMapping) and exposes 35 fields with key fields UniversalAllocationRun, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment, AllocationRunSenderItem. It has 2 associations to related views. It is exposed through 2 OData services (API_UNIVALLOCRUNRSLTMAPPING_AI, ASQL_F8877). Part of development package ODATA_UNIV_ALLOCATION_JOULE.

Data Sources (1)

SourceAliasJoin Type
I_AllocationRunResultMapping I_AllocationRunResultMapping from

Associations (2)

CardinalityTargetAliasCondition
[0..1] A_AllocationRunResult _SenderResult _SenderResult.UniversalAllocationRun = $projection.UniversalAllocationRun and _SenderResult.AllocationCycle = $projection.AllocationCycle and _SenderResult.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _SenderResult.AllocationCycleSegment = $projection.AllocationCycleSegment and _SenderResult.AllocationRunDataCategory = 'S' and _SenderResult.AllocationRunResultItem = $projection.AllocationRunSenderItem
[0..1] A_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

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Run Results Mapping for AI view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name RunResultMappingAI_Type view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view

OData Services (2)

ServiceBindingVersionContractRelease
API_UNIVALLOCRUNRSLTMAPPING_AI API_UNIVALLOCRUNRSLTMAPPING_AI V4 C2 NOT_RELEASED
ASQL_F8877 ASQL_F8877 C2 NOT_RELEASED

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY UniversalAllocationRun UniversalAllocationRun UUID
KEY AllocationCycle AllocationCycle Cycle
KEY AllocationCycleStartDate AllocationCycleStartDate Valid From
KEY AllocationCycleSegment AllocationCycleSegment Segment Number
KEY AllocationRunSenderItem AllocationRunSenderItem Result Pos.
KEY AllocationRunReceiverItem AllocationRunReceiverItem Result Pos.
CompanyCodeCurrency _ReceiverResult CompanyCodeCurrency Local Currency
GlobalCurrency _ReceiverResult GlobalCurrency GM Billing Element: Global Currency
AmountInCompanyCodeCurrency _ReceiverResult AmountInCompanyCodeCurrency Local Crcy Amt
AmountInGlobalCurrency _ReceiverResult AmountInGlobalCurrency Amount in Global Currency
AllocationCycleName _ReceiverResult AllocationCycleName Allocation Cycle
AllocationCycleNameText _ReceiverResult AllocationCycleNameText Cycle Description
AllocationType
Ledger _ReceiverResult Ledger Ledger
LedgerName _ReceiverResult LedgerName Ledger Name
AllocationActualPlanVariant _ReceiverResult AllocationActualPlanVariant Actual/Plan
AllocActualPlanVariantText _ReceiverResult AllocActualPlanVariantText
AllocationPostingType _ReceiverResult AllocationPostingType Posting Type
AllocationPostingTypeText _ReceiverResult AllocationPostingTypeText
GLAccount _ReceiverResult GLAccount General Ledger
GLAccountName _ReceiverResult GLAccountName Short Text
SegmentName _ReceiverResult SegmentName Segment Name
SegmentNameDescription _ReceiverResult SegmentNameDescription Segment Description
FiscalPeriod _ReceiverResult FiscalPeriod Tax period
LedgerFiscalYear
AllocationRunTracingFactorQty _ReceiverResult AllocationRunTracingFactorQty
VariablePortion _ReceiverResult VariablePortion
VariablePortionText _ReceiverResult VariablePortionText
VariablePortionType _ReceiverResult VariablePortionType
VariablePortionTypeText _ReceiverResult VariablePortionTypeText
AllocRunTracingFctrQtyUnit _ReceiverResult AllocRunTracingFctrQtyUnit
AllocationRunIsTest _ReceiverResult AllocationRunIsTest
AllocationCycleIsReversed _ReceiverResult AllocationCycleIsReversed
_SenderResult _SenderResult
_ReceiverResult _ReceiverResult

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 A_UnivAllocRunResultMappingAI.
-- 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.

CREATE VIEW A_UnivAllocRunResultMappingAI AS
SELECT
  UniversalAllocationRun,
  AllocationCycle,
  AllocationCycleStartDate,
  AllocationCycleSegment,
  AllocationRunSenderItem,
  AllocationRunReceiverItem,
  _ReceiverResult.CompanyCodeCurrency AS CompanyCodeCurrency,
  _ReceiverResult.GlobalCurrency AS GlobalCurrency,
  _ReceiverResult.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  _ReceiverResult.AmountInGlobalCurrency AS AmountInGlobalCurrency,
  _ReceiverResult.AllocationCycleName AS AllocationCycleName,
  _ReceiverResult.AllocationCycleNameText AS AllocationCycleNameText,
  cast(_ReceiverResult.AllocationType as fco_allocation_context preserving type) AS AllocationType,
  _ReceiverResult.Ledger AS Ledger,
  _ReceiverResult.LedgerName AS LedgerName,
  _ReceiverResult.AllocationActualPlanVariant AS AllocationActualPlanVariant,
  _ReceiverResult.AllocActualPlanVariantText AS AllocActualPlanVariantText,
  _ReceiverResult.AllocationPostingType AS AllocationPostingType,
  _ReceiverResult.AllocationPostingTypeText AS AllocationPostingTypeText,
  _ReceiverResult.GLAccount AS GLAccount,
  _ReceiverResult.GLAccountName AS GLAccountName,
  _ReceiverResult.SegmentName AS SegmentName,
  _ReceiverResult.SegmentNameDescription AS SegmentNameDescription,
  _ReceiverResult.FiscalPeriod AS FiscalPeriod,
  cast(_ReceiverResult.LedgerFiscalYear as fis_gjahr_no_conv preserving type) AS LedgerFiscalYear,
  _ReceiverResult.AllocationRunTracingFactorQty AS AllocationRunTracingFactorQty,
  _ReceiverResult.VariablePortion AS VariablePortion,
  _ReceiverResult.VariablePortionText AS VariablePortionText,
  _ReceiverResult.VariablePortionType AS VariablePortionType,
  _ReceiverResult.VariablePortionTypeText AS VariablePortionTypeText,
  _ReceiverResult.AllocRunTracingFctrQtyUnit AS AllocRunTracingFctrQtyUnit,
  _ReceiverResult.AllocationRunIsTest AS AllocationRunIsTest,
  _ReceiverResult.AllocationCycleIsReversed AS AllocationCycleIsReversed
FROM I_AllocationRunResultMapping
LEFT OUTER JOIN A_AllocationRunResult AS _SenderResult ON _SenderResult.UniversalAllocationRun = UniversalAllocationRun AND _SenderResult.AllocationCycle = AllocationCycle AND _SenderResult.AllocationCycleStartDate = AllocationCycleStartDate AND _SenderResult.AllocationCycleSegment = AllocationCycleSegment AND _SenderResult.AllocationRunDataCategory = 'S' AND _SenderResult.AllocationRunResultItem = AllocationRunSenderItem  -- association [0..1]
LEFT OUTER JOIN A_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]
;