C_AllocationTagForSegment

DDL: C_ALLOCATIONTAGFORSEGMENT Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_AllocTagObjectAssignment I_AllocTagObjectAssignment from

Associations (2)

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

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

KeyFieldSource TableSource FieldDescription
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":""
}
}*/