C_AllocationRunSegment
Allocation Run Segment
C_AllocationRunSegment is a Consumption CDS View that provides data about "Allocation Run Segment" in SAP S/4HANA. It reads from 1 data source (P_AllocationRunSegment) and exposes 24 fields with key fields UniversalAllocationRun, AllocationCyclePosition, AllocationCycleSegmentPosition. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AllocationRunSegment | P_AllocationRunSegment | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_AllocationRunResult | _Result | _Result.UniversalAllocationRun = $projection.UniversalAllocationRun and _Result.AllocationCycle = $projection.AllocationCycle and _Result.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _Result.AllocationCycleSegment = $projection.AllocationCycleSegment |
| [0..*] | C_AllocationRunResultMapping | _Mapping | _Mapping.UniversalAllocationRun = $projection.UniversalAllocationRun and _Mapping.AllocationCycle = $projection.AllocationCycle and _Mapping.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _Mapping.AllocationCycleSegment = $projection.AllocationCycleSegment |
| [0..1] | C_AllocationCycle | _Cycle | _Cycle.AllocationType = $projection.AllocationType and _Cycle.AllocationCycle = $projection.AllocationCycle and _Cycle.AllocationCycleStartDate = $projection.AllocationCycleStartDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CALLOCRUNSEGMENT | 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 Segment | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | UniversalAllocationRun | UniversalAllocationRun | ||
| KEY | AllocationCyclePosition | AllocationCyclePosition | ||
| KEY | AllocationCycleSegmentPosition | AllocationCycleSegmentPosition | ||
| AllocationCycle | AllocationCycle | Cycle | ||
| AllocationCycleName | AllocationCycleName | Allocation Cycle | ||
| AllocationCycleNameText | AllocationCycleNameText | Cycle Description | ||
| AllocationCycleStartDate | AllocationCycleStartDate | Valid From | ||
| AllocationCycleSegment | AllocationCycleSegment | Segment Number | ||
| SegmentName | SegmentName | Segment Name | ||
| SegmentNameDescription | SegmentNameDescription | Segment Description | ||
| AllocationType | AllocationType | Table | ||
| AllocationContextTypeText | _Cycle | AllocationContextTypeText | ||
| Ledger | Ledger | Ledger | ||
| AllocationActualPlanVariant | _Cycle | AllocationActualPlanVariant | Actual/Plan | |
| AllocActualPlanVariantText | _Cycle | AllocActualPlanVariantText | ||
| ControllingArea | _Cycle | ControllingArea | Controlling Area | |
| AllocationPostingType | _Cycle | AllocationPostingType | Posting Type | |
| AllocationPostingTypeText | _Cycle | AllocationPostingTypeText | ||
| CompanyCode | _Cycle | CompanyCode | Receiver Company Code | |
| CompanyCodeName | _Cycle | CompanyCodeName | Company Name | |
| AllocationRunNumberOfSenders | AllocationRunNumberOfSenders | |||
| AllocationRunNumberOfReceivers | AllocationRunNumberOfReceivers | |||
| _Result | _Result | |||
| _Mapping | _Mapping |
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_AllocationRunSegment.
-- 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: CALLOCRUNSEGMENT
CREATE VIEW C_AllocationRunSegment AS
SELECT
UniversalAllocationRun,
AllocationCyclePosition,
AllocationCycleSegmentPosition,
AllocationCycle,
AllocationCycleName,
AllocationCycleNameText,
AllocationCycleStartDate,
AllocationCycleSegment,
SegmentName,
SegmentNameDescription,
AllocationType,
_Cycle.AllocationContextTypeText AS AllocationContextTypeText,
Ledger,
_Cycle.AllocationActualPlanVariant AS AllocationActualPlanVariant,
_Cycle.AllocActualPlanVariantText AS AllocActualPlanVariantText,
_Cycle.ControllingArea AS ControllingArea,
_Cycle.AllocationPostingType AS AllocationPostingType,
_Cycle.AllocationPostingTypeText AS AllocationPostingTypeText,
_Cycle.CompanyCode AS CompanyCode,
_Cycle.CompanyCodeName AS CompanyCodeName,
AllocationRunNumberOfSenders,
AllocationRunNumberOfReceivers
FROM P_AllocationRunSegment
LEFT OUTER JOIN C_AllocationRunResult AS _Result ON _Result.UniversalAllocationRun = UniversalAllocationRun AND _Result.AllocationCycle = AllocationCycle AND _Result.AllocationCycleStartDate = AllocationCycleStartDate AND _Result.AllocationCycleSegment = AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN C_AllocationRunResultMapping AS _Mapping ON _Mapping.UniversalAllocationRun = UniversalAllocationRun AND _Mapping.AllocationCycle = AllocationCycle AND _Mapping.AllocationCycleStartDate = AllocationCycleStartDate AND _Mapping.AllocationCycleSegment = AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN C_AllocationCycle AS _Cycle ON _Cycle.AllocationType = AllocationType AND _Cycle.AllocationCycle = AllocationCycle AND _Cycle.AllocationCycleStartDate = AllocationCycleStartDate -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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