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

CDS标准视图:功能位置 I_FunctionalLocation

时间:2024-12-27 15:21:14浏览次数:5  
标签:projection .. ObjectModel iflot 功能位置 视图 FunctionalLocation association

  • 视图名称:I_FunctionalLocation
  • 视图类型:基础
  • 视图代码:
点击查看代码
@EndUserText.label: 'Functional Location'
@Analytics: { dataCategory: #DIMENSION }
@VDM.viewType: #BASIC
@AbapCatalog: { sqlViewName: 'IFUNCTLLOCATION', compiler.compareFilter, preserveKey }
@AccessControl.authorizationCheck:#CHECK
@ObjectModel.representativeKey: 'FunctionalLocation'
@ObjectModel.semanticKey:  [ 'FunctionalLocation' ]
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@AccessControl.privilegedAssociations:['_CreatedByUser','_LastChangedByUser','_LocationAccountAssignment', '_Status']

@Metadata: { ignorePropagatedAnnotations, allowExtensions }
@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET]

define view I_FunctionalLocation
  as select from iflot
  association [0..1] to I_FunctionalLocationCategory as _FunctionalLocationCategory    on  _FunctionalLocationCategory.FunctionalLocationCategory = $projection.FunctionalLocationCategory
  association [0..1] to I_TechnicalObjectType        as _TechnicalObjectType           on  _TechnicalObjectType.TechnicalObjectType = $projection.TechnicalObjectType
  association [0..1] to I_WorkCenterType             as _WorkCenterType                on  $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode
  association [0..1] to I_WorkCenter                 as _WorkCenter                    on  _WorkCenter.WorkCenterInternalID = $projection.WorkCenterInternalID
                                                                                       and _WorkCenter.WorkCenterTypeCode   = $projection.WorkCenterTypeCode
  association [0..1] to I_LocationAccountAssignment  as _LocationAccountAssignment     on  _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr = $projection.MaintObjectLocAcctAssgmtNmbr
  association [0..*] to I_FunctionalLocationText     as _FunctionalLocationText        on  _FunctionalLocationText.FunctionalLocation = $projection.FunctionalLocation
  association [0..1] to I_FunctionalLocation         as _SuperiorFunctionalLocation    on  _SuperiorFunctionalLocation.FunctionalLocation = $projection.SuperiorFunctionalLocation
  association [0..*] to I_FunctionalLocationText     as _SupFunctionalLocationText     on  _SupFunctionalLocationText.FunctionalLocation = $projection.SuperiorFunctionalLocation
  association [0..1] to I_User                       as _CreatedByUser                 on  _CreatedByUser.UserID = $projection.CreatedByUser
  association [0..1] to I_User                       as _LastChangedByUser             on  _LastChangedByUser.UserID = $projection.LastChangedByUser
  association [0..1] to I_MaintenancePlanPlant       as _MaintenancePlanningPlant      on  _MaintenancePlanningPlant.MaintenancePlanningPlant = $projection.MaintenancePlanningPlant
  association [0..1] to I_MaintenancePlannerGroup    as _MaintenancePlannerGroup       on  $projection.MaintenancePlannerGroup  = _MaintenancePlannerGroup.MaintenancePlannerGroup
                                                                                       and $projection.MaintenancePlanningPlant = _MaintenancePlannerGroup.MaintenancePlanningPlant
  association [0..1] to I_Country                    as _ManufacturerCountry           on  $projection.ManufacturerCountry = _ManufacturerCountry.Country
  association [0..1] to I_Currency                   as _Currency                      on  $projection.Currency = _Currency.Currency
  association [0..1] to I_TechnicalReport            as _FunctionalLocationCodeCatalog on  $projection.CatalogProfile = _FunctionalLocationCodeCatalog.CatalogProfile

  association [0..1] to I_FuncLocationStructure      as _FuncLocationStructure         on  $projection.FuncLocationStructure = _FuncLocationStructure.FuncLocationStructure

  association [0..1] to I_FunctionalLocationLabel    as _FunctionalLocationLabel       on  _FunctionalLocationLabel.FunctionalLocation = $projection.FunctionalLocation
  association [0..1] to I_Material                   as _ConstructionMaterial          on  $projection.ConstructionMaterial = _ConstructionMaterial.Material

  association [0..1] to I_UnitOfMeasure              as _GrossWeightUnit               on  $projection.GrossWeightUnit = _GrossWeightUnit.UnitOfMeasure
  association [0..1] to I_LinearAssetManagementData  as _LinearAssetManagementData     on  $projection.FunctionalLocation                  = _LinearAssetManagementData.LinearDataObjectKey
                                                                                       and _LinearAssetManagementData.LinearDataObjectType = 'IF'
  association [0..*] to I_StatusObjectStatus         as _Status                        on  $projection.MaintObjectInternalID = _Status.StatusObject
  association [0..*] to I_PlantMaintenancePartner    as _PlantMaintenancePartner       on  $projection.MaintObjectInternalID = _PlantMaintenancePartner.MaintObjectInternalID

  -- Extension, do not expose as association:
  association [0..1] to E_FunctionalLocation         as _FunctionalLocationExtension   on  _FunctionalLocationExtension.FunctionalLocation = $projection.FunctionalLocation

{
      @ObjectModel.text.association: '_FunctionalLocationText'
      key iflot.tplnr as FunctionalLocation,
      @ObjectModel.foreignKey.association: '_FuncLocationStructure'
      iflot.tplkz           as FuncLocationStructure,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_FuncnlLocCatStdVH',
                     element: 'FunctionalLocationCategory' }
        }]
      @ObjectModel.foreignKey.association: '_FunctionalLocationCategory'
      iflot.fltyp           as FunctionalLocationCategory,
      @ObjectModel.foreignKey.association: '_WorkCenter'
      iflot.lgwid           as WorkCenterInternalID,
      @ObjectModel.foreignKey.association: '_WorkCenterType'
      iflot.pm_objty        as WorkCenterTypeCode,

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_TechnicalObjectTypeStdVH',
                     element: 'TechnicalObjectType' }
        }]
      @ObjectModel.foreignKey.association: '_TechnicalObjectType'
      iflot.eqart           as TechnicalObjectType,
      @ObjectModel.foreignKey.association: '_LocationAccountAssignment'
      iflot.iloan           as MaintObjectLocAcctAssgmtNmbr,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_MaterialStdVH',
                     element: 'Material' }
        }]
      @ObjectModel.foreignKey.association: '_ConstructionMaterial'
      iflot.submt           as ConstructionMaterial,

      // Admin data
      @Semantics.user.createdBy: true
      iflot.ernam           as CreatedByUser,
      @Semantics.systemDate.createdAt : true
      iflot.erdat           as CreationDate,
      @Semantics.user.lastChangedBy: true
      iflot.aenam           as LastChangedByUser,
      @Semantics.systemDate.lastChangedAt: true
      iflot.aedat           as LastChangeDate,

      iflot.herst           as AssetManufacturerName,
      iflot.typbz           as ManufacturerPartTypeName,

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_MaintPlnrGrpStdVH',
                     element: 'MaintenancePlannerGroup' },
          additionalBinding: [{ localElement: 'MaintenancePlanningPlant',
                                element: 'MaintenancePlanningPlant' }]
        }]
      @ObjectModel.foreignKey.association: '_MaintenancePlannerGroup'
      iflot.ingrp           as MaintenancePlannerGroup,
      @ObjectModel.foreignKey.association: '_MaintenancePlanningPlant'
      iflot.iwerk           as MaintenancePlanningPlant,
      @ObjectModel.foreignKey.association: '_FunctionalLocationCodeCatalog'
      iflot.rbnr            as CatalogProfile,
      iflot.begru           as AuthorizationGroup,
      @ObjectModel.text.association: '_SupFunctionalLocationText'
      iflot.tplma           as SuperiorFunctionalLocation,

      @ObjectModel.foreignKey.association: '_ManufacturerCountry'
      iflot.herld           as ManufacturerCountry,
      iflot.baujj           as ConstructionYear,
      iflot.baumm           as ConstructionMonth,
      @Semantics.amount.currencyCode: 'Currency'
      iflot.answt           as AcquisitionValue,
      @Semantics.currencyCode: true
      iflot.waers           as Currency,
      iflot.ansdt           as AcquisitionDate,
      iflot.objnr           as MaintObjectInternalID,
      iflot.posnr           as FuncnlLocPosInSuperiorTechObj,
      iflot.mapar           as ManufacturerPartNmbr,
      iflot.serge           as ManufacturerSerialNumber,
      iflot.invnr           as InventoryNumber,

      @Semantics.quantity.unitOfMeasure: 'GrossWeightUnit'
      iflot.brgew           as GrossWeight,

      @ObjectModel.foreignKey.association: '_GrossWeightUnit'
      @Semantics.unitOfMeasure: true
      iflot.gewei           as GrossWeightUnit,
      iflot.groes           as SizeOrDimensionText,

      iflot.datab           as OperationStartDate,

      @Semantics.systemDateTime.lastChangedAt: true
      iflot.changeddatetime as LastChangeDateTime,

      iflot.iequi           as EquipmentInstallationIsAllowed,

      iflot.einzl           as OnePieceOfEquipmentIsAllowed,

      // Propagate association
      _LastChangedByUser,
      _CreatedByUser,
      _FunctionalLocationText,
      _FunctionalLocationCategory,
      _SuperiorFunctionalLocation,
      _SupFunctionalLocationText,
      _WorkCenterType,
      _WorkCenter,
      _TechnicalObjectType,
      _LocationAccountAssignment,
      _MaintenancePlanningPlant,
      _MaintenancePlannerGroup,
      _ManufacturerCountry,
      _Currency,
      _FunctionalLocationCodeCatalog,
      _FuncLocationStructure,
      _FunctionalLocationLabel,
      _ConstructionMaterial,
      _GrossWeightUnit,
      _LinearAssetManagementData,
      _Status,
      _PlantMaintenancePartner
}
  • 事务代码:IL03/IH06
    功能位置结构和对应的计划工厂

  • 视图结构:

字段名称 设备名称
功能位置 FUNCTIONALLOCATION
结构标识 FUNCLOCATIONSTRUCTURE
功能位置种类 FUNCTIONALLOCATIONCATEGORY
工作中心 WORKCENTERINTERNALID
对象类型 WORKCENTERTYPECODE
对象类型 TECHNICALOBJECTTYPE
位置/科目分配 MAINTOBJECTLOCACCTASSGMTNMBR
构造类型 CONSTRUCTIONMATERIAL
创建人 CREATEDBYUSER
创建日期 CREATIONDATE
更改人 LASTCHANGEDBYUSER
更改日期 LASTCHANGEDATE
制造商 ASSETMANUFACTURERNAME
型号 MANUFACTURERPARTTYPENAME
计划人员组 MAINTENANCEPLANNERGROUP
计划工厂 MAINTENANCEPLANNINGPLANT
类别参数文件 CATALOGPROFILE
授权组 AUTHORIZATIONGROUP
上级功能位置 SUPERIORFUNCTIONALLOCATION
制造国家/地区 MANUFACTURERCOUNTRY
制造年份 CONSTRUCTIONYEAR
制造月份 CONSTRUCTIONMONTH
购置价值 ACQUISITIONVALUE
货币 CURRENCY
购置日期 ACQUISITIONDATE
对象编号 MAINTOBJECTINTERNALID
位置 FUNCNLLOCPOSINSUPERIORTECHOBJ
制造商零件号 MANUFACTURERPARTNMBR
制造商序列号 MANUFACTURERSERIALNUMBER
库存号 INVENTORYNUMBER
毛重 GROSSWEIGHT
重量单位 GROSSWEIGHTUNIT
大小/尺寸 SIZEORDIMENSIONTEXT
开始日期 OPERATIONSTARTDATE
时戳 LASTCHANGEDATETIME
设备安装 EQUIPMENTINSTALLATIONISALLOWED
单个安装 ONEPIECEOFEQUIPMENTISALLOWED

标签:projection,..,ObjectModel,iflot,功能位置,视图,FunctionalLocation,association
From: https://www.cnblogs.com/guanxing/p/18635858

相关文章

  • 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)是应用对象,用......
  • ORACLE和会话相关的视图
    ORACLE和会话相关的视图1. v$session和v$session_waitv$session视图记录了当前连接Session的信息,这些信息包括用户名、连接主机、Session正在执行的SQL的SQL_ADDRESS、SQL_HASH_VALUE等,非常详尽。v$session_wait则记录了当前连接session正在等待的资源信息。在Oracle10g中,Ora......
  • 二叉树的右视图(层次遍历)
    给定一个二叉树的 根节点 root,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。 示例1:输入:root=[1,2,3,null,5,null,4]输出:[1,3,4]解释:示例2:输入:root=[1,2,3,4,null,null,null,5]输出:[1,3,4,5]解释:示例3:输入:root=[1,null,3......
  • Loadrunner12 Controller 运行时不显示具体信息可视化的表格视图 解决方案
     loadrunnercontroller点击run运行时,下方的窗口没有显示表格视图,无法实现可查看资源的实时运行情况 实际上,左侧已经显示设计场景在运行了,蓝色部分为可查看部分 解决方案:1.点击view-viewgraphs-showxxgraphs;选择需要显示几个表格形式(这里我选择4个) 2.......
  • 【Python GUI 编程】tkinter :Ttk 树视图 Treeview
    在本文中,将介绍TkinterTreeview树视图小部件以及如何使用它来显示表格和分层数据。Tkinter中,没有专门的表格部件,Treeview可以很好地显示表格数据,支持多列显示。要创建Treeview树视图小部件,可以使用以下构造函数:tree=ttk.Treeview(master,**options)Treeview显示表......
  • Vue.js组件开发-路由与视图切换
    在Vue.js中,路由与视图切换是通过VueRouter来实现。VueRouter提供了声明式的路由配置、嵌套路由、动态路由匹配、路由参数、路由守卫等功能。基本概念‌路由‌:定义URL路径和组件之间的映射关系。‌视图‌:与特定路由相关联的组件,当用户访问某个路由时,对应的视图组件会被渲......