I_ShiftDefinition

DDL: I_SHIFTDEFINITION SQL: IPPSHIFTDEFTN Type: view BASIC

Shift Definition Code

I_ShiftDefinition is a Basic CDS View (Dimension) that provides data about "Shift Definition Code" in SAP S/4HANA. It reads from 1 data source (tc37a) and exposes 18 fields with key fields ShiftDefinition, ShiftGrouping, ShiftEndDate. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tc37a def from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_ShiftDefinitionText _Text $projection.ShiftDefinition = _Text.ShiftDefinition
[0..*] I_ShiftDefinitionText _Text2 $projection.ShiftDefinition = _Text2.ShiftDefinition and $projection.ShiftGrouping = _Text2.ShiftGrouping
[1..1] I_ShiftGrouping _ShiftGrouping $projection.ShiftGrouping = _ShiftGrouping.ShiftGrouping
[1..1] I_CalendarDate _EndDate $projection.ShiftEndDate = _EndDate.CalendarDate
[0..1] I_CalendarDate _StartDate $projection.ShiftStartDate = _StartDate.CalendarDate
[1..1] I_WorkBreakSchedule _WorkBreakSchedule $projection.ShiftGrouping = _WorkBreakSchedule.ShiftGrouping and $projection.WorkBreakSchedule = _WorkBreakSchedule.WorkBreakSchedule

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName IPPSHIFTDEFTN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #GENERIC view
AbapCatalog.buffering.numberOfKeyFields 002 view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Consumption.ranked true view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ShiftDefinition view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Shift Definition Code view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ShiftDefinition tc37a kaptprog
KEY ShiftGrouping tc37a schgrup
KEY ShiftEndDate tc37a endda
ShiftEndTime tc37a endzt
ShiftStartDate tc37a begda
ShiftStartTime tc37a begzt
OperatingDurationInSeconds tc37a einzt
WorkBreakSchedule tc37a paplan
DailyWorkSchedule tc37a tprog
DailyWorkScheduleGroup tc37a motpr
DailyWorkScheduleVariant tc37a varia
ValidityEndDate
_ShiftGrouping _ShiftGrouping
_EndDate _EndDate
_StartDate _StartDate
_WorkBreakSchedule _WorkBreakSchedule
_Text _Text
_Text2 _Text2
@AbapCatalog.sqlViewName: 'IPPSHIFTDEFTN'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AbapCatalog.buffering: {status: #ACTIVE, type: #GENERIC, numberOfKeyFields: 002}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@Consumption.ranked: true
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY]
@ObjectModel.representativeKey: 'ShiftDefinition'
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Shift Definition Code'

define view I_ShiftDefinition
  as select from tc37a as def
  association [0..*] to I_ShiftDefinitionText as _Text              on  $projection.ShiftDefinition = _Text.ShiftDefinition
  association [0..*] to I_ShiftDefinitionText as _Text2             on  $projection.ShiftDefinition = _Text2.ShiftDefinition
                                                                    and $projection.ShiftGrouping   = _Text2.ShiftGrouping
  association [1..1] to I_ShiftGrouping       as _ShiftGrouping     on  $projection.ShiftGrouping = _ShiftGrouping.ShiftGrouping
  association [1..1] to I_CalendarDate        as _EndDate           on  $projection.ShiftEndDate   = _EndDate.CalendarDate
  association [0..1] to I_CalendarDate        as _StartDate         on  $projection.ShiftStartDate = _StartDate.CalendarDate
  association [1..1] to I_WorkBreakSchedule   as _WorkBreakSchedule on  $projection.ShiftGrouping     = _WorkBreakSchedule.ShiftGrouping
                                                                    and $projection.WorkBreakSchedule = _WorkBreakSchedule.WorkBreakSchedule
{
      @ObjectModel.text.association: '_Text2'
      @Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
  key def.kaptprog as ShiftDefinition,
      @ObjectModel.foreignKey.association: '_ShiftGrouping'
  key def.schgrup  as ShiftGrouping,
      // Dates and Times

      @ObjectModel.foreignKey.association: '_EndDate'
      @Semantics.businessDate.to: true
  key def.endda    as ShiftEndDate,
      def.endzt    as ShiftEndTime,
      @ObjectModel.foreignKey.association: '_StartDate'
      @Semantics.businessDate.from: true
      def.begda    as ShiftStartDate,
      def.begzt    as ShiftStartTime,
      def.einzt    as OperatingDurationInSeconds,

      // Work Break

      @ObjectModel.foreignKey.association: '_WorkBreakSchedule'      
      def.paplan   as WorkBreakSchedule,

      // Daily Work Schedule

      def.tprog    as DailyWorkSchedule,
      def.motpr    as DailyWorkScheduleGroup,
      def.varia    as DailyWorkScheduleVariant,
      cast(def.endda as vdm_validityend preserving type) as ValidityEndDate,

      // Associations

      _ShiftGrouping,
      _EndDate,
      _StartDate,
      _WorkBreakSchedule,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_Text2'
      _Text,
      _Text2
};