R_UniversalAllocationSegmentTP

DDL: R_UNIVERSALALLOCATIONSEGMENTTP Type: view_entity TRANSACTIONAL

Universal Allocation Segment - TP

R_UniversalAllocationSegmentTP is a Transactional CDS View that provides data about "Universal Allocation Segment - TP" in SAP S/4HANA. It reads from 1 data source (I_UniversalAllocationSegment) and exposes 70 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_UniversalAllocationSegment I_UniversalAllocationSegment from

Associations (12)

CardinalityTargetAliasCondition
[0..*] I_AllocationStructureText _StructureText $projection.AllocationStructure = _StructureText.AllocationStructure
[0..*] I_CurrencyText _CurrencyText $projection.AllocationCurrency = _CurrencyText.Currency
[0..*] R_UnivAllocVirtualKeyField _VirtualKeyField $projection.AllocationType = _VirtualKeyField.AllocationType and $projection.AllocationCycle = _VirtualKeyField.AllocationCycle and $projection.AllocationCycleStartDate = _VirtualKeyField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _VirtualKeyField.AllocationCycleSegment
[0..*] R_UnivAllocSenderKeyFieldTP _SenderKeyField
[0..*] R_UnivAllocSndrValKeyFieldTP _SenderValueKeyField
[0..*] R_UnivAllocReceiverKeyFieldTP _ReceiverKeyField
[0..*] R_UnivAllocRcvrFctrKeyFieldTP _ReceiverTracingFactorKeyFld
[0..*] R_UnivAllocReceiverElementTP _ReceiverElement
[0..*] R_UnivAllocSenderElementTP _SenderElement
[0..*] R_UnivAllocRcvrFctrElementTP _ReceiverWeightingFactorElem
[0..*] R_UnivAllocTagSgmtAssignmentTP _TagToSegmentAssignment
[0..*] R_UnivAllocationSegmentTextTP _Text

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Universal Allocation Segment - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY AllocationType AllocationType Table
KEY AllocationCycle AllocationCycle Cycle
KEY AllocationCycleStartDate AllocationCycleStartDate Valid From
KEY AllocationCycleSegment AllocationCycleSegment Segment Number
SegmentName SegmentName Segment Name
AllocationSegmentPosition AllocationSegmentPosition Item
AllocationSenderRule AllocationSenderRule Sender Rule
AllocationReceiverRule AllocationReceiverRule Receiver Rule
AllocationSegmentIsLocked AllocationSegmentIsLocked Lock indicator
AllocScNgtvTracingFctr AllocScNgtvTracingFctr Scale Neg. Factors
SenderTracingFieldGroup SenderTracingFieldGroup Set ID
SenderFieldGroup SenderFieldGroup Start Using Variant Only
ReceiverFieldGroup ReceiverFieldGroup Set ID
ReceiverTracingFieldGroup ReceiverTracingFieldGroup Set ID
AllocationSenderFixedField1 AllocationSenderFixedField1 Fixed Amount
AllocationSenderFixedField2 AllocationSenderFixedField2 Fixed Amount
AllocationSenderFixedField3 AllocationSenderFixedField3 Fixed Amount
AllocationSenderFixedField4 AllocationSenderFixedField4 Fixed Amount
AllocationSenderFixedField5 AllocationSenderFixedField5 Fixed Amount
AllocationSenderFixedField6 AllocationSenderFixedField6 Fixed Amount
AllocationSenderFixedField7 AllocationSenderFixedField7 Fixed Amount
AllocationSenderFixedField8 AllocationSenderFixedField8 Fixed Amount
AllocationSenderFixedField9 AllocationSenderFixedField9 Fixed Amount
AllocationSenderFixedField10 AllocationSenderFixedField10 Fixed Amount
AllocationCurrency AllocationCurrency Currency
AllocationReceiverFixedField1 AllocationReceiverFixedField1 Fixed Amount
AllocationReceiverFixedField2 AllocationReceiverFixedField2 Fixed Amount
AllocationReceiverFixedField3 AllocationReceiverFixedField3 Fixed Amount
AllocationReceiverFixedField4 AllocationReceiverFixedField4 Fixed Amount
AllocationReceiverFixedField5 AllocationReceiverFixedField5 Fixed Amount
AllocationReceiverFixedField6 AllocationReceiverFixedField6 Fixed Amount
AllocationReceiverFixedField7 AllocationReceiverFixedField7 Fixed Amount
AllocationReceiverFixedField8 AllocationReceiverFixedField8 Fixed Amount
AllocationReceiverFixedField9 AllocationReceiverFixedField9 Fixed Amount
AllocationReceiverFixedField10 AllocationReceiverFixedField10 Fixed Amount
AllocationFieldGroup AllocationFieldGroup Var. Portion Type
AssessmentCostElement AssessmentCostElement Overhead Allocation Account
AllocationFixedCostCenterCost AllocationFixedCostCenterCost Fixed value fld
AllocationVariableCostCtrCost AllocationVariableCostCtrCost Val.fld vbl cst
AllocationAccountAssignment AllocationAccountAssignment AcctAsgmntField
AllocationSegmentSortField AllocationSegmentSortField Sort Field
AllocIsSndrExclAsRcvr AllocIsSndrExclAsRcvr Exclude Sender
ManipulationRuleForCyclicMaint ManipulationRuleForCyclicMaint Manipulation Rule
AllocationStructure AllocationStructure Alloc.Structure
AllocationTransferStructure AllocationTransferStructure PA Trans. Str.
AllocSndrFctrPercent AllocSndrFctrPercent Factor Per
AllocRcvrFctrPercent AllocRcvrFctrPercent Factor Per
AllocSegmentShareInPercent AllocSegmentShareInPercent Share in %
NoteText
CycleIsAttributedLineItmEnbld _Cycle CycleIsAttributedLineItmEnbld
AllocationTagID
AllocationReferenceLedger
AllocationSenderValueIsNew
PlanningCategory
_ReceiverRule _ReceiverRule
_SenderRule _SenderRule
_SegmentStatus _SegmentStatus
_Cycle _Cycle
_SenderKeyField _SenderKeyField
_SenderValueKeyField _SenderValueKeyField
_ReceiverKeyField _ReceiverKeyField
_ReceiverTracingFactorKeyFld _ReceiverTracingFactorKeyFld
_ReceiverElement _ReceiverElement
_SenderElement _SenderElement
_ReceiverWeightingFactorElem _ReceiverWeightingFactorElem
_TagToSegmentAssignment _TagToSegmentAssignment
_Text _Text
_StructureText _StructureText
_CurrencyText _CurrencyText
_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 R_UniversalAllocationSegmentTP.
-- 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 R_UniversalAllocationSegmentTP AS
SELECT
  AllocationType,
  AllocationCycle,
  AllocationCycleStartDate,
  AllocationCycleSegment,
  SegmentName,
  AllocationSegmentPosition,
  AllocationSenderRule,
  AllocationReceiverRule,
  AllocationSegmentIsLocked,
  AllocScNgtvTracingFctr,
  SenderTracingFieldGroup,
  SenderFieldGroup,
  ReceiverFieldGroup,
  ReceiverTracingFieldGroup,
  AllocationSenderFixedField1,
  AllocationSenderFixedField2,
  AllocationSenderFixedField3,
  AllocationSenderFixedField4,
  AllocationSenderFixedField5,
  AllocationSenderFixedField6,
  AllocationSenderFixedField7,
  AllocationSenderFixedField8,
  AllocationSenderFixedField9,
  AllocationSenderFixedField10,
  AllocationCurrency,
  AllocationReceiverFixedField1,
  AllocationReceiverFixedField2,
  AllocationReceiverFixedField3,
  AllocationReceiverFixedField4,
  AllocationReceiverFixedField5,
  AllocationReceiverFixedField6,
  AllocationReceiverFixedField7,
  AllocationReceiverFixedField8,
  AllocationReceiverFixedField9,
  AllocationReceiverFixedField10,
  AllocationFieldGroup,
  AssessmentCostElement,
  AllocationFixedCostCenterCost,
  AllocationVariableCostCtrCost,
  AllocationAccountAssignment,
  AllocationSegmentSortField,
  AllocIsSndrExclAsRcvr,
  ManipulationRuleForCyclicMaint,
  AllocationStructure,
  AllocationTransferStructure,
  AllocSndrFctrPercent,
  AllocRcvrFctrPercent,
  AllocSegmentShareInPercent,
  cast( _Note.NoteText as fcoua_segment_note ) AS NoteText,
  _Cycle.CycleIsAttributedLineItmEnbld AS CycleIsAttributedLineItmEnbld,
  cast('' as fco_tag_id) AS AllocationTagID,
  cast('' as fco_alloc_reference_ledger) AS AllocationReferenceLedger,
  cast(' ' as boolean) AS AllocationSenderValueIsNew,
  cast( _VirtualKeyField[1:AllocationFieldName = 'CATEGORY'].AllocationFieldMinimumValue as fcom_category ) AS PlanningCategory
FROM I_UniversalAllocationSegment
LEFT OUTER JOIN I_AllocationStructureText AS _StructureText ON AllocationStructure = _StructureText.AllocationStructure  -- association [0..*]
LEFT OUTER JOIN I_CurrencyText AS _CurrencyText ON AllocationCurrency = _CurrencyText.Currency  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocVirtualKeyField AS _VirtualKeyField ON AllocationType = _VirtualKeyField.AllocationType AND AllocationCycle = _VirtualKeyField.AllocationCycle AND AllocationCycleStartDate = _VirtualKeyField.AllocationCycleStartDate AND AllocationCycleSegment = _VirtualKeyField.AllocationCycleSegment  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocSenderKeyFieldTP AS _SenderKeyField ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocSndrValKeyFieldTP AS _SenderValueKeyField ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocReceiverKeyFieldTP AS _ReceiverKeyField ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocRcvrFctrKeyFieldTP AS _ReceiverTracingFactorKeyFld ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocReceiverElementTP AS _ReceiverElement ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocSenderElementTP AS _SenderElement ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocRcvrFctrElementTP AS _ReceiverWeightingFactorElem ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocTagSgmtAssignmentTP AS _TagToSegmentAssignment ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_UnivAllocationSegmentTextTP AS _Text ON /* condition not available in parsed metadata */  -- association [0..*]
;