CDS标准视图:功能位置信息 I_FunctionalLocationData

news/2025/1/11 4:23:37/文章来源:https://www.cnblogs.com/guanxing/p/18640319
  • 视图名称:I_FunctionalLocationData
  • 视图类型:基础视图
  • 视图代码:
点击查看代码
@EndUserText.label: 'Functional Location Data'
@VDM: {viewType: #COMPOSITE,lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AbapCatalog.sqlViewName: 'IFUNCTLOCATTR'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE@AccessControl: {authorizationCheck: #CHECK,privilegedAssociations: ['_Location', '_Address', '_FuncnlLocationHierarchyNode']
}@ObjectModel: {representativeKey: 'FunctionalLocation',usageType: {dataClass: #MASTER,serviceQuality: #C,sizeCategory: #L},supportedCapabilities: [ #EXTRACTION_DATA_SOURCE ]
}@Analytics: {dataCategory: #DIMENSION,dataExtraction: {enabled: true,delta.byElement: {name: 'LastChangeDateTime'}}
}@Metadata: {ignorePropagatedAnnotations,allowExtensions
}define view I_FunctionalLocationDataas select from I_FunctionalLocation as I_FunctionalLocationassociation [0..1] to I_FunclocationLabelInternal as _PrimaryLabel                 on  $projection.FunctionalLocation             = _PrimaryLabel.FunctionalLocationand _PrimaryLabel.FuncnlLocLabelIsPrimaryLabel = 'X'and _PrimaryLabel.FunctionalLocLabelIsActive   = 'X'association [0..1] to I_WorkCenterBySemanticKey   as _MainWorkCenterBySemanticKey  on  $projection.MainWorkCenter      = _MainWorkCenterBySemanticKey.WorkCenterand $projection.MainWorkCenterPlant = _MainWorkCenterBySemanticKey.Plantassociation [0..1] to I_Plant                     as _MainWorkCenterPlant          on  $projection.MainWorkCenterPlant = _MainWorkCenterPlant.Plantassociation [0..1] to I_WorkCenterBySemanticKey   as _WorkCenterBySemanticKey      on  $projection.workcenter      = _WorkCenterBySemanticKey.WorkCenterand $projection.WorkCenterPlant = _WorkCenterBySemanticKey.Plantassociation [0..1] to I_Plant                     as _WorkCenterPlant              on  $projection.WorkCenterPlant = _WorkCenterPlant.Plantassociation [0..1] to I_WorkCenter                as _MainWorkCenter               on  _MainWorkCenter.WorkCenterInternalID = $projection.MainWorkCenterInternalIDand _MainWorkCenter.WorkCenterTypeCode   = 'A'association [0..1] to I_Indicator                 as _FuncnlLocIsMarkedForDeletion on  $projection.FuncnlLocIsMarkedForDeletion = _FuncnlLocIsMarkedForDeletion.IndicatorValueassociation [0..1] to I_FunctionalLocationData    as _SuperiorFunctionalLocation   on  $projection.SuperiorFunctionalLocation = _SuperiorFunctionalLocation.FunctionalLocationassociation[0..1] to I_MaintenancePlanPlant       as _MaintenancePlanPlant         on $projection.MaintenancePlanningPlant = _MaintenancePlanPlant.MaintenancePlanningPlantassociation[0..1] to I_FuncnlLocationHierarchyNode as _FuncnlLocationHierarchyNode on $projection.FunctionalLocation = _FuncnlLocationHierarchyNode.FunctionalLocationassociation [0..1] to I_WBSElementBasicData      as _WBSElementBasicData      on  $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID-- Extension, do not expose as association:association [0..1] to E_FunctionalLocation        as _FunctionalLocationExtension  on  _FunctionalLocationExtension.FunctionalLocation = $projection.FunctionalLocationassociation [0..*] to I_FunctionalLocationText    as _FunctionalLocationText        on  _FunctionalLocationText.FunctionalLocation = $projection.FunctionalLocation
{@ObjectModel.text.association: '_FunctionalLocationText'@ObjectModel.hierarchy.association: '_FuncnlLocationHierarchyNode'key I_FunctionalLocation.FunctionalLocation,/* Fields, as they appeared in InfoObject 0FUNCT_LOC */@ObjectModel.foreignKey.association: '_ABCIndicator'_LocationAccountAssignment.ABCIndicator,@ObjectModel.foreignKey.association: '_Address'_LocationAccountAssignment.AddressID,@ObjectModel.foreignKey.association: '_MasterFixedAsset'_LocationAccountAssignment.MasterFixedAsset,@ObjectModel.foreignKey.association: '_ConstructionMaterial'ConstructionMaterial,@ObjectModel.foreignKey.association: '_CompanyCode'_LocationAccountAssignment.CompanyCode,@ObjectModel.foreignKey.association: '_CostCenter'_LocationAccountAssignment.CostCenter,@ObjectModel.foreignKey.association: '_ControllingArea'_LocationAccountAssignment.ControllingArea,OperationStartDate,@ObjectModel.foreignKey.association: '_TechnicalObjectType'TechnicalObjectType,@ObjectModel.foreignKey.association: '_Location'_LocationAccountAssignment.AssetLocation,@ObjectModel.foreignKey.association: '_MaintenancePlant'_LocationAccountAssignment.MaintenancePlant,_LocationAccountAssignment.AssetRoom,@ObjectModel.foreignKey.association: '_MaintenancePlanPlant'MaintenancePlanningPlant,@ObjectModel.foreignKey.association: '_PlantSection'_LocationAccountAssignment.PlantSection,@ObjectModel.foreignKey.association: '_MaintenancePlannerGroup'MaintenancePlannerGroup,@ObjectModel.foreignKey.association: '_FunctionalLocLabelingSyst'_PrimaryLabel.FunctionalLocLabelingSyst,_PrimaryLabel.FunctionalLocationLabelName                                                                                                                                                                                                                                                                    as FuncnlLocPrimaryLabelName,_PrimaryLabel.FunctionalLocationLabelVersion,cast( _LocationAccountAssignment._WBSElementBasicData.WBSElement as ps_posid preserving type )                                                                                                                                                                                                               as WBSElement,@ObjectModel.foreignKey.association: '_FunctionalLocationCategory'FunctionalLocationCategory,@ObjectModel.foreignKey.association: '_MainWorkCenterBySemanticKey'cast( I_FunctionalLocation._WorkCenter.WorkCenter as gewrk preserving type )                                                                                                                                                                                                                                 as MainWorkCenter,@ObjectModel.foreignKey.association: '_MainWorkCenterPlant'cast( I_FunctionalLocation._WorkCenter.Plant as wergw preserving type )                                                                                                                                                                                                                                      as MainWorkCenterPlant,@ObjectModel.foreignKey.association: '_SettlementOrder'_LocationAccountAssignment.SettlementOrder,@ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'_LocationAccountAssignment._WorkCenter.WorkCenter,@ObjectModel.foreignKey.association: '_WorkCenterPlant'_LocationAccountAssignment._WorkCenter.Plant                                                                                                                                                                                                                                                                 as WorkCenterPlant,@ObjectModel.foreignKey.association: '_MainWorkCenter'I_FunctionalLocation.WorkCenterInternalID                                                                                                                                                                                                                                                                    as MainWorkCenterInternalID,@ObjectModel.foreignKey.association: '_WorkCenter'_LocationAccountAssignment.WorkCenterInternalID,@ObjectModel.foreignKey.association: '_WorkCenterType'_LocationAccountAssignment.WorkCenterTypeCode,/* Additional fields */// I_FunctionalLocation@ObjectModel.hierarchy.association: '_SuperiorFunctionalLocation'SuperiorFunctionalLocation,@Semantics.systemDate.createdAt: trueI_FunctionalLocation.CreationDate,@Semantics.systemDate.lastChangedAt: trueI_FunctionalLocation.LastChangeDate,AuthorizationGroup,@Semantics.systemDateTime.lastChangedAt: trueI_FunctionalLocation.LastChangeDateTime,@ObjectModel.foreignKey.association: '_FuncnlLocIsMarkedForDeletion'--@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 FuncnlLocIsMarkedForDeletion,// I_LocationAccountAssignment@ObjectModel.foreignKey.association: '_WBSElementBasicData'cast( _LocationAccountAssignment.WBSElementInternalID as ps_psp_pnr preserving type ) as WBSElementInternalID,//I_LinearAssetManagementDatacast( cast( I_FunctionalLocation._LinearAssetManagementData.LinearDataStartPoint as abap.dec(11, 3) ) as eaml_start_point )                                                                                                                                                                                      as LinearDataStartPoint,cast( cast( I_FunctionalLocation._LinearAssetManagementData.LinearDataEndPoint as abap.dec(11, 3) ) as eaml_end_point )as LinearDataEndPoint,@Semantics.quantity.unitOfMeasure: 'LinearDataUnitOfMeasure'I_FunctionalLocation._LinearAssetManagementData.LinearDataLength,@Semantics.unitOfMeasure: trueI_FunctionalLocation._LinearAssetManagementData.LinearDataUnitOfMeasure,/* Associations */_FunctionalLocationText,_FunctionalLocationCategory,_ConstructionMaterial,_TechnicalObjectType,_MaintenancePlannerGroup,_MaintenancePlanningPlant,_PrimaryLabel._FunctionalLocLabelingSyst,_WBSElementBasicData,_LocationAccountAssignment._PlantSection,_LocationAccountAssignment._Location,_LocationAccountAssignment._Address,_LocationAccountAssignment._CompanyCode,_LocationAccountAssignment._MaintenancePlant,_LocationAccountAssignment._MasterFixedAsset,_LocationAccountAssignment._ABCIndicator,_LocationAccountAssignment._CostCenter,_LocationAccountAssignment._ControllingArea,_LocationAccountAssignment._SettlementOrder,_LocationAccountAssignment._WorkCenter,_LocationAccountAssignment._WorkCenterType,_MainWorkCenterBySemanticKey,_MainWorkCenterPlant,_WorkCenterBySemanticKey,_WorkCenterPlant,_MainWorkCenter,_FuncnlLocIsMarkedForDeletion,_SuperiorFunctionalLocation,_MaintenancePlanPlant,_FuncnlLocationHierarchyNode
}
  • 事务代码:IL03/IH06
    功能位置结构、对应工厂、成本中心

  • 视图结构:

字段名称 设备名称
功能位置 FUNCTIONALLOCATION
ABC 标识 ABCINDICATOR
地址编号 ADDRESSID
资产 MASTERFIXEDASSET
构造类型 CONSTRUCTIONMATERIAL
公司代码 COMPANYCODE
成本中心 COSTCENTER
成本控制范围 CONTROLLINGAREA
开始日期 OPERATIONSTARTDATE
对象类型 TECHNICALOBJECTTYPE
位置 ASSETLOCATION
维护工厂 MAINTENANCEPLANT
房间 ASSETROOM
计划工厂 MAINTENANCEPLANNINGPLANT
厂区 PLANTSECTION
计划人员组 MAINTENANCEPLANNERGROUP
标志系统 FUNCTIONALLOCLABELINGSYST
功能位置 FUNCNLLOCPRIMARYLABELNAME
版本 FUNCTIONALLOCATIONLABELVERSION
WBS 要素 WBSELEMENT
功能位置种类 FUNCTIONALLOCATIONCATEGORY
主工作中心 MAINWORKCENTER
工厂工作中心 MAINWORKCENTERPLANT
结算订单 SETTLEMENTORDER
工作中心 WORKCENTER
工厂 WORKCENTERPLANT
工作中心 MAINWORKCENTERINTERNALID
PP工作中心 WORKCENTERINTERNALID
对象类型 WORKCENTERTYPECODE
上级功能位置 SUPERIORFUNCTIONALLOCATION
创建日期 CREATIONDATE
更改日期 LASTCHANGEDATE
授权组 AUTHORIZATIONGROUP
时戳 LASTCHANGEDATETIME
已删除 FUNCNLLOCISMARKEDFORDELETION
WBS 要素 WBSELEMENTINTERNALID
起点 LINEARDATASTARTPOINT
终点 LINEARDATAENDPOINT
LINEARDATALENGTH
计量单位 LINEARDATAUNITOFMEASURE

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

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

相关文章

2024年10大顶级项目管理工具

在当今快节奏的商业环境中,高效的项目管理对于企业的成功至关重要。无论是产品研发、市场营销还是企业运营,都离不开有效的项目管理工具。随着技术的不断发展,2024年涌现出了许多优秀的项目管理工具,它们各具特色,能够满足不同团队和项目的需求。本文将为您介绍2024年的10…

switchhost host添加不生效

80端口Ping不通访问不到 去掉:80端口,访问正常

婴语翻译器

婴语翻译器 用Java写的一个非常简单的程序,可以将一句话翻译成啊吧啊吧,使用了Java Swing。 一. UI UI 使用java 的Swing组件,上下两个JTextArea ,两个button。 两个时间监听,获取上面文本框的内容加密后输出到下面文本框,获取下面文本框的内容解密后输出到上面文本框。 …

字体推荐,等宽字体

nerd 字体网页 https://www.nerdfonts.com/Hurmit Nerd Font Mono DejaVu Sans Mono ConsolasFiraCode   hack Meslo

自托管!一款开源的网站统计工具!

Umami —— 一个开源的、以隐私为中心的网站分析工具,是 Google Analytics 的开源替代品,提供网站流量、用户行为分析和访问统计等功能。大家好,我是 Java陈序员。 无论是企业开发,还是个人独立开发,往往都有自己的网站产品。 为了更好的了解掌握网站的访问情况,常常需要…

介绍1个简单好用的随手画圆网站,关键还免费,挑战单手画圆啦

# 网站介绍无聊的时候不知道画什么,解决画画的烦恼,从单手画圆开始 网站网址https://whattodraw.art 功能特点1、画画的想法从简单、中等、难根据选择随机生成 2、免费无登录不注册3、有个转盘,自定义画画的想法随机生成4、从最简单的开始,单手画圆,看看你的得分吧 硅谷王…

项目管理,如何洞察业务痛点

洞察项目管理中的业务痛点需要明确常见痛点、建立有效的沟通机制、制定明确的项目计划、实施有效的监控和评估以及关注团队协作和激励等方面。通过这些方法的应用和实践经验的积累,可以不断提高项目管理水平并确保项目的成功实施。在项目管理中,洞察业务痛点对于确保项目的成…

TCP/IP四层模型与OSI参考模型

TCP/IP四层模型:1.链路层(数据链路层/网络接口层):包括操作系统中的设备驱动程序、计算机中对应的网络接口卡 2.网络层(互联网层):处理分组在网络中的活动,比如分组的选路。 3.运输层:主要为两台主机上的应用提供端到端的通信。 4.应用层:负责处理特定的应用程序细节…

欧拉OpenEuler下SSH或SCP免密连接配置方法

以下操作均在本地服务器上进行: 一、生成公钥和私钥 ssh-keygen -t rsa二、将公钥复制到远程服务器 ssh-copy-id username@remote_server三、配置免密登录 ssh username@remote_server四、 虽然免密登录提高了工作效率和安全性,但也有一些注意事项需要牢记。 首先,务必保护好…

springboot-data-jdbc优劣

经过一段时间对springboot-data-jdbc的使用,总结了一下几点: 优点:通过配置外键关联,在保存一个实体类的情况下,会自动保存对应的外键信息(比如上图实体类如果设置了legItems和orderDetails的值,则会保存对应的数据) 通过配置外键关联,在查询一个实体类的情况下,会自…

解密Prompt45. 再探LLM Scalable Oversight -辩论、博弈哪家强

以上两个方向相对正交分别从Verifier和Generator两个方去尝试解决Scalable Oversight的问题,今天再聊一个相对Hybrid的方向,通过Verifier和Generator相互博弈来同时提升双方实力。这里分别介绍Anthropic的辩论法,和OpenAI的博弈法之前我们已经介绍过几个针对Scalable Oversi…

读数据保护:工作负载的可恢复性21构建恢复站点

构建恢复站点1. 恢复站点 1.1. 恢复站点是一个真实或虚拟的地点,用来在计算环境遭到灾难时取代该环境 1.2. 当年的恢复站点总是由另一个数据中心充当,而且那个数据中心最好离你们目前的这个比较远 1.3. 现在一般都不采用实体的数据中心了,而且这个恢复站点一般也不会由你们的…