I_AllocationSegment
Allocation Segment
I_AllocationSegment is a Basic CDS View that provides data about "Allocation Segment" in SAP S/4HANA. It reads from 1 data source (t811s) and exposes 50 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 2 associations to related views. Part of development package ODATA_MANAGE_ALLOCATION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t811s | t811s | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_AllocationCycle | _Cycle | $projection.AllocationType = _Cycle.AllocationType and $projection.AllocationCycle = _Cycle.AllocationCycle and $projection.AllocationCycleStartDate = _Cycle.AllocationCycleStartDate |
| [0..1] | I_AllocAssmtDistrLongText | _Text | $projection.AllocationType = _Text.AllocationType and $projection.AllocationCycle = _Text.AllocationCycle and $projection.AllocationCycleStartDate = _Text.AllocationCycleStartDate and _Text.LanguageCode = $session.system_language and $projection.AllocationCycleSegment = _Text.AllocationCycleSegment |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ALLOCSEGMENT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Allocation Segment | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #BASIC | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | Totals Table | ||
| KEY | AllocationCycle | cycle | Single-Character Flag | |
| KEY | AllocationCycleStartDate | Valid From | ||
| KEY | AllocationCycleSegment | Tank ID | ||
| SegmentName | Zone name | |||
| AllocationSegmentPosition | seqpos | Item | ||
| AllocationSenderRule | Sender Rule | |||
| AllocationReceiverRule | Receiver Rule | |||
| AllocationSegmentIsLocked | active | Usage Active | ||
| AllocScNgtvTracingFctr | negtest | Scale Neg. Factors | ||
| SenderTracingFieldGroup | scset | Set ID | ||
| SenderFieldGroup | sset | Start Using Variant Only | ||
| ReceiverFieldGroup | rset | Set ID | ||
| ReceiverTracingFieldGroup | rcset | Set ID | ||
| AllocSegmentShareInPercent | Share in % | |||
| AllocationSenderFixedField1 | sffeld1 | Fixed Amount | ||
| AllocationSenderFixedField2 | sffeld2 | Fixed Amount | ||
| AllocationSenderFixedField3 | sffeld3 | Fixed Amount | ||
| AllocationSenderFixedField4 | sffeld4 | Fixed Amount | ||
| AllocationSenderFixedField5 | sffeld5 | Fixed Amount | ||
| AllocationSenderFixedField6 | sffeld6 | Fixed Amount | ||
| AllocationSenderFixedField7 | sffeld7 | Fixed Amount | ||
| AllocationSenderFixedField8 | sffeld8 | Fixed Amount | ||
| AllocationSenderFixedField9 | sffeld9 | Fixed Amount | ||
| AllocationSenderFixedField10 | sffeld10 | Fixed Amount | ||
| AllocationCurrency | facurr | Currency | ||
| AllocationReceiverFixedField1 | rffeld1 | Fixed Amount | ||
| AllocationReceiverFixedField2 | rffeld2 | Fixed Amount | ||
| AllocationReceiverFixedField3 | rffeld3 | Fixed Amount | ||
| AllocationReceiverFixedField4 | rffeld4 | Fixed Amount | ||
| AllocationReceiverFixedField5 | rffeld5 | Fixed Amount | ||
| AllocationReceiverFixedField6 | rffeld6 | Fixed Amount | ||
| AllocationReceiverFixedField7 | rffeld7 | Fixed Amount | ||
| AllocationReceiverFixedField8 | rffeld8 | Fixed Amount | ||
| AllocationReceiverFixedField9 | rffeld9 | Fixed Amount | ||
| AllocationReceiverFixedField10 | rffeld10 | Fixed Amount | ||
| AllocationFieldGroup | rcdata | Field group | ||
| AssessmentCostElement | asacc | Assess. CElem | ||
| AllocationFixedCostCenterCost | pafldf | Fixed value fld | ||
| AllocationVariableCostCtrCost | pafldg | Val.fld vbl cst | ||
| AllocationAccountAssignment | rrfeld1 | AcctAsgmntField | ||
| AllocationSegmentSortField | sortfield | Sort Field | ||
| AllocIsSndrExclAsRcvr | sender_not | Exclude Sender | ||
| ManipulationRuleForCyclicMaint | MRULE | |||
| AllocationStructure | Check Encash. Rec. | |||
| AllocationTransferStructure | ersch | PA Trans. Str. | ||
| AllocSndrFctrPercent | sweight_fact | Factor Per | ||
| AllocRcvrFctrPercent | rweight_fact | Factor Per | ||
| _Cycle | _Cycle | |||
| _Text | _Text |
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 I_AllocationSegment.
-- 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: ALLOCSEGMENT
CREATE VIEW I_AllocationSegment AS
SELECT
cast(tab as fco_allocation_type) AS AllocationType,
cycle AS AllocationCycle,
cast(sdate as fco_alloc_valid_from ) AS AllocationCycleStartDate,
cast(seqnr as fco_alloc_segment_number ) AS AllocationCycleSegment,
cast(name as fco_segment_name ) AS SegmentName,
seqpos AS AllocationSegmentPosition,
cast(srule as fco_alloc_sender_rule) AS AllocationSenderRule,
cast(rrule as fco_alloc_receiver_rule) AS AllocationReceiverRule,
active AS AllocationSegmentIsLocked,
negtest AS AllocScNgtvTracingFctr,
scset AS SenderTracingFieldGroup,
sset AS SenderFieldGroup,
rset AS ReceiverFieldGroup,
rcset AS ReceiverTracingFieldGroup,
cast(spercent as fco_alloc_sender_share_percent) AS AllocSegmentShareInPercent,
sffeld1 AS AllocationSenderFixedField1,
sffeld2 AS AllocationSenderFixedField2,
sffeld3 AS AllocationSenderFixedField3,
sffeld4 AS AllocationSenderFixedField4,
sffeld5 AS AllocationSenderFixedField5,
sffeld6 AS AllocationSenderFixedField6,
sffeld7 AS AllocationSenderFixedField7,
sffeld8 AS AllocationSenderFixedField8,
sffeld9 AS AllocationSenderFixedField9,
sffeld10 AS AllocationSenderFixedField10,
facurr AS AllocationCurrency,
rffeld1 AS AllocationReceiverFixedField1,
rffeld2 AS AllocationReceiverFixedField2,
rffeld3 AS AllocationReceiverFixedField3,
rffeld4 AS AllocationReceiverFixedField4,
rffeld5 AS AllocationReceiverFixedField5,
rffeld6 AS AllocationReceiverFixedField6,
rffeld7 AS AllocationReceiverFixedField7,
rffeld8 AS AllocationReceiverFixedField8,
rffeld9 AS AllocationReceiverFixedField9,
rffeld10 AS AllocationReceiverFixedField10,
rcdata AS AllocationFieldGroup,
asacc AS AssessmentCostElement,
pafldf AS AllocationFixedCostCenterCost,
pafldg AS AllocationVariableCostCtrCost,
rrfeld1 AS AllocationAccountAssignment,
sortfield AS AllocationSegmentSortField,
sender_not AS AllocIsSndrExclAsRcvr,
cast(mrule as fco_alloc_manipulation_rule) AS ManipulationRuleForCyclicMaint,
cast( absch as fco_allocation_structure ) AS AllocationStructure,
ersch AS AllocationTransferStructure,
sweight_fact AS AllocSndrFctrPercent,
rweight_fact AS AllocRcvrFctrPercent
FROM t811s
LEFT OUTER JOIN I_AllocationCycle AS _Cycle ON AllocationType = _Cycle.AllocationType AND AllocationCycle = _Cycle.AllocationCycle AND AllocationCycleStartDate = _Cycle.AllocationCycleStartDate -- association [1]
LEFT OUTER JOIN I_AllocAssmtDistrLongText AS _Text ON AllocationType = _Text.AllocationType AND AllocationCycle = _Text.AllocationCycle AND AllocationCycleStartDate = _Text.AllocationCycleStartDate AND _Text.LanguageCode = $session.system_language AND AllocationCycleSegment = _Text.AllocationCycleSegment -- 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