首页 > 其他分享 >CDS标准视图:维修工单工艺数据 I_MAINTORDEROPERATIONDATA

CDS标准视图:维修工单工艺数据 I_MAINTORDEROPERATIONDATA

时间:2025-01-07 11:33:29浏览次数:1  
标签:视图 MAINTORDEROPERATIONDATA MaintenanceOrder OperationPlanningValues CDS true Ord

  • 视图名称:维修工单工艺数据 I_MAINTORDEROPERATIONDATA
  • 视图类型:基础
  • 视图代码:
点击查看代码
@EndUserText.label: 'Maintenance Order Operation Data'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'IPMORDOPERDATA'
@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'I_MaintOrderOperation_DEX'

@Analytics: {
  dataCategory: #FACT,
  dataExtraction: {
    enabled: true,
        delta.changeDataCapture: {
            mapping:[
  {
                    table: 'afvc', role: #MAIN,
                    viewElement: [ 'MaintOrderRoutingNumber', 'MaintOrderOperationCounter'],
                    tableElement: ['aufpl', 'aplzl']
                }
                ,
                {
                    table: 'afko', role:  #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['MaintenanceOrder'],
                    tableElement: ['aufnr']}
                    ]

                 }
              }
          }


@ObjectModel: {
  usageType: {
    dataClass: #TRANSACTIONAL,
    serviceQuality: #C,
    sizeCategory: #XL
  }
}

@ObjectModel.supportedCapabilities:     [ #EXTRACTION_DATA_SOURCE ]

@Metadata.ignorePropagatedAnnotations: true

// A more comprehensive view for order (sub)operation data, created as a replacement for BW extractor 2LIS_17_I3OPER

define view I_MaintOrderOperationData
  as select from I_MaintOrderOperAndSubOper
  association [0..1] to I_LogisticsOrder              as _Order                      on  _Order.OrderID = $projection.MaintenanceOrder // AUFK (Order master data) and AFKO (Order Header data )
  association [0..1] to I_LocationAccountAssignment   as _LocationAccountAssignment  on  $projection.maintobjectlocacctassgmtnmbr = _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr
  association [0..1] to I_Equipment                   as _Equipment                  on  $projection.equipment = _Equipment.Equipment
{
  key MaintenanceOrder,
  key cast( MaintOrderOperationCounter as operationinternalid preserving type )                                                                          as MaintOrderOperationCounter,

      // Order Header:
       MaintOrderRoutingNumber,
      _MaintenanceOrder._LocationAccountAssignment.FunctionalLocation,
      _MaintenanceOrder.Equipment,
      _MaintenanceOrder.Assembly,
      _MaintenanceOrder.MaintenanceActivityType,
      _MaintenanceOrder.MaintenancePlannerGroup,
      _MaintenanceOrder.MaintenancePlanningPlant,

      _MaintenanceOrder.MaintenanceOrderType,
      _MaintenanceOrder.MaintenancePlant,
      _MaintenanceOrder.MaintObjectLocAcctAssgmtNmbr,

      // Order Operation (MCVGIH)
      MaintenanceOrderOperation,
      MaintenanceOrderSubOperation,
      OperationPersonResponsible,
      OperationControlKey,
      OperationDescription,
      _WorkCenter.WorkCenter,
// note 3197880: WorkCenterPlant get it from operation (in case work center initial)
//    _WorkCenter.Plant                                                                                                                                  as WorkCenterPlant,
      Plant                                                                                                                                              as WorkCenterPlant,
      @Semantics.quantity.unitOfMeasure: 'OperationPlannedWorkUnit'
      _OperationPlanningValues.OperationPlannedWork,
      @ObjectModel.foreignKey.association: '_PlannedWorkUnitOfMeasure'
      @Semantics.unitOfMeasure:true
      _OperationPlanningValues.OperationPlannedWorkUnit,
      @Semantics.quantity.unitOfMeasure: 'OperationPlannedWorkUnit'
      _OperationPlanningValues.ConfirmationTotalQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationQuantityUnit'
      _OperationPlanningValues.OperationQuantity,
      @ObjectModel.foreignKey.association: '_OperationQtyUnitOfMeasure'
      @Semantics.unitOfMeasure: true
      _OperationPlanningValues.OperationQuantityUnit,
      Assembly                                                                                                                                           as OperationAssembly,
      CostCtrActivityType,
      CostElement,
      MaterialGroup,
      OperationUnloadingPointName,
      PurchaseRequisition,

      cast( case when _StatusObjectActiveStatus[ StatusCode = 'I0013' ].StatusCode is not null then 'X' else ' ' end as eam_is_deleted preserving type ) as IsDeleted,

      @Semantics.systemDate.createdAt: true
      _MaintenanceOrder._Order.CreationDate,
      @Semantics.systemDateTime.lastChangedAt: true
      _MaintenanceOrder.LastChangeDateTime,

      MaintOrderConfirmation,
      MaintOrderOperationInternalID,
      SuperiorOperationInternalID,
      OperationWorkCenterInternalID,
      OperationWorkCenterTypeCode,

      /* Associations */
      //I_MaintOrderOperPlanningValues
      _OperationPlanningValues._PlannedWorkUnitOfMeasure,
      _OperationPlanningValues._OperationQtyUnitOfMeasure,

      // For DCL:
      _MaintenanceOrder,
      _PersonResponsible,
      _Order,
      _Equipment,
      _LocationAccountAssignment
}
  • 事务代码:IW33/IW49
    短描述、创建日期、技术对象、删除标记、完成确认编码、计划数据、工作中心、采购和会计数据

  • 视图结构:

字段名称 技术名称
订单 MAINTENANCEORDER
工序内部标识 MAINTORDEROPERATIONCOUNTER
计划工艺路线号 MAINTORDERROUTINGNUMBER
功能位置 FUNCTIONALLOCATION
设备 EQUIPMENT
装配 ASSEMBLY
活动类型 MAINTENANCEACTIVITYTYPE
计划人员组 MAINTENANCEPLANNERGROUP
计划工厂 MAINTENANCEPLANNINGPLANT
订单类型 MAINTENANCEORDERTYPE
工厂 MAINTENANCEPLANT
位置/科目分配 MAINTOBJECTLOCACCTASSGMTNMBR
MAINTENANCEORDEROPERATION
子工序 MAINTENANCEORDERSUBOPERATION
人员编号 OPERATIONPERSONRESPONSIBLE
控制码 OPERATIONCONTROLKEY
工序短文本 OPERATIONDESCRIPTION
工作中心 WORKCENTER
工厂 WORKCENTERPLANT
工作 OPERATIONPLANNEDWORK
工作单位 OPERATIONPLANNEDWORKUNIT
实际的工作 CONFIRMATIONTOTALQUANTITY
工序数量 OPERATIONQUANTITY
基本单位 OPERATIONQUANTITYUNIT
装配 OPERATIONASSEMBLY
活动类型 COSTCTRACTIVITYTYPE
成本要素 COSTELEMENT
物料组 MATERIALGROUP
卸货点 OPERATIONUNLOADINGPOINTNAME
请购单 PURCHASEREQUISITION
已删除 ISDELETED
创建日期 CREATIONDATE
时戳 LASTCHANGEDATETIME
确认 MAINTORDERCONFIRMATION
对象编号 MAINTORDEROPERATIONINTERNALID
上级工序结点 SUPERIOROPERATIONINTERNALID
对象标识 OPERATIONWORKCENTERINTERNALID
OPERATIONWORKCENTERTYPECODE

标签:视图,MAINTORDEROPERATIONDATA,MaintenanceOrder,OperationPlanningValues,CDS,true,Ord
From: https://www.cnblogs.com/guanxing/p/18657317

相关文章

  • CDS标准视图:有技术对象的维修工单 I_MAINTORDERTECHOBJCUBE
    视图名称:有技术对象的维修工单I_MAINTORDERTECHOBJCUBE视图类型:基础视图代码:点击查看代码@EndUserText.label:'MaintenanceOrderWithTechObject-Cube'@VDM.viewType:#COMPOSITE@AbapCatalog.sqlViewName:'IMNTORDTOCUBE'@AccessControl.authorizationCheck:#......
  • CDS标准视图:维护通知任务数据 I_MaintNotificationTaskData
    视图名称:维护通知任务数据I_MaintNotificationTaskData视图类型:基础视图代码:IW67/IW23点击查看代码@AbapCatalog.sqlViewName:'INOTIFTASKDATA'@AbapCatalog.compiler.compareFilter:true@AccessControl.authorizationCheck:#CHECK@EndUserText.label:'Maintenance......
  • 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......