I_AllocationSegment

DDL: I_ALLOCATIONSEGMENT SQL: ALLOCSEGMENT Type: view BASIC

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.

Data Sources (1)

SourceAliasJoin Type
t811s t811s from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;