A_UnivAllocRunResultMappingAI
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)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationRunResultMapping | I_AllocationRunResultMapping | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| API_UNIVALLOCRUNRSLTMAPPING_AI | API_UNIVALLOCRUNRSLTMAPPING_AI | V4 | C2 | NOT_RELEASED |
| ASQL_F8877 | ASQL_F8877 | C2 | NOT_RELEASED |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA