P_MaintNotifOutStdgReldTaskCnt

DDL: P_MAINTNOTIFOUTSTDGRELDTASKCNT SQL: PMAINTNTFOTSKCNT Type: view COMPOSITE

P_MaintNotifOutStdgReldTaskCnt is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaintenanceNotificationTask) and exposes 3 fields with key field MaintenanceNotification. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceNotificationTask I_MaintenanceNotificationTask from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_MaintenanceNotification _MaintenanceNotification _MaintenanceNotification.MaintenanceNotification = $projection.MaintenanceNotification

Annotations (10)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PMAINTNTFOTSKCNT view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey MaintenanceNotification view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceNotification I_MaintenanceNotificationTask MaintenanceNotification
NrOfMaintNotifActiveTasks Tasks
_MaintenanceNotification _MaintenanceNotification
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'PMAINTNTFOTSKCNT'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
//Number of Tasks with Status 'Outstanding' or 'Released' for Maintenance Notification

@ObjectModel.representativeKey: 'MaintenanceNotification'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #COMPOSITE
@VDM.private: true

define view P_MaintNotifOutStdgReldTaskCnt 
  as select from I_MaintenanceNotificationTask
  association [0..1] to I_MaintenanceNotification     as _MaintenanceNotification     on  _MaintenanceNotification.MaintenanceNotification = $projection.MaintenanceNotification
{
      @ObjectModel.foreignKey.association: '_MaintenanceNotification'
  key I_MaintenanceNotificationTask.MaintenanceNotification,
      @EndUserText.label: 'Tasks'
      count( * ) as NrOfMaintNotifActiveTasks,

      // Associations - locally defined

      _MaintenanceNotification
}
where IsDeleted != 'X' and
      ((_StatusObjectStatus[1: StatusCode = 'I0154'].StatusCode is not null and
        _StatusObjectStatus[1: StatusCode = 'I0154'].StatusIsInactive <> 'X') or
      ( _StatusObjectStatus[1: StatusCode = 'I0155'].StatusCode is not null and
        _StatusObjectStatus[1: StatusCode = 'I0155'].StatusIsInactive <> 'X'))
group by
  MaintenanceNotification