CDS标准视图:设备信息 I_EquipmentData

news/2025/3/10 18:36:09/文章来源:https://www.cnblogs.com/guanxing/p/18635476
  • 视图名称:I_EquipmentData
  • 视图类型:基础视图
  • 视图代码:
点击查看代码
@EndUserText.label: 'Equipment Data'
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'IEQUIPMENTATTR'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'Equipment'@AccessControl: {authorizationCheck: #CHECK,privilegedAssociations: ['_Location', '_Address', '_EquipmentHierarchyNode','_LOCATIONACCOUNTASSIGNMENT']
}@Analytics: {dataCategory: #DIMENSION,dataExtraction: {enabled: true,delta.byElement: {name: 'LastChangeDateTime'}}
}@ObjectModel: {usageType: {dataClass: #MASTER,serviceQuality: #C,sizeCategory: #L},supportedCapabilities: [ #EXTRACTION_DATA_SOURCE ]
}@Metadata: {ignorePropagatedAnnotations,allowExtensions
}// A more comprehensive view for equipment data, created as a replacement for BW extractor 0EQUIPMENT_ATTRdefine view I_EquipmentDataas select from I_EquipmentTimeSeginner join   I_Equipment on I_Equipment.Equipment = I_EquipmentTimeSeg.Equipmentassociation [0..1] to I_WorkCenterBySemanticKey as _MainWorkCenterBySemanticKey  on  $projection.MainWorkCenter      = _MainWorkCenterBySemanticKey.WorkCenterand $projection.MainWorkCenterPlant = _MainWorkCenterBySemanticKey.Plantassociation [0..1] to I_WorkCenterBySemanticKey as _WorkCenterBySemanticKey      on  $projection.workcenter      = _WorkCenterBySemanticKey.WorkCenterand $projection.WorkCenterPlant = _WorkCenterBySemanticKey.Plantassociation [0..1] to I_WorkCenter              as _WorkCenter                   on  $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalIDand _WorkCenter.WorkCenterTypeCode   = 'A'association [0..1] to I_Plant                   as _WorkCenterPlant              on  $projection.WorkCenterPlant = _WorkCenterPlant.Plantassociation [0..1] to I_FunctionalLocationData  as _FunctionalLocation           on  $projection.functionallocation = _FunctionalLocation.FunctionalLocationassociation [0..1] to I_Indicator               as _EquipmentIsMarkedForDeletion on  $projection.EquipmentIsMarkedForDeletion = _EquipmentIsMarkedForDeletion.IndicatorValueassociation [0..*] to I_EquipmentHierarchyNode  as _EquipmentHierarchyNode       on  $projection.Equipment = _EquipmentHierarchyNode.Equipmentassociation [0..1] to I_WBSElementBasicData      as _WBSElementBasicData      on  $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalIDassociation [0..*] to I_EquipmentText            as _EquipmentText            on  $projection.Equipment = _EquipmentText.Equipment-- Extensions, do not expose as association:association [0..1] to E_Equipment as _EquipmentExtension on _EquipmentExtension.Equipment = $projection.Equipment
{@ObjectModel.text.association: '_EquipmentText'@ObjectModel.hierarchy.association: '_EquipmentHierarchyNode'key I_EquipmentTimeSeg.Equipment,@Semantics.businessDate.to: truekey I_EquipmentTimeSeg.ValidityEndDate,I_EquipmentTimeSeg.EquipUsagePeriodSequenceNumber,/* Fields, as they appear in InfoObject 0EQUIPMENT */@ObjectModel.foreignKey.association: '_ABCIndicator'I_EquipmentTimeSeg._LocationAccountAssignment.ABCIndicator,@Semantics.amount.currencyCode: 'Currency'I_Equipment.AcquisitionValue,@ObjectModel.foreignKey.association: '_Address'I_EquipmentTimeSeg._LocationAccountAssignment.AddressID,@ObjectModel.foreignKey.association: '_MasterFixedAsset'I_EquipmentTimeSeg._LocationAccountAssignment.MasterFixedAsset,@ObjectModel.foreignKey.association: '_CompanyCode'I_EquipmentTimeSeg._LocationAccountAssignment.CompanyCode,@ObjectModel.foreignKey.association: '_CostCenter'I_EquipmentTimeSeg._LocationAccountAssignment.CostCenter,@ObjectModel.foreignKey.association: '_ControllingArea'I_EquipmentTimeSeg._LocationAccountAssignment.ControllingArea,@Semantics.currencyCode:trueI_Equipment.Currency,I_Equipment.OperationStartDate,@ObjectModel.foreignKey.association: '_TechnicalObjectType'I_Equipment.TechnicalObjectType,@ObjectModel.foreignKey.association: '_FunctionalLocation'I_EquipmentTimeSeg._LocationAccountAssignment.FunctionalLocation,I_Equipment.InventoryNumber,@ObjectModel.foreignKey.association: '_Location'I_EquipmentTimeSeg._LocationAccountAssignment.AssetLocation,@ObjectModel.foreignKey.association: '_MaintenancePlant'I_EquipmentTimeSeg._LocationAccountAssignment.MaintenancePlant,I_EquipmentTimeSeg._LocationAccountAssignment.AssetRoom,@ObjectModel.foreignKey.association: '_Material'I_Equipment.Material,@ObjectModel.foreignKey.association: '_MaintenancePlanningPlant'I_EquipmentTimeSeg.MaintenancePlanningPlant,@ObjectModel.foreignKey.association: '_PlantSection'I_EquipmentTimeSeg._LocationAccountAssignment.PlantSection,I_EquipmentTimeSeg.MaintenancePlannerGroup,cast( I_EquipmentTimeSeg._LocationAccountAssignment._WBSElementBasicData.WBSElement as ps_posid preserving type )                                                                                                                                                                      as WBSElement,@ObjectModel.foreignKey.association: '_EquipmentCategory'I_Equipment.EquipmentCategory,@Semantics.systemDate.createdAt: trueI_Equipment.CreationDate,@ObjectModel.foreignKey.association: '_Plant'I_Equipment.Plant,@ObjectModel.foreignKey.association: '_MainWorkCenter'I_EquipmentTimeSeg.WorkCenterInternalID                                                                                                                                                                                                                                                as MainWorkCenterInternalID,@ObjectModel.foreignKey.association: '_MainWorkCenterBySemanticKey'cast( I_EquipmentTimeSeg._WorkCenter.WorkCenter as gewrk preserving type )                                                                                                                                                                                                             as MainWorkCenter,@ObjectModel.foreignKey.association: '_MainWorkCenterPlant'cast( I_EquipmentTimeSeg._WorkCenter.Plant as wergw preserving type )                                                                                                                                                                                                                  as MainWorkCenterPlant,@ObjectModel.foreignKey.association: '_SettlementOrder'I_EquipmentTimeSeg._LocationAccountAssignment.SettlementOrder,@ObjectModel.foreignKey.association: '_WorkCenter'I_EquipmentTimeSeg._LocationAccountAssignment.WorkCenterInternalID,@ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'I_EquipmentTimeSeg._LocationAccountAssignment._WorkCenter.WorkCenter,@ObjectModel.foreignKey.association: '_WorkCenterPlant'I_EquipmentTimeSeg._LocationAccountAssignment._WorkCenter.Plant                                                                                                                                                                                                                        as WorkCenterPlant,/* Additional fields *//* If record is latest record (today's), then the timestamp comes from equipment.This is because timestamp on equipment catches changes done to EQUI AND EQUZ. Example: AcquisitionValue changedIf record is an old record (i.e. its validity end date is not in the future), then that time segments timestamp is used.This will also prevent any later changes of EQUI to be detected by ODP extractor. However this was discussed to be intended. */@Semantics.systemDateTime.lastChangedAt: truecase when I_EquipmentTimeSeg.ValidityEndDate = '99991231' then I_Equipment.LastChangeDateTimeelse I_EquipmentTimeSeg.LastChangeDateTime end                                                                                                                                                                                                                                    as LastChangeDateTime,@ObjectModel.foreignKey.association: '_EquipmentIsMarkedForDeletion'--@Semantics.booleanIndicator: truecast( case when _Status[ StatusCode = 'I0076' and StatusIsInactive = '' ].StatusCode is not null then 'X' else ' ' end as eam_is_deleted preserving type )                                                                                                                             as EquipmentIsMarkedForDeletion,//I_EquipmentTimeSegI_EquipmentTimeSeg.NextEquipUsagePeriodSqncNmbr,I_EquipmentTimeSeg.MaintObjectLocAcctAssgmtNmbr,@ObjectModel.foreignKey.association: '_WorkCenterType'I_EquipmentTimeSeg.WorkCenterTypeCode,I_EquipmentTimeSeg.CatalogProfile,I_EquipmentTimeSeg.SuperordinateEquipment,I_EquipmentTimeSeg.TechnicalObjectSortCode,@ObjectModel.foreignKey.association: '_ConstructionMaterial'I_EquipmentTimeSeg.ConstructionMaterial,@Semantics.businessDate.from: trueI_EquipmentTimeSeg.ValidityStartDate,I_EquipmentTimeSeg.ValidityEndTime,I_EquipmentTimeSeg.ManufacturerPartNmbr,//I_Equipment@ObjectModel.foreignKey.association: '_Division'I_Equipment.Division,@ObjectModel.foreignKey.association: '_StorageLocation'I_Equipment.StorageLocation,I_Equipment.AssetManufacturerName,I_Equipment.ManufacturerPartTypeName,@Semantics.address.country: true@ObjectModel.foreignKey.association: '_ManufacturerCountry'I_Equipment.ManufacturerCountry,I_Equipment.ConstructionYear,I_Equipment.ConstructionMonth,I_Equipment.AcquisitionDate,I_Equipment.MaintObjectInternalID,I_Equipment.SerialNumber,@ObjectModel.foreignKey.association: '_Customer'I_Equipment.Customer,I_Equipment.AuthorizationGroup,@Semantics.quantity.unitOfMeasure: 'GrossWeightUnit'I_Equipment.GrossWeight,@ObjectModel.foreignKey.association: '_GrossWeightUnit'@Semantics.unitOfMeasure: trueI_Equipment.GrossWeightUnit,I_Equipment.SizeOrDimensionText,I_Equipment.Batch,@ObjectModel.foreignKey.association: '_Supplier'I_Equipment.Supplier,//I_LocationAccountAssignment_LocationAccountAssignment.MaintObjectFreeDefinedAttrib,_LocationAccountAssignment.BusinessArea,@ObjectModel.foreignKey.association: '_WBSElementBasicData'cast( I_EquipmentTimeSeg._LocationAccountAssignment.WBSElementInternalID as ps_psp_pnr preserving type ) as WBSElementInternalID,I_EquipmentTimeSeg._LocationAccountAssignment.FixedAsset,//I_LinearAssetManagementDatacast( cast( I_Equipment._LinearAssetManagementData.LinearDataStartPoint as abap.dec(11, 3) ) as eaml_start_point )                                                                                                                                                                         as LinearDataStartPoint,cast( cast( I_Equipment._LinearAssetManagementData.LinearDataEndPoint as abap.dec(11, 3) ) as eaml_end_point )                                                                                                                                                                             as LinearDataEndPoint,@Semantics.quantity.unitOfMeasure: 'LinearDataUnitOfMeasure'I_Equipment._LinearAssetManagementData.LinearDataLength,@Semantics.unitOfMeasure: trueI_Equipment._LinearAssetManagementData.LinearDataUnitOfMeasure,/* Associations *///I_EquipmentTimeSegI_EquipmentTimeSeg._WorkCenter                                                                                                                                                                                                                                                         as _MainWorkCenter,I_EquipmentTimeSeg._Equipment,I_EquipmentTimeSeg._ConstructionMaterial,I_EquipmentTimeSeg._LocationAccountAssignment,I_EquipmentTimeSeg._MaintenancePlanningPlant,I_EquipmentTimeSeg._WorkCenterType,I_EquipmentTimeSeg._WorkCenter._Plant                                                                                                                                                                                                                                                  as _MainWorkCenterPlant,//I_EquipmentI_Equipment._ManufacturerCountry,I_Equipment._StorageLocation,I_Equipment._Division,I_Equipment._EquipmentCategory,I_Equipment._Material,I_Equipment._Plant,I_Equipment._Currency,I_Equipment._TechnicalObjectType,I_Equipment._GrossWeightUnit,I_Equipment._Customer,I_Equipment._Supplier,//I_LocationAccountAssignmentI_EquipmentTimeSeg._LocationAccountAssignment._ABCIndicator,I_EquipmentTimeSeg._LocationAccountAssignment._Address,I_EquipmentTimeSeg._LocationAccountAssignment._CompanyCode,I_EquipmentTimeSeg._LocationAccountAssignment._ControllingArea,I_EquipmentTimeSeg._LocationAccountAssignment._CostCenter,I_EquipmentTimeSeg._LocationAccountAssignment._Location,I_EquipmentTimeSeg._LocationAccountAssignment._MaintenancePlant,I_EquipmentTimeSeg._LocationAccountAssignment._MasterFixedAsset,I_EquipmentTimeSeg._LocationAccountAssignment._PlantSection,I_EquipmentTimeSeg._LocationAccountAssignment._SettlementOrder,_WBSElementBasicData,_WorkCenterBySemanticKey,_WorkCenterPlant,_WorkCenter,_MainWorkCenterBySemanticKey,_FunctionalLocation,_EquipmentHierarchyNode,_EquipmentIsMarkedForDeletion,_EquipmentText
}
whereI_EquipmentTimeSeg.EquipUsagePeriodSequenceNumber = '001'
  • 事务代码:
    IE03/IH08
    设备主数据的位置、组织结构、结构视图信息

  • 视图结构:

字段名称 设备名称
设备 EQUIPMENT
有效期至 VALIDITYENDDATE
连续号码 EQUIPUSAGEPERIODSEQUENCENUMBER
ABC 标识 ABCINDICATOR
购置价值 ACQUISITIONVALUE
地址编号 ADDRESSID
资产 MASTERFIXEDASSET
公司代码 COMPANYCODE
成本中心 COSTCENTER
成本控制范围 CONTROLLINGAREA
货币 CURRENCY
开始日期 OPERATIONSTARTDATE
对象类型 TECHNICALOBJECTTYPE
功能位置 FUNCTIONALLOCATION
库存号 INVENTORYNUMBER
位置 ASSETLOCATION
维护工厂 MAINTENANCEPLANT
房间 ASSETROOM
物料 MATERIAL
计划工厂 MAINTENANCEPLANNINGPLANT
厂区 PLANTSECTION
计划人员组 MAINTENANCEPLANNERGROUP
WBS 要素 WBSELEMENT
设备种类 EQUIPMENTCATEGORY
创建日期 CREATIONDATE
工厂 PLANT
工作中心 MAINWORKCENTERINTERNALID
主工作中心 MAINWORKCENTER
工厂工作中心 MAINWORKCENTERPLANT
结算订单 SETTLEMENTORDER
PP工作中心 WORKCENTERINTERNALID
工作中心 WORKCENTER
工厂 WORKCENTERPLANT
时戳 LASTCHANGEDATETIME
已删除 EQUIPMENTISMARKEDFORDELETION
下一个使用期间 NEXTEQUIPUSAGEPERIODSQNCNMBR
位置/科目分配 MAINTOBJECTLOCACCTASSGMTNMBR
对象类型 WORKCENTERTYPECODE
类别参数文件 CATALOGPROFILE
上级设备 SUPERORDINATEEQUIPMENT
技术标识号 TECHNICALOBJECTSORTCODE
构造类型 CONSTRUCTIONMATERIAL
有效期自 VALIDITYSTARTDATE
时间 VALIDITYENDTIME
制造商零件号 MANUFACTURERPARTNMBR
产品组 DIVISION
地点 STORAGELOCATION
制造商 ASSETMANUFACTURERNAME
型号 MANUFACTURERPARTTYPENAME
制造国家/地区 MANUFACTURERCOUNTRY
制造年份 CONSTRUCTIONYEAR
制造月份 CONSTRUCTIONMONTH
购置日期 ACQUISITIONDATE
对象编号 MAINTOBJECTINTERNALID
序列号 SERIALNUMBER
当前客户 CUSTOMER
授权组 AUTHORIZATIONGROUP
重量 GROSSWEIGHT
重量单位 GROSSWEIGHTUNIT
大小/尺寸 SIZEORDIMENSIONTEXT
批次 BATCH
供应商 SUPPLIER
分类字段 MAINTOBJECTFREEDEFINEDATTRIB
业务范围 BUSINESSAREA
WBS 要素 WBSELEMENTINTERNALID
子编号 FIXEDASSET
起点 LINEARDATASTARTPOINT
终点 LINEARDATAENDPOINT
LINEARDATALENGTH
计量单位 LINEARDATAUNITOFMEASURE

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/859820.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

四款简洁又好用的日记app推荐

以前使用纸质的笔记本来写日记,但是最近几年再也没有写过日记了,最近又想要开始写日记,发现用日记本app会更加简单方便。 打开手机就能给直接记录,除了记录文字,还可以保存图片、语音、视频等,更加简单便捷! 1、念念手帐 优点:画风可爱,很适合喜欢可爱风格的女生。可以…

polarctf-crypto困难难度wp整理(截止至2024.12)

分段解密 加密脚本如下: import sysdef abc(First): First = c_uint32(First)return Firstdef enflag(i, j):a = 32tt = 0x9e3779b9b = [0,0]First = abc(i[0])Second = abc(i[1])add = abc(0)add=add.valuewhile(a>0):add += ttFirst.value += ( Second.value << 4…

我的第一篇博客!学习Markdown

Markdown学习 标题 (#[空格]+标题名字) 二级标题##[空格]+标题名字 三级标题###[空格]+标题名字 以此类推,最高六级; 字体 Hello,World! (两边加两个星号"**"为设置粗体); Hello,World! (两边加一个星号"*"为设置斜体); Hello,World! (两边加三个星号“**…

Python包管理不再头疼:uv工具快速上手

Python 包管理生态中存在多种工具,如 pip、pip-tools、poetry、conda 等,各自具备一定功能。 而今天介绍的uv 是 Astral 公司推出的一款基于 Rust 编写的 Python 包管理工具,旨在成为 “Python 的 Cargo”。 它提供了快速、可靠且易用的包管理体验,在性能、兼容性和功能上都…

博客园markdown及配图自动上传配置

解决自己使用markdown写博客,上传到博客园上面,需要一张一张重新上传图片的问题博客园markdown与配图自动上传配置(mac版 m芯片)引言 安装配置工具 尾注前言 目的:因为自己使用markdown写博客,但是在博客园上面发布的时候,发现本地写好的markdown文件,上传到博客园上面…

【unity】学习制作类银河恶魔城游戏-4-

制作攻击计数器给全部攻击动作应用帧事件但是理想情况下应该是,短间隔时间内连续点击鼠标才能连击,加入连击计时器编辑代码修补“桶子” 解决攻击时移动的问题解决冲刺时攻击的问题解决无方向键输入时原地冲刺的问题解决空中攻击无法掉落的问题继承“inheritance”(继承)是…

React 移动端框架

1. Material-UI Material-UI 组件是独立工作的。 它们是自我支持的,并只要注入而且仅注入它们需要显示的样式。 他们不依赖任何全局的样式表,如 normalize.css。Material-UI首先是移动开发的,我们首先为移动设备编写代码,然后根据需要使用CSS媒体查询扩展组件。 要确保所有…

hbuilder 调试跨域问题解决方案

放到 system.webServer 节点下 web.config<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="Content-Type" /> <…

Maven仓库配置

阿里云镜像仓库地址 仓库服务 (aliyun.com) 获取配置信息修改settings.xml配置文件1.配置阿里云镜像加速<mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共仓库</name> <url>https://maven.aliyun.com/rep…

【JS逆向】爬虫逆向知识点

一、逆向基础1.1 语法基础1.2 作用域1.3 窗口对象属性1.4 事件二、浏览器控制台2.1 Network2.1.1 Network-Headers2.2 Sources2.3 Application2.4 Console三、加密参数的定位方法3.1 巧用搜索3.2 堆栈调试3.3 控制台调试3.4 监听XHR3.5 事件监听3.6 添加代码片3.7 Hook四、常见…