首页 > 其他分享 >CDS标准视图:维护通知任务数据 I_MaintNotificationTaskData

CDS标准视图:维护通知任务数据 I_MaintNotificationTaskData

时间:2025-01-07 10:55:20浏览次数:1  
标签:MaintenanceNotificationItem ObjectModel CDS 视图 MaintNotificationTaskData ._ fore

  • 视图名称:维护通知任务数据 I_MaintNotificationTaskData
  • 视图类型:基础
  • 视图代码:IW67/IW23
点击查看代码
@AbapCatalog.sqlViewName: 'INOTIFTASKDATA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance Notification Task Data'

@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'MaintenanceNotificationTask'
@Metadata.ignorePropagatedAnnotations: true

@Analytics: {
  dataCategory: #FACT,
  dataExtraction: {
    enabled: true,
    delta.byElement: {
      name: 'LastChangeDateTime'
    }
  }
}

@ObjectModel: {
  usageType: {
    dataClass: #TRANSACTIONAL,
    serviceQuality: #C,
    sizeCategory: #XL
  }
}
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.supportedCapabilities:[ #EXTRACTION_DATA_SOURCE]

// created as a replacement for BW extractor 2LIS_17_I0TASK and 2LIS_18_I0TASK
// with this CDS view only partial details of CS notification would be visible, CS is only in compatibility mode and no further details would be made available
define view I_MaintNotificationTaskData
  as select from I_MaintNotifTaskTechObj
   -- Extensions, do not expose as association:
  association [0..1] to E_PMNotifMaintenanceData  as _NotifMaintenanceDataExtension on _NotifMaintenanceDataExtension.MaintenanceNotification = $projection.MaintenanceNotification
{
      @ObjectModel.text.element:  [ 'MaintNotifTaskTxt' ]
  key MaintenanceNotificationTask,
      @ObjectModel.foreignKey.association: '_MaintenanceNotification'
  key MaintenanceNotification,
      @ObjectModel.foreignKey.association: '_MaintenanceNotificationItem'
      MaintenanceNotificationItem,
      @Semantics.text: true
      MaintNotifTaskTxt,
      @ObjectModel.foreignKey.association: '_MaintNotificationTaskCode'
      MaintNotifTaskCode,
      @ObjectModel.foreignKey.association: '_MaintNotifTaskCodeGroup'
      MaintNotifTaskCodeGroup,
      @ObjectModel.foreignKey.association: '_MaintNotifTaskCodeCatalog'
      MaintNotifTaskCodeCatalog,
      @ObjectModel.foreignKey.association: '_IsDeleted'
      IsDeleted,
      @Semantics.systemDateTime.lastChangedAt: true
      LastChangeDateTime,

      @ObjectModel.foreignKey.association: '_AssemblyHeader'
      _MaintenanceNotification._PMNotifMaintenanceData.Assembly                                                                   as AssemblyHeader,
      @ObjectModel.foreignKey.association: '_Equipment'
      _MaintenanceNotification._PMNotifMaintenanceData.Equipment,
      @ObjectModel.foreignKey.association: '_FunctionalLocation'
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment.FunctionalLocation,
      @ObjectModel.foreignKey.association: '_MaintenancePlanningPlant'
      _MaintenanceNotification._PMNotifMaintenanceData.MaintenancePlanningPlant,
      @ObjectModel.foreignKey.association: '_MaintenancePlannerGroup'
      _MaintenanceNotification._PMNotifMaintenanceData.MaintenancePlannerGroup,

      @ObjectModel.foreignKey.association: '_MaintenancePlant'
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment.MaintenancePlant,
      @ObjectModel.foreignKey.association: '_ControllingArea'
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment.ControllingArea,
      @ObjectModel.foreignKey.association: '_CostCenter'
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment.CostCenter,

      _MaintenanceNotification.NotificationOrigin,
      @ObjectModel.foreignKey.association: '_PMNotificationType'
      _MaintenanceNotification.NotificationType,
      _MaintenanceNotification.NotificationCreationDate,

      @ObjectModel.foreignKey.association: '_Assembly'
      _MaintenanceNotificationItem.Assembly,
      @ObjectModel.foreignKey.association: '_MaintNotifDamageCodeCatalog'
      _MaintenanceNotificationItem.MaintNotifDamageCodeCatalog,
      @ObjectModel.foreignKey.association: '_MaintNotificationDamageCode'
      _MaintenanceNotificationItem.MaintNotificationDamageCode,
      @ObjectModel.foreignKey.association: '_MaintNotifDamageCodeGroup'
      _MaintenanceNotificationItem.MaintNotifDamageCodeGroup,
      @ObjectModel.foreignKey.association: '_DefectClass'
      _MaintenanceNotificationItem.DefectClass,
      @ObjectModel.foreignKey.association: '_MaintNotifObjPrtCode'
      _MaintenanceNotificationItem.MaintNotifObjPrtCode,
      @ObjectModel.foreignKey.association: '_MaintNotifObjPrtCodeGroup'
      _MaintenanceNotificationItem.MaintNotifObjPrtCodeGroup,
      @ObjectModel.foreignKey.association: '_MaintNotifObjPrtCodeCatalog'
      _MaintenanceNotificationItem.MaintNotifObjPrtCodeCatalog,

      //No. of Tasks
      @DefaultAggregation: #SUM
       cast( 1 as qzhlmass )                                                                                                      as NumberOfMaintNotifTasks,

      //No. of Tasks with Status Successful
      @DefaultAggregation: #SUM
      cast( case when _StatusObjectStatus[1: StatusCode = 'I0157'].StatusCode is not null and
                      _StatusObjectStatus[1: StatusCode = 'I0157'].StatusIsInactive <> 'X'
                 then 1
                 else 0 end as qzhlmerf )                                                                                         as NrOfMaintNotifSuccssflTasks,

      //No. of Tasks with Status "Outstanding" or "Released" (Active Tasks)
      @DefaultAggregation: #SUM
      cast( case when ( _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')
                 then 1
                 else 0  end as qzhlmaof )                                                                                        as NrOfMaintNotifActiveTasks,

      _MaintenanceNotification,
      _MaintenanceNotificationItem,
      _MaintNotifTaskCodeCatalog,
      _MaintNotifTaskCodeGroup,
      _MaintNotificationTaskCode,
      _IsDeleted,
      _MaintenanceNotification._PMNotifMaintenanceData._Assembly                                                                  as _AssemblyHeader,
      _MaintenanceNotification._PMNotifMaintenanceData._Equipment,
      _MaintenanceNotification._PMNotifMaintenanceData._MaintenancePlanningPlant,
      _MaintenanceNotification._PMNotifMaintenanceData._MaintenancePlannerGroup,
      _MaintenanceNotification._PMNotificationType,
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment._FunctionalLocation,
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment._MaintenancePlant,
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment._ControllingArea,
      _MaintenanceNotification._PMNotifMaintenanceData._LocationAccountAssignment._CostCenter,
      _MaintenanceNotificationItem._Assembly,
      _MaintenanceNotificationItem._MaintNotifDamageCodeCatalog,
      _MaintenanceNotificationItem._MaintNotificationDamageCode,
      _MaintenanceNotificationItem._MaintNotifDamageCodeGroup,
      _MaintenanceNotificationItem._DefectClass,
      _MaintenanceNotificationItem._MaintNotifObjPrtCode,
      _MaintenanceNotificationItem._MaintNotifObjPrtCodeGroup,
      _MaintenanceNotificationItem._MaintNotifObjPrtCodeCatalog
}
  • 事务代码:

  • 视图结构:

字段名称 技术名称
任务 MAINTENANCENOTIFICATIONTASK
通知 MAINTENANCENOTIFICATION
项目 MAINTENANCENOTIFICATIONITEM
任务文本 MAINTNOTIFTASKTXT
任务代码 MAINTNOTIFTASKCODE
代码组 MAINTNOTIFTASKCODEGROUP
目录类型 MAINTNOTIFTASKCODECATALOG
删除 ISDELETED
时戳 LASTCHANGEDATETIME
装配 ASSEMBLYHEADER
设备 EQUIPMENT
功能位置 FUNCTIONALLOCATION
计划工厂 MAINTENANCEPLANNINGPLANT
计划人员组 MAINTENANCEPLANNERGROUP
维护工厂 MAINTENANCEPLANT
成本控制范围 CONTROLLINGAREA
成本中心 COSTCENTER
通知来源 NOTIFICATIONORIGIN
通知类型 NOTIFICATIONTYPE
通知日期 NOTIFICATIONCREATIONDATE
装配 ASSEMBLY
损坏代码目录 MAINTNOTIFDAMAGECODECATALOG
损坏代码 MAINTNOTIFICATIONDAMAGECODE
损坏代码组 MAINTNOTIFDAMAGECODEGROUP
缺陷类 DEFECTCLASS
对象部分代码 MAINTNOTIFOBJPRTCODE
对象部分代码组 MAINTNOTIFOBJPRTCODEGROUP
对象部分目录 MAINTNOTIFOBJPRTCODECATALOG
全部的任务号码 NUMBEROFMAINTNOTIFTASKS
任务成功 NROFMAINTNOTIFSUCCSSFLTASKS
任务末结 NROFMAINTNOTIFACTIVETASKS

标签:MaintenanceNotificationItem,ObjectModel,CDS,视图,MaintNotificationTaskData,._,fore
From: https://www.cnblogs.com/guanxing/p/18657186

相关文章

  • GA/T1400视图库平台EasyCVR小知识:如何评估现有监控系统的技术状况?
    在当今社会,随着技术的不断发展和安全需求的日益提高,监控系统在各个领域的应用越来越广泛。为了确保监控系统的有效性和可靠性,定期对其技术状况进行全面评估是非常必要的。通过对监控系统的系统功能、性能、安全性、硬件设备、软件系统以及维护管理等方面的细致检查与分析,可以及时......
  • CDS标准视图:维护通知原因数据 I_MaintNotificationCauseData
    视图名称:维护通知原因数据I_MaintNotificationCauseData视图类型:基础视图代码:点击查看代码@AbapCatalog.sqlViewName:'INOTIFCAUSEDATA'@AbapCatalog.compiler.compareFilter:true@AccessControl.authorizationCheck:#CHECK@EndUserText.label:'MaintenanceNotifi......
  • 安卓笔记1——开启视图绑定View Binding功能
    前言只是初学者笔记,有错误望指正。正文开启特性参考谷歌开发者文档,首先要在gradle中开启特性android{...buildFeatures{viewBinding=true}}将为每个布局文件生成Pascal驼峰命名法+"Binding"的绑定类,例如main_layout.xml-->MainLayoutBindi......
  • SQL训练营:第十八章 视图View —— 数据界的“魔术镜”!
    嘿,各位数据界的小伙伴们,欢迎来到SQL训练营的第十八章!这一章,咱们要玩转一个超级有用的工具——视图View。视图就像是数据界的“魔术镜”,能让你看到数据的不同面貌,还能简化、格式化、过滤数据,甚至计算新字段!是不是听起来就像变魔术一样?那就跟着我一起来探索这个“魔术镜”吧!准备......
  • CDS标准视图:维护计划数据 C_MaintenancePlanDEX
    视图名称:维护计划数据C_MaintenancePlanDEX视图类型:基础视图代码:点击查看代码@AbapCatalog.sqlViewName:'CMAINTPLANDEX'@AbapCatalog.compiler.compareFilter:true@AccessControl.authorizationCheck:#CHECK@EndUserText.label:'MaintenancePlanDataExtractor'......
  • CDS标准视图:维护计划 I_MaintenancePlanBasic
    视图名称:维护计划I_MaintenancePlanBasic视图类型:基础视图代码:点击查看代码@AbapCatalog.compiler.compareFilter:true@AbapCatalog.sqlViewName:'IMAINTPLANBASIC'@AccessControl.authorizationCheck:#CHECK@ClientHandling.algorithm:#SESSION_VARIABLE@EndUser......
  • CDS标准视图:维护活动类型描述 I_MaintenanceActivityTypeText
    视图名称:维护活动类型描述I_MaintenanceActivityTypeText视图类型:基础视图代码:点击查看代码@AbapCatalog.sqlViewName:'IMTACTTYPET'@Analytics:{dataExtraction.enabled:true}@AbapCatalog.compiler.compareFilter:true@AccessControl.authorizationCheck:#CHE......
  • CDS标准视图:维护活动类型 I_MaintenanceActivityType
    视图名称:维护活动类型I_MaintenanceActivityType视图类型:基础视图代码:点击查看代码@ObjectModel.supportedCapabilities:[#ANALYTICAL_DIMENSION,#EXTRACTION_DATA_SOURCE,#CDS_MODELING_ASSOCIATION_TARGET,#SQL_DATA_SOURCE......
  • CDS标准视图:PM通知单 I_LocationAnalysisCube
    视图名称:PM通知单I_LocationAnalysisCube视图类型:分析视图代码:点击查看代码@EndUserText.label:'LocationAnalysis-Cube'@VDM.viewType:#COMPOSITE@AbapCatalog.sqlViewName:'ILOCANALYSISCUBE'@AccessControl.authorizationCheck:#CHECK@ClientHandling.al......
  • CDS标准视图:ABC标识文本 I_ABCIndicatorText
    视图名称:ABC标识文本I_ABCIndicatorText视图类型:基础视图视图代码:点击查看代码@EndUserText.label:'ABCIndicator-Text'@VDM.viewType:#BASIC@AbapCatalog.sqlViewName:'IABCINDICTEXT'@AbapCatalog.compiler.compareFilter:true@Analytics:{dataExtraction.......