首页 > 其他分享 >CDS标准视图:维护计划数据 C_MaintenancePlanDEX

CDS标准视图:维护计划数据 C_MaintenancePlanDEX

时间:2024-12-30 14:57:28浏览次数:1  
标签:MaintenancePlanDEX MaintenancePlanCycle ObjectModel 视图 Semantics CDS true associ

  • 视图名称:维护计划数据 C_MaintenancePlanDEX
  • 视图类型:基础
  • 视图代码:
点击查看代码
@AbapCatalog.sqlViewName: 'CMAINTPLANDEX'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance Plan Data Extractor'

@VDM.viewType: #CONSUMPTION
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'MaintenancePlanCycle'
@ObjectModel.semanticKey: [ 'MaintenancePlan','MaintenancePlanCycle' ]
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions: true

@Analytics: {
  dataCategory: #DIMENSION,
  dataExtraction: {
    enabled: true,
    delta.byElement: {
      name: 'LastChangeDateTime'
    }
  }
}
@Analytics.internalName:#LOCAL
@ObjectModel: {
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #C,
    sizeCategory: #S
  }
}
@AbapCatalog.preserveKey:true
@ObjectModel.modelingPattern:             #EXTRACTION_DATA_SOURCE
@ObjectModel.supportedCapabilities:     [ #EXTRACTION_DATA_SOURCE ]

define view C_MaintenancePlanDEX
  as select from I_MaintenancePlanCycle
  association [1..1] to I_MaintenancePlanBasic as _MaintenancePlan          on $projection.MaintenancePlan = _MaintenancePlan.MaintenancePlan
  //                                                                               and $projection.MaintenancePlanCycle  = MaintenancePlanCycle
  -- Extensions, do not expose as association:
  association [0..1] to E_MaintenancePlan      as _MaintenancePlanExtension on $projection.MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan
{
      @ObjectModel.text.element: 'MaintenancePlanDesc'
      @ObjectModel.foreignKey.association: '_MaintenancePlan'
  key I_MaintenancePlanCycle.MaintenancePlan                                           as MaintenancePlan,
      //      @Analytics.internalName: #LOCAL
      //@ObjectModel.foreignKey.association: '_MaintenancePlanCycle'
  key I_MaintenancePlanCycle.MaintenancePlanCycle                                      as MaintenancePlanCycle,

      @Semantics.text: true
      _MaintenancePlan.MaintenancePlanDesc,

      @Semantics.systemDate.createdAt: true
      _MaintenancePlan.CreationDate,

      @Semantics.user.createdBy: true
      _MaintenancePlan.CreatedByUser,

      @Semantics.systemDate.lastChangedAt: true
      _MaintenancePlan.LastChangeDate,

      @Semantics.user.lastChangedBy: true
      _MaintenancePlan.LastChangedByUser,

      _MaintenancePlan.MaintenanceStrategy,

      _MaintenancePlan.SchedulingDuration,

      _MaintenancePlan.MaintPlanIsLockedAgainstCalls,

      _MaintenancePlan.NumberOfMaintenanceItems,

      _MaintenancePlan.MaintenanceCall,


      _MaintenancePlan.LateCompletionShiftInPercent,

      _MaintenancePlan.EarlyCompletionShiftInPercent,

      _MaintenancePlan.LateCompletionTolerancePercent,

      _MaintenancePlan.EarlyCompletionTolerancePct,

      _MaintenancePlan.CycleModificationRatio,

      _MaintenancePlan.MaintPlanSchedgIndicator,

      cast( _MaintenancePlan.CallHorizonPercent as callhorizonpercent preserving type) as CallHorizonPercent,

      cast( _MaintenancePlan.CallHorizonInDays as callhorizonindays preserving type)   as CallHorizonInDays,

      _MaintenancePlan.MaintenanceCallHorizonCalcType,


      _MaintenancePlan.MaintPlanLogicalOperatorCode,

      _MaintenancePlan.AuthorizationGroup,

      @ObjectModel.foreignKey.association: '_MaintenancePlanCatParam'
      _MaintenancePlan.MaintenancePlanCategory,

      _MaintenancePlan.SchedulingDurationUnit,

      _MaintenancePlan.BasicStartDate,

      //        @Semantics.quantity.unitOfMeasure: 'MaintSchedgStartCounterUnit'
      _MaintenancePlan.MaintPlanStartCntrReadingValue,

      //       @ObjectModel.foreignKey.association: '_MeasuringPoint._UnitOfMeasure'
      //        _MeasuringPoint.MeasurementRangeUnit as MaintSchedgStartCounterUnit,

      @Semantics.booleanIndicator
      _MaintenancePlan.PrdcssrCallObjCompltnIsRqd,

      _MaintenancePlan.MaintPlanFreeDefinedAttrib,

      _MaintenancePlan.FactoryCalendar,

      _MaintenancePlan.MaintenanceLeadFloatInDays,

      _MaintenancePlan.SchedulingStartDate,

      _MaintenancePlan.SchedulingStartTime,

      _MaintenancePlan.MultipleCounterPlanShiftFactor,


      //       @Semantics.quantity.unitOfMeasure: 'MaintSchedgEndCounterUnit'
      _MaintenancePlan.MaintPlanEndCntrReadingValue,

      //       @ObjectModel.foreignKey.association: '_MeasuringPoint._UnitOfMeasure'
      //        _MeasuringPoint.MeasurementRangeUnit as MaintSchedgEndCounterUnit,

      _MaintenancePlan.SchedulingEndDate,

      @Semantics.systemDateTime.lastChangedAt: true
      _MaintenancePlan.LastChangeDateTime,


      ComparisonOperator,

      @Semantics.quantity.unitOfMeasure: 'MaintPlanCycRcrrcIntervalUnit'
      MaintPlanCycRcrrcIntervalQty                                                     as MaintPlanCycRcrrcIntervalQty,

      //        @ObjectModel.foreignKey.association: '_UnitOfMeasure'

      //         @ObjectModel.foreignKey.association: '_UnitOfMeasure'
      MaintPlanCycRcrrcIntervalUnit                                                    as MaintPlanCycRcrrcIntervalUnit,

      MaintPlanCycleDesc,

      @ObjectModel.foreignKey.association: '_Language'
      Language,

      //        @ObjectModel.foreignKey.association: '_MeasuringPoint'
      MeasuringPoint,

      MaintPlanCycleStartOffsetValue,

      @Semantics.booleanIndicator:true
      MaintenancePlanCycleIsInactive,

      CycleSetSequence,

      CycleSetSequenceRepeatFactor,

      /* Associations */
      _MaintenancePlan._MaintenancePlanCatParam,
      _UnitOfMeasure,
      _Language,
      _MeasuringPoint,
      _MaintenancePlan
}
  • 事务代码:IP03

  • 视图结构:

字段名称 设备名称
维护计划 MAINTENANCEPLAN
计数器 MAINTENANCEPLANCYCLE
维护计划文本 MAINTENANCEPLANDESC
创建日期 CREATIONDATE
创建人 CREATEDBYUSER
更改日期 LASTCHANGEDATE
更改人 LASTCHANGEDBYUSER
策略 MAINTENANCESTRATEGY
计划期间 SCHEDULINGDURATION
已锁定 MAINTPLANISLOCKEDAGAINSTCALLS
项目号 NUMBEROFMAINTENANCEITEMS
调用号 MAINTENANCECALL
晚期完全 LATECOMPLETIONSHIFTINPERCENT
早期完全 EARLYCOMPLETIONSHIFTINPERCENT
允差(+) LATECOMPLETIONTOLERANCEPERCENT
允差(-) EARLYCOMPLETIONTOLERANCEPCT
周期修改系数 CYCLEMODIFICATIONRATIO
计划标识 MAINTPLANSCHEDGINDICATOR
维护计划调用的调用区间(百分比) CALLHORIZONPERCENT
维护计划调用的调用区间(天) CALLHORIZONINDAYS
计算类型 MAINTENANCECALLHORIZONCALCTYPE
工序类型 MAINTPLANLOGICALOPERATORCODE
授权组 AUTHORIZATIONGROUP
维护计划类型 MAINTENANCEPLANCATEGORY
计划间隔的单位 SCHEDULINGDURATIONUNIT
周期起始 BASICSTARTDATE
结构计数器读数 MAINTPLANSTARTCNTRREADINGVALUE
完成要求 PRDCSSRCALLOBJCOMPLTNISRQD
分类字段 MAINTPLANFREEDEFINEDATTRIB
工厂日历 FACTORYCALENDAR
提前缓冲 MAINTENANCELEADFLOATINDAYS
开始日期 SCHEDULINGSTARTDATE
开始时间 SCHEDULINGSTARTTIME
班次因子 MCP MULTIPLECOUNTERPLANSHIFTFACTOR
结束计数器 MAINTPLANENDCNTRREADINGVALUE
计划结束日期 SCHEDULINGENDDATE
时戳 LASTCHANGEDATETIME
关系运算符 COMPARISONOPERATOR
维护包周期 MAINTPLANCYCRCRRCINTERVALQTY
单位 MAINTPLANCYCRCRRCINTERVALUNIT
周期正文 MAINTPLANCYCLEDESC
主要语言 LANGUAGE
测量点 MEASURINGPOINT
时间偏置 MAINTPLANCYCLESTARTOFFSETVALUE
未激活 MAINTENANCEPLANCYCLEISINACTIVE
循环集顺序 CYCLESETSEQUENCE
重复因子集 CYCLESETSEQUENCEREPEATFACTOR

标签:MaintenancePlanDEX,MaintenancePlanCycle,ObjectModel,视图,Semantics,CDS,true,associ
From: https://www.cnblogs.com/guanxing/p/18641261

相关文章

  • 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.......
  • CDS标准视图:技术对象类别文本 I_TechnicalObjectTypeText
    视图名称:技术对象类别文本I_TechnicalObjectTypeText视图类型:基础视图代码:点击查看代码@EndUserText.label:'TechnicalObjectType-Text'@ObjectModel.dataCategory:#TEXT@Analytics:{dataExtraction:{enabled:true,delta.changeDataCapture.automatic:......
  • CDS标准视图:功能位置种类描述 I_FlocCategoryText
    视图名称:功能位置种类描述I_FlocCategoryText视图类型:基础视图代码:点击查看代码@EndUserText.label:'FunctionalLocation-Text'@ObjectModel.dataCategory:#TEXT@VDM.viewType:#BASIC@AbapCatalog:{sqlViewName:'IFLOCTEXT',preserveKey}@AbapCatalog.comp......
  • CDS标准视图:功能位置可用标签 I_FUNCNLLOCALTERNATIVELABEL
    视图名称:功能位置可用标签I_FUNCNLLOCALTERNATIVELABEL视图类型:基础视图代码:点击查看代码@EndUserText.label:'FunctionalLocationAlternativeLabels'@VDM.viewType:#BASIC@AccessControl.authorizationCheck:#CHECK@AbapCatalog.sqlViewName:'IFUNCTLOCALTLBL'......
  • CDS标准视图:功能位置信息 I_FunctionalLocationData
    视图名称:I_FunctionalLocationData视图类型:基础视图视图代码:点击查看代码@EndUserText.label:'FunctionalLocationData'@VDM:{viewType:#COMPOSITE,lifecycle.contract.type:#PUBLIC_LOCAL_API}@AbapCatalog.sqlViewName:'IFUNCTLOCATTR'@AbapCatalog......
  • CDS标准视图:功能位置描述 I_FunctionalLocationText
    视图名称:功能位置描述I_FunctionalLocationText视图类型:基本视图视图代码:点击查看代码@EndUserText.label:'FunctionalLocation-Text'@ObjectModel.dataCategory:#TEXT@VDM.viewType:#BASIC@AbapCatalog:{sqlViewName:'IFLOCTEXT',preserveKey}@AbapCatalo......