C_AllocationTagForSegment
Allocation Tag to Segment Assignment
C_AllocationTagForSegment is a Consumption CDS View that provides data about "Allocation Tag to Segment Assignment" in SAP S/4HANA. It reads from 1 data source (I_AllocTagObjectAssignment) and exposes 11 fields with key fields AllocationTagID, AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocTagObjectAssignment | I_AllocTagObjectAssignment | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_AllocationSegmentTP | _Segment | $projection.AllocationType = _Segment.AllocationType and $projection.AllocationCycle = _Segment.AllocationCycle and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate and $projection.AllocationCycleSegment = _Segment.AllocationCycleSegment |
| [1..1] | I_UniversalAllocationTag | _AllocationTag | $projection.AllocationTagID = _AllocationTag.AllocationTagID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Allocation Tag to Segment Assignment | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.updateEnabled | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationTagID | AllocationTagID | ||
| KEY | AllocationType | AllocationType | ||
| KEY | AllocationCycle | AllocationCycle | ||
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | ||
| KEY | AllocationCycleSegment | AllocationCycleSegment | ||
| AllocationTagCreatedByUser | AllocationTagCreatedByUser | |||
| CreationDateTime | CreationDateTime | |||
| AllocationTagChangedByUser | AllocationTagChangedByUser | |||
| LastChangeDateTime | LastChangeDateTime | |||
| _Segment | _Segment | |||
| _AllocationTag | _AllocationTag |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Allocation Tag to Segment Assignment'
@ObjectModel.usageType: { dataClass: #MIXED, serviceQuality: #C, sizeCategory: #M }
@AccessControl.personalData.blocking:#NOT_REQUIRED
@ObjectModel:
{
//draftEnabled: true,
updateEnabled: true
// entityChangeStateId: 'LastChangeTime'
}
@VDM.viewType: #CONSUMPTION
define view entity C_AllocationTagForSegment
as select from I_AllocTagObjectAssignment
association [1..1] to C_AllocationSegmentTP as _Segment on $projection.AllocationType = _Segment.AllocationType
and $projection.AllocationCycle = _Segment.AllocationCycle
and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate
and $projection.AllocationCycleSegment = _Segment.AllocationCycleSegment
association [1..1] to I_UniversalAllocationTag as _AllocationTag on $projection.AllocationTagID = _AllocationTag.AllocationTagID
{
//I_AllocTagObjectAssignment
@Consumption.valueHelpDefinition: [ { entity: { name: 'C_UniversalAllocationTagVH', element: 'AllocationTagID' } } ]
key AllocationTagID,
key AllocationType,
key AllocationCycle,
key AllocationCycleStartDate,
key AllocationCycleSegment,
AllocationTagCreatedByUser,
CreationDateTime,
AllocationTagChangedByUser,
LastChangeDateTime,
//_Tag.AllocationTagDescription,
_Segment,
_AllocationTag
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ALLOCTAGOBJECTASSIGNMENT"
],
"ASSOCIATED":
[
"C_ALLOCATIONSEGMENTTP",
"I_UNIVERSALALLOCATIONTAG"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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