首页 > 其他分享 >CDS标准视图:功能位置信息 I_FunctionalLocationData

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

时间:2024-12-30 10:43:37浏览次数:1  
标签:ObjectModel foreignKey 功能位置 视图 FunctionalLocation FunctionalLocationData ._ Loca

  • 视图名称: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_FunctionalLocationData
  as select from I_FunctionalLocation as I_FunctionalLocation
  association [0..1] to I_FunclocationLabelInternal as _PrimaryLabel                 on  $projection.FunctionalLocation             = _PrimaryLabel.FunctionalLocation
                                                                                     and _PrimaryLabel.FuncnlLocLabelIsPrimaryLabel = 'X'
                                                                                     and _PrimaryLabel.FunctionalLocLabelIsActive   = 'X'
  association [0..1] to I_WorkCenterBySemanticKey   as _MainWorkCenterBySemanticKey  on  $projection.MainWorkCenter      = _MainWorkCenterBySemanticKey.WorkCenter
                                                                                     and $projection.MainWorkCenterPlant = _MainWorkCenterBySemanticKey.Plant
  association [0..1] to I_Plant                     as _MainWorkCenterPlant          on  $projection.MainWorkCenterPlant = _MainWorkCenterPlant.Plant
  association [0..1] to I_WorkCenterBySemanticKey   as _WorkCenterBySemanticKey      on  $projection.workcenter      = _WorkCenterBySemanticKey.WorkCenter
                                                                                     and $projection.WorkCenterPlant = _WorkCenterBySemanticKey.Plant
  association [0..1] to I_Plant                     as _WorkCenterPlant              on  $projection.WorkCenterPlant = _WorkCenterPlant.Plant
  association [0..1] to I_WorkCenter                as _MainWorkCenter               on  _MainWorkCenter.WorkCenterInternalID = $projection.MainWorkCenterInternalID
                                                                                     and _MainWorkCenter.WorkCenterTypeCode   = 'A'
  association [0..1] to I_Indicator                 as _FuncnlLocIsMarkedForDeletion on  $projection.FuncnlLocIsMarkedForDeletion = _FuncnlLocIsMarkedForDeletion.IndicatorValue
  association [0..1] to I_FunctionalLocationData    as _SuperiorFunctionalLocation   on  $projection.SuperiorFunctionalLocation = _SuperiorFunctionalLocation.FunctionalLocation
  association[0..1] to I_MaintenancePlanPlant       as _MaintenancePlanPlant         on $projection.MaintenancePlanningPlant = _MaintenancePlanPlant.MaintenancePlanningPlant
  association[0..1] to I_FuncnlLocationHierarchyNode as _FuncnlLocationHierarchyNode on $projection.FunctionalLocation = _FuncnlLocationHierarchyNode.FunctionalLocation
  association [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.FunctionalLocation
  association [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: true
      I_FunctionalLocation.CreationDate,
      @Semantics.systemDate.lastChangedAt: true
      I_FunctionalLocation.LastChangeDate,
      AuthorizationGroup,
      @Semantics.systemDateTime.lastChangedAt: true
      I_FunctionalLocation.LastChangeDateTime,

      @ObjectModel.foreignKey.association: '_FuncnlLocIsMarkedForDeletion'
      --@Semantics.booleanIndicator: true
      cast( 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_LinearAssetManagementData
      cast( 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: true
      I_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

标签:ObjectModel,foreignKey,功能位置,视图,FunctionalLocation,FunctionalLocationData,._,Loca
From: https://www.cnblogs.com/guanxing/p/18640319

相关文章

  • CDS标准视图:功能位置描述 I_FunctionalLocationText
    视图名称:功能位置描述I_FunctionalLocationText视图类型:基本视图视图代码:点击查看代码@EndUserText.label:'FunctionalLocation-Text'@ObjectModel.dataCategory:#TEXT@VDM.viewType:#BASIC@AbapCatalog:{sqlViewName:'IFLOCTEXT',preserveKey}@AbapCatalo......
  • 每天40分玩转Django:Django类视图
    Django类视图一、知识要点概览表类别知识点掌握程度要求基础视图View、TemplateView、RedirectView深入理解通用显示视图ListView、DetailView熟练应用通用编辑视图CreateView、UpdateView、DeleteView熟练应用Mixin机制ContextMixin、LoginRequiredMixin理解原理视图配置......
  • 视图、存储过程、触发器 整理
    //视图//视图就是基表的映射//创建视图//create[orreplace]view视图名称[(视图列表)]asselect语句[with[cascaded|local]checkoption];//查看创建视图语句//showcreateview视图名称;//查看视图书记//select*from视图名称...;//修改视图//方......
  • SwiftUI 简单时间线视图开发教程
    SwiftUI简单时间线视图开发教程本教程详细介绍了如何实现一个时间线视图,并逐步分析代码的设计思路。我们会特别分析时间线中连接线的实现,探讨其连续性如何保持以及偏移量计算的原因。简单时间线视图1.整体视图结构TimeLineView是整个时间线组件的入口,包含以下......
  • CDS标准视图:功能位置 I_FunctionalLocation
    视图名称:I_FunctionalLocation视图类型:基础视图代码:点击查看代码@EndUserText.label:'FunctionalLocation'@Analytics:{dataCategory:#DIMENSION}@VDM.viewType:#BASIC@AbapCatalog:{sqlViewName:'IFUNCTLLOCATION',compiler.compareFilter,preserveK......
  • CDS标准视图:设备功能位置变更历史 I_EQUIPINSTALLATIONHISTORYC
    视图名称:I_EQUIPINSTALLATIONHISTORYC视图类型:基础视图视图代码:点击查看代码@EndUserText.label:'EquipmentInstallationHistory-Cube'@VDM:{viewType:#COMPOSITE,lifecycle.contract.type:#PUBLIC_LOCAL_API}@AccessControl.authorizationCheck:#CHECK......
  • GA/T1400视图库平台EasyCVR关于网络故障排查的思路和常用排错方法
    在当今这个高度依赖网络的时代,无论是企业还是个人,网络的稳定性和可靠性都至关重要。然而,网络故障的发生往往不可避免,它们可能会影响到我们的日常工作和沟通效率。对于经常与电脑、交换机等网络设备打交道的朋友来说,掌握一些基本的网络故障排查和处理技巧是非常必要的。本文将为大......
  • CDS标准视图:设备信息 I_EquipmentData
    视图名称:I_EquipmentData视图类型:基础视图视图代码:点击查看代码@EndUserText.label:'EquipmentData'@VDM.viewType:#COMPOSITE@AbapCatalog.sqlViewName:'IEQUIPMENTATTR'@AbapCatalog.compiler.compareFilter:true@ClientHandling.algorithm:#SESSION_VARIA......
  • 日期迁移视图
    视图名称:I_ShiftedCalendarDate视图类型:带参数的视图时间期间偏移量单位(P_TimePeriodOffsetUnit):D代表天W代表周M代表月Q代表季Y代表年期间偏移量持续时间(P_TimePeriodOffsetDuration):对应数量视图代码:点击查看代码@AbapCatalog:{sqlViewName:'IFISCALDATE'......
  • Qt 模型Model/视图View/代理Delegate
    一、模型/视图/代理架构简介1、应用程序中往往要存储大量的数据,并对它们进行处理,然后可以通过各种形式显示给用户,用户需要时还可以对数据进行编辑。2、Qt中的模型/视图架构就是用来实现大量数据的存储、处理及其显示的。3、MVC设计模式:(1)、模型(Model)是应用对象,用......