I_AllocationSegment

DDL: I_ALLOCATIONSEGMENT SQL: ALLOCSEGMENT Type: view BASIC Package: ODATA_MANAGE_ALLOCATION

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)

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
KEY AllocationCycle cycle
KEY AllocationCycleStartDate
KEY AllocationCycleSegment
SegmentName
AllocationSegmentPosition seqpos
AllocationSenderRule
AllocationReceiverRule
AllocationSegmentIsLocked active
AllocScNgtvTracingFctr negtest
SenderTracingFieldGroup scset
SenderFieldGroup sset
ReceiverFieldGroup rset
ReceiverTracingFieldGroup rcset
AllocSegmentShareInPercent
AllocationSenderFixedField1 sffeld1
AllocationSenderFixedField2 sffeld2
AllocationSenderFixedField3 sffeld3
AllocationSenderFixedField4 sffeld4
AllocationSenderFixedField5 sffeld5
AllocationSenderFixedField6 sffeld6
AllocationSenderFixedField7 sffeld7
AllocationSenderFixedField8 sffeld8
AllocationSenderFixedField9 sffeld9
AllocationSenderFixedField10 sffeld10
AllocationCurrency facurr
AllocationReceiverFixedField1 rffeld1
AllocationReceiverFixedField2 rffeld2
AllocationReceiverFixedField3 rffeld3
AllocationReceiverFixedField4 rffeld4
AllocationReceiverFixedField5 rffeld5
AllocationReceiverFixedField6 rffeld6
AllocationReceiverFixedField7 rffeld7
AllocationReceiverFixedField8 rffeld8
AllocationReceiverFixedField9 rffeld9
AllocationReceiverFixedField10 rffeld10
AllocationFieldGroup rcdata
AssessmentCostElement asacc
AllocationFixedCostCenterCost pafldf
AllocationVariableCostCtrCost pafldg
AllocationAccountAssignment rrfeld1
AllocationSegmentSortField sortfield
AllocIsSndrExclAsRcvr sender_not
ManipulationRuleForCyclicMaint
AllocationStructure
AllocationTransferStructure ersch
AllocSndrFctrPercent sweight_fact
AllocRcvrFctrPercent rweight_fact
_Cycle _Cycle
_Text _Text
@AbapCatalog.sqlViewName: 'ALLOCSEGMENT'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking:#NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE

@EndUserText.label: 'Allocation Segment'

@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M

@VDM.viewType: #BASIC
define view I_AllocationSegment
  as select from t811s
  association [1] to I_AllocationCycle as _Cycle on  $projection.AllocationType            = _Cycle.AllocationType
                                                 and $projection.AllocationCycle          = _Cycle.AllocationCycle
                                                 and $projection.AllocationCycleStartDate = _Cycle.AllocationCycleStartDate
                                                 
//  association [1..1] to P_AllocationCycleCalc as _CycleCalc on  $projection.AllocationCycle          = _CycleCalc.AllocationCycle

//                                                           and $projection.AllocationType           = _CycleCalc.AllocationType

//                                                           and $projection.AllocationCycleStartDate = _CycleCalc.AllocationCycleStartDate

                                                 
  association [0..1] to I_AllocAssmtDistrLongText as _Text on  $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                                                    
{      
  key cast(tab as fco_allocation_type) as AllocationType,
  key cycle        as AllocationCycle, 
  key cast(sdate as fco_alloc_valid_from ) as AllocationCycleStartDate, 
  key 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,
//      scip         as OriginPAType, //missing GFN

      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, 
      
      _Cycle,
      _Text
//      _CycleCalc

}