P_MaintNotifTaskCount

DDL: P_MAINTNOTIFTASKCOUNT SQL: PMAINTNTFTASKCNT Type: view COMPOSITE

P_MaintNotifTaskCount 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 PMAINTNTFTASKCNT 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
NumberOfMaintNotifTasks Tasks
_MaintenanceNotification _MaintenanceNotification
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'PMAINTNTFTASKCNT'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
//Number of tasks for Maintenance Notif.

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

define view P_MaintNotifTaskCount 
  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 NumberOfMaintNotifTasks,

      // Associations - locally defined

      _MaintenanceNotification
}
where IsDeleted != 'X'
group by
  MaintenanceNotification