I_UniversalAllocationSegment
Universal Allocation Segment
I_UniversalAllocationSegment is a Basic CDS View that provides data about "Universal Allocation Segment" in SAP S/4HANA. It reads from 1 data source (t811s) and exposes 53 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 5 associations to related views. Part of development package ODATA_MANAGE_ALLOCATION_V2.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t811s | t811s | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_AllocationReceiverRule | _ReceiverRule | $projection.AllocationReceiverRule = _ReceiverRule.AllocationReceiverRule |
| [1..1] | I_AllocationSenderRule | _SenderRule | $projection.AllocationSenderRule = _SenderRule.AllocationSenderRule |
| [1..1] | I_UnivAllocationSegmentNote | _Note | $projection.AllocationCycle = _Note.AllocationCycle and $projection.AllocationType = _Note.AllocationType and $projection.AllocationCycleStartDate = _Note.AllocationCycleStartDate and $projection.AllocationCycleSegment = _Note.AllocationCycleSegment |
| [1..1] | I_UnivAllocationSegmentStatus | _SegmentStatus | $projection.AllocationSegmentIsLocked = _SegmentStatus.AllocationStatus |
| [0..*] | I_AllocationFieldGroupText | _AllocationFieldGroupText | $projection.AllocationFieldGroup = _AllocationFieldGroupText.AllocationFieldGroup and $projection.AllocationType = _AllocationFieldGroupText.AllocationType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Universal Allocation Segment | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | tab | Totals Table | |
| KEY | AllocationCycle | cycle | Single-Character Flag | |
| KEY | AllocationCycleStartDate | sdate | Valid From | |
| KEY | AllocationCycleSegment | Tank ID | ||
| SegmentName | Zone name | |||
| AllocationSegmentPosition | seqpos | Item | ||
| AllocationSenderRule | Sender Rule | |||
| AllocationReceiverRule | Receiver Rule | |||
| AllocationSegmentIsLocked | 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 | Field group | |||
| AssessmentCostElement | 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 | ||
| _ReceiverRule | _ReceiverRule | |||
| _SenderRule | _SenderRule | |||
| _Note | _Note | |||
| _SegmentStatus | _SegmentStatus | |||
| _AllocationFieldGroupText | _AllocationFieldGroupText |
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_UniversalAllocationSegment.
-- 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 I_UniversalAllocationSegment AS
SELECT
tab AS AllocationType,
cycle AS AllocationCycle,
sdate AS AllocationCycleStartDate,
cast(seqnr as fco_alloc_segment_number preserving type ) AS AllocationCycleSegment,
cast(name as fco_segment_name preserving type ) AS SegmentName,
seqpos AS AllocationSegmentPosition,
cast(srule as fco_alloc_sender_rule preserving type ) AS AllocationSenderRule,
cast(rrule as fco_alloc_receiver_rule preserving type ) AS AllocationReceiverRule,
cast( active as fcoua_segment_status preserving type ) 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 preserving type ) 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,
cast( rcdata as fco_alloc_var_portion_type preserving type) AS AllocationFieldGroup,
cast( asacc as fco_alloc_asacc preserving type ) 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 preserving type ) AS ManipulationRuleForCyclicMaint,
cast(absch as fco_allocation_structure preserving type ) AS AllocationStructure,
ersch AS AllocationTransferStructure,
sweight_fact AS AllocSndrFctrPercent,
rweight_fact AS AllocRcvrFctrPercent
FROM t811s
LEFT OUTER JOIN I_AllocationReceiverRule AS _ReceiverRule ON AllocationReceiverRule = _ReceiverRule.AllocationReceiverRule -- association [1..1]
LEFT OUTER JOIN I_AllocationSenderRule AS _SenderRule ON AllocationSenderRule = _SenderRule.AllocationSenderRule -- association [1..1]
LEFT OUTER JOIN I_UnivAllocationSegmentNote AS _Note ON AllocationCycle = _Note.AllocationCycle AND AllocationType = _Note.AllocationType AND AllocationCycleStartDate = _Note.AllocationCycleStartDate AND AllocationCycleSegment = _Note.AllocationCycleSegment -- association [1..1]
LEFT OUTER JOIN I_UnivAllocationSegmentStatus AS _SegmentStatus ON AllocationSegmentIsLocked = _SegmentStatus.AllocationStatus -- association [1..1]
LEFT OUTER JOIN I_AllocationFieldGroupText AS _AllocationFieldGroupText ON AllocationFieldGroup = _AllocationFieldGroupText.AllocationFieldGroup AND AllocationType = _AllocationFieldGroupText.AllocationType -- association [0..*]
;
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