I_AllocationSegmentTP
Allocation Segment TP
I_AllocationSegmentTP is a Transactional CDS View that provides data about "Allocation Segment TP" in SAP S/4HANA. It reads from 2 data sources (I_AllocationContextType, I_AllocationSegment) and exposes 65 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 11 associations to related views. Part of development package ODATA_MANAGE_ALLOCATION.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationContextType | Context | inner |
| I_AllocationSegment | I_AllocationSegment | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_AllocationCycleTP | _Cycle | $projection.AllocationType = _Cycle.AllocationType and $projection.AllocationCycle = _Cycle.AllocationCycle and $projection.AllocationCycleStartDate = _Cycle.AllocationCycleStartDate |
| [0..*] | I_AllocationSenderKeyFieldTP | _SenderField | $projection.AllocationType = _SenderField.AllocationType and $projection.AllocationCycle = _SenderField.AllocationCycle and $projection.AllocationCycleStartDate = _SenderField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _SenderField.AllocationCycleSegment |
| [0..*] | I_AllocReceiverKeyFieldTP | _ReceiverField | $projection.AllocationType = _ReceiverField.AllocationType and $projection.AllocationCycle = _ReceiverField.AllocationCycle and $projection.AllocationCycleStartDate = _ReceiverField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _ReceiverField.AllocationCycleSegment |
| [0..*] | I_AllocSenderValueKeyFieldTP | _SenderValueField | $projection.AllocationType = _SenderValueField.AllocationType and $projection.AllocationCycle = _SenderValueField.AllocationCycle and $projection.AllocationCycleStartDate = _SenderValueField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _SenderValueField.AllocationCycleSegment |
| [0..*] | I_AllocRcvrTracingKeyFieldTP | _ReceiverTracingField | $projection.AllocationType = _ReceiverTracingField.AllocationType and $projection.AllocationCycle = _ReceiverTracingField.AllocationCycle and $projection.AllocationCycleStartDate = _ReceiverTracingField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _ReceiverTracingField.AllocationCycleSegment |
| [0..*] | I_AllocationSenderElementTP | _SenderElement | $projection.AllocationType = _SenderElement.AllocationType and $projection.AllocationCycle = _SenderElement.AllocationCycle and $projection.AllocationCycleStartDate = _SenderElement.AllocationCycleStartDate and $projection.AllocationCycleSegment = _SenderElement.AllocationCycleSegment |
| [0..*] | I_AllocReceiverElementTP | _ReceiverElement | $projection.AllocationType = _ReceiverElement.AllocationType and $projection.AllocationCycle = _ReceiverElement.AllocationCycle and $projection.AllocationCycleStartDate = _ReceiverElement.AllocationCycleStartDate and $projection.AllocationCycleSegment = _ReceiverElement.AllocationCycleSegment |
| [0..*] | I_AllocRcvrFactorElementTP | _ReceiverWeightingElement | $projection.AllocationType = _ReceiverWeightingElement.AllocationType and $projection.AllocationCycle = _ReceiverWeightingElement.AllocationCycle and $projection.AllocationCycleStartDate = _ReceiverWeightingElement.AllocationCycleStartDate and $projection.AllocationCycleSegment = _ReceiverWeightingElement.AllocationCycleSegment |
| [0..*] | P_TDDVirtualField | _TDDVirtualField | $projection.AllocationType = _TDDVirtualField.AllocationType and $projection.AllocationCycle = _TDDVirtualField.AllocationCycle and $projection.AllocationCycleStartDate = _TDDVirtualField.AllocationCycleStartDate and $projection.AllocationCycleSegment = _TDDVirtualField.AllocationCycleSegment |
| [0..*] | I_AllocationSegmentNoteTP | _SegmentNote | $projection.AllocationType = _SegmentNote.AllocationType and $projection.AllocationCycle = _SegmentNote.AllocationCycle and $projection.AllocationCycleStartDate = _SegmentNote.AllocationCycleStartDate and $projection.AllocationCycleSegment = _SegmentNote.AllocationCycleSegment |
| [0..*] | I_AllocTagSegmentAssignmentTP | _SegmentTag | $projection.AllocationType = _SegmentTag.AllocationType and $projection.AllocationCycle = _SegmentTag.AllocationCycle and $projection.AllocationCycleStartDate = _SegmentTag.AllocationCycleStartDate and $projection.AllocationCycleSegment = _SegmentTag.AllocationCycleSegment |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ALLOCSEGMENTTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Allocation Segment TP | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeDraftPersistence | ALLOCSEGMENTTPD | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | I_AllocationSegment | 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 % | ||
| AllocationActualPlanVariant | _Cycle | AllocationActualPlanVariant | Actual/Plan | |
| AllocationPostingType | _Cycle | AllocationPostingType | Posting Type | |
| SegmentNameDescription | ||||
| AllocationReferenceLedger | ||||
| PlanningCategory | ||||
| AllocationSenderValueIsNew | ||||
| AllocationTagID | ||||
| _Cycle | _Cycle | |||
| _SenderField | _SenderField | |||
| _ReceiverField | _ReceiverField | |||
| _SenderValueField | _SenderValueField | |||
| _ReceiverTracingField | _ReceiverTracingField | |||
| _SenderElement | _SenderElement | |||
| _ReceiverElement | _ReceiverElement | |||
| _ReceiverWeightingElement | _ReceiverWeightingElement | |||
| _SegmentNote | _SegmentNote | |||
| _SegmentTag | _SegmentTag |
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_AllocationSegmentTP.
-- 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: ALLOCSEGMENTTP
CREATE VIEW I_AllocationSegmentTP AS
SELECT
I_AllocationSegment.AllocationType AS 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,
_Cycle.AllocationActualPlanVariant AS AllocationActualPlanVariant,
_Cycle.AllocationPostingType AS AllocationPostingType,
cast(I_AllocationSegment._Text.AllocationCycleNameText as fco_alloc_segment_decs) AS SegmentNameDescription,
cast(_TDDVirtualField[1:AllocationFieldName = 'RLDNR'].AllocationFieldMinimumValue as fco_alloc_reference_ledger) AS AllocationReferenceLedger,
cast(_TDDVirtualField[1:AllocationFieldName = 'CATEGORY'].AllocationFieldMinimumValue as fcom_category) AS PlanningCategory,
cast( '' as boolean ) AS AllocationSenderValueIsNew,
cast('' as fco_tags_id) AS AllocationTagID
FROM I_AllocationSegment
INNER JOIN I_AllocationContextType AS Context ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AllocationCycleTP AS _Cycle ON AllocationType = _Cycle.AllocationType AND AllocationCycle = _Cycle.AllocationCycle AND AllocationCycleStartDate = _Cycle.AllocationCycleStartDate -- association [1..1]
LEFT OUTER JOIN I_AllocationSenderKeyFieldTP AS _SenderField ON AllocationType = _SenderField.AllocationType AND AllocationCycle = _SenderField.AllocationCycle AND AllocationCycleStartDate = _SenderField.AllocationCycleStartDate AND AllocationCycleSegment = _SenderField.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocReceiverKeyFieldTP AS _ReceiverField ON AllocationType = _ReceiverField.AllocationType AND AllocationCycle = _ReceiverField.AllocationCycle AND AllocationCycleStartDate = _ReceiverField.AllocationCycleStartDate AND AllocationCycleSegment = _ReceiverField.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocSenderValueKeyFieldTP AS _SenderValueField ON AllocationType = _SenderValueField.AllocationType AND AllocationCycle = _SenderValueField.AllocationCycle AND AllocationCycleStartDate = _SenderValueField.AllocationCycleStartDate AND AllocationCycleSegment = _SenderValueField.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocRcvrTracingKeyFieldTP AS _ReceiverTracingField ON AllocationType = _ReceiverTracingField.AllocationType AND AllocationCycle = _ReceiverTracingField.AllocationCycle AND AllocationCycleStartDate = _ReceiverTracingField.AllocationCycleStartDate AND AllocationCycleSegment = _ReceiverTracingField.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocationSenderElementTP AS _SenderElement ON AllocationType = _SenderElement.AllocationType AND AllocationCycle = _SenderElement.AllocationCycle AND AllocationCycleStartDate = _SenderElement.AllocationCycleStartDate AND AllocationCycleSegment = _SenderElement.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocReceiverElementTP AS _ReceiverElement ON AllocationType = _ReceiverElement.AllocationType AND AllocationCycle = _ReceiverElement.AllocationCycle AND AllocationCycleStartDate = _ReceiverElement.AllocationCycleStartDate AND AllocationCycleSegment = _ReceiverElement.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocRcvrFactorElementTP AS _ReceiverWeightingElement ON AllocationType = _ReceiverWeightingElement.AllocationType AND AllocationCycle = _ReceiverWeightingElement.AllocationCycle AND AllocationCycleStartDate = _ReceiverWeightingElement.AllocationCycleStartDate AND AllocationCycleSegment = _ReceiverWeightingElement.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN P_TDDVirtualField AS _TDDVirtualField ON AllocationType = _TDDVirtualField.AllocationType AND AllocationCycle = _TDDVirtualField.AllocationCycle AND AllocationCycleStartDate = _TDDVirtualField.AllocationCycleStartDate AND AllocationCycleSegment = _TDDVirtualField.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocationSegmentNoteTP AS _SegmentNote ON AllocationType = _SegmentNote.AllocationType AND AllocationCycle = _SegmentNote.AllocationCycle AND AllocationCycleStartDate = _SegmentNote.AllocationCycleStartDate AND AllocationCycleSegment = _SegmentNote.AllocationCycleSegment -- association [0..*]
LEFT OUTER JOIN I_AllocTagSegmentAssignmentTP AS _SegmentTag ON AllocationType = _SegmentTag.AllocationType AND AllocationCycle = _SegmentTag.AllocationCycle AND AllocationCycleStartDate = _SegmentTag.AllocationCycleStartDate AND AllocationCycleSegment = _SegmentTag.AllocationCycleSegment -- 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