C_MaintNotificationCauseTP

DDL: C_MAINTNOTIFICATIONCAUSETP SQL: CNTFCAUSETETP Type: view CONSUMPTION

Maintenance Notification Cause

C_MaintNotificationCauseTP is a Consumption CDS View that provides data about "Maintenance Notification Cause" in SAP S/4HANA. It reads from 1 data source (I_MaintNotificationCauseTP) and exposes 20 fields with key fields MaintenanceNotificationCause, MaintenanceNotificationItem, MaintenanceNotification. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintNotificationCauseTP I_MaintNotificationCauseTP from

Associations (4)

CardinalityTargetAliasCondition
[1..1] C_MaintNotificationTP _MaintNotificationTP _MaintNotificationTP.MaintenanceNotification = $projection.MaintenanceNotification
[1..1] C_MaintNotificationItemTP _MaintNotificationItemTP $projection.MaintenanceNotification = _MaintNotificationItemTP.MaintenanceNotification and $projection.MaintenanceNotificationItem = _MaintNotificationItemTP.MaintenanceNotificationItem
[0..*] I_InspectionCodeText _MaintNotifCauseCodeText $projection.MaintNotificationCauseCode = _MaintNotifCauseCodeText.InspectionCode and $projection.MaintNotifCauseCodeCatalog = _MaintNotifCauseCodeText.InspectionCatalog and $projection.MaintNotifCauseCodeGroup = _MaintNotifCauseCodeText.InspectionCodeGroup
[0..*] I_Inspectioncodegrouptext _MaintNotifCauseCodeGroupText $projection.MaintNotifCauseCodeCatalog = _MaintNotifCauseCodeGroupText.InspectionCatalog and $projection.MaintNotifCauseCodeGroup = _MaintNotifCauseCodeGroupText.InspectionCodeGroup

Annotations (13)

NameValueLevelField
EndUserText.label Maintenance Notification Cause view
AbapCatalog.sqlViewName CNTFCAUSETETP view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey MaintenanceNotificationCause view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.transactionalProcessingDelegated true view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceNotificationCause I_MaintNotificationCauseTP MaintenanceNotificationCause
KEY MaintenanceNotificationItem I_MaintNotificationCauseTP MaintenanceNotificationItem
KEY MaintenanceNotification I_MaintNotificationCauseTP MaintenanceNotification
MaintNotificationCauseForEdit I_MaintNotificationCauseTP MaintNotificationCauseForEdit
MaintNotifCauseText I_MaintNotificationCauseTP MaintNotifCauseText
MaintNotificationCauseCode I_MaintNotificationCauseTP MaintNotificationCauseCode
MaintNotifCauseCodeGroup I_MaintNotificationCauseTP MaintNotifCauseCodeGroup
MaintNotifCauseCodeCatalog I_MaintNotificationCauseTP MaintNotifCauseCodeCatalog
IsDeleted I_MaintNotificationCauseTP IsDeleted
MaintNotifCauseSortNumber I_MaintNotificationCauseTP MaintNotifCauseSortNumber
IsMaintNotificationRootCause I_MaintNotificationCauseTP IsMaintNotificationRootCause
_IsDeleted I_MaintNotificationCauseTP _IsDeleted
_MaintenanceNotification I_MaintNotificationCauseTP _MaintenanceNotification
_MaintNotifCauseCodeCatalog I_MaintNotificationCauseTP _MaintNotifCauseCodeCatalog
_MaintNotifCauseCodeGroup I_MaintNotificationCauseTP _MaintNotifCauseCodeGroup
_MaintNotificationCauseCode I_MaintNotificationCauseTP _MaintNotificationCauseCode
_MaintNotifCauseCodeGroupText _MaintNotifCauseCodeGroupText
_MaintNotifCauseCodeText _MaintNotifCauseCodeText
_MaintNotificationItemTP _MaintNotificationItemTP
_MaintNotificationTP _MaintNotificationTP
@EndUserText.label: 'Maintenance Notification Cause'

@AbapCatalog.sqlViewName: 'CNTFCAUSETETP'
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL

@ObjectModel: {
  representativeKey : 'MaintenanceNotificationCause',
  semanticKey: ['MaintenanceNotificationCause', 'MaintenanceNotificationItem', 'MaintenanceNotification'],
  createEnabled: true,
  updateEnabled: true,
  deleteEnabled: true,
  transactionalProcessingDelegated: true
}

define view C_MaintNotificationCauseTP
  as select from I_MaintNotificationCauseTP
  association [1..1] to C_MaintNotificationTP     as _MaintNotificationTP          on  _MaintNotificationTP.MaintenanceNotification = $projection.MaintenanceNotification
  association [1..1] to C_MaintNotificationItemTP as _MaintNotificationItemTP      on  $projection.MaintenanceNotification     = _MaintNotificationItemTP.MaintenanceNotification
                                                                                   and $projection.MaintenanceNotificationItem = _MaintNotificationItemTP.MaintenanceNotificationItem
  association [0..*] to I_InspectionCodeText      as _MaintNotifCauseCodeText      on  $projection.MaintNotificationCauseCode = _MaintNotifCauseCodeText.InspectionCode
                                                                                   and $projection.MaintNotifCauseCodeCatalog = _MaintNotifCauseCodeText.InspectionCatalog
                                                                                   and $projection.MaintNotifCauseCodeGroup   = _MaintNotifCauseCodeText.InspectionCodeGroup
  association [0..*] to I_Inspectioncodegrouptext as _MaintNotifCauseCodeGroupText on  $projection.MaintNotifCauseCodeCatalog = _MaintNotifCauseCodeGroupText.InspectionCatalog
                                                                                   and $projection.MaintNotifCauseCodeGroup   = _MaintNotifCauseCodeGroupText.InspectionCodeGroup

{

  key I_MaintNotificationCauseTP.MaintenanceNotificationCause,
      @ObjectModel.foreignKey.association: '_MaintNotificationItemTP'
  key I_MaintNotificationCauseTP.MaintenanceNotificationItem,
      @ObjectModel.foreignKey.association: '_MaintNotificationTP'
  key I_MaintNotificationCauseTP.MaintenanceNotification,
      I_MaintNotificationCauseTP.MaintNotificationCauseForEdit,
      I_MaintNotificationCauseTP.MaintNotifCauseText,

      @Consumption.valueHelp: '_MaintNotifCauseCodeVH'
      @ObjectModel.text.association: '_MaintNotifCauseCodeText'
      I_MaintNotificationCauseTP.MaintNotificationCauseCode,
      @ObjectModel.text.association: '_MaintNotifCauseCodeGroupText'
      I_MaintNotificationCauseTP.MaintNotifCauseCodeGroup,
      I_MaintNotificationCauseTP.MaintNotifCauseCodeCatalog,
      I_MaintNotificationCauseTP.IsDeleted,
      I_MaintNotificationCauseTP.MaintNotifCauseSortNumber,

      I_MaintNotificationCauseTP.IsMaintNotificationRootCause,



      /* Associations */
      I_MaintNotificationCauseTP._IsDeleted,
      I_MaintNotificationCauseTP._MaintenanceNotification,
      I_MaintNotificationCauseTP._MaintNotifCauseCodeCatalog,
      I_MaintNotificationCauseTP._MaintNotifCauseCodeGroup,
      I_MaintNotificationCauseTP._MaintNotificationCauseCode,
      _MaintNotifCauseCodeGroupText,
      _MaintNotifCauseCodeText,
      @ObjectModel.association.type: [ #TO_COMPOSITION_PARENT ]
      _MaintNotificationItemTP,
      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT ]
      _MaintNotificationTP
}
where
  I_MaintNotificationCauseTP.IsDeleted != 'X'