• 视图名称:I_Equipment
  • 视图类型:基础视图
  • 视图内容:

    设备编码和设备内容

    设备来源及详细信息

    有效期
  • 事务代码:

    IE03,IH08
  • 视图代码
点击查看代码
@EndUserText.label: 'Equipment'
@Analytics: { dataCategory: #DIMENSION }
@VDM.viewType: #BASIC
@AbapCatalog: { sqlViewName: 'IEQUIPMENT', compiler.compareFilter, preserveKey } @AccessControl: {
authorizationCheck:#CHECK,
privilegedAssociations:['_CreatedByUser','_LastChangedByUser','_Status']
}
@ObjectModel.representativeKey: 'Equipment'
@ObjectModel.semanticKey: [ 'Equipment' ]
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #L @Metadata: { ignorePropagatedAnnotations, allowExtensions }
@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET] define view I_Equipment
as select from equi
association [0..1] to I_EquipmentCategory as _EquipmentCategory on _EquipmentCategory.EquipmentCategory = $projection.EquipmentCategory
association [0..1] to I_TechnicalObjectType as _TechnicalObjectType on _TechnicalObjectType.TechnicalObjectType = $projection.TechnicalObjectType
association [0..*] to I_EquipmentText as _EquipmentText on _EquipmentText.Equipment = $projection.Equipment
association [0..*] to I_EquipmentTimeSeg as _EquipmentTimeSeg on _EquipmentTimeSeg.Equipment = $projection.Equipment
association [0..1] to I_EquipmentTimeSeg as _CurrentTimeSegment on _CurrentTimeSegment.Equipment = $projection.Equipment
and _CurrentTimeSegment.EquipUsagePeriodSequenceNumber = '001'
and _CurrentTimeSegment.ValidityEndDate = '99991231'
association [0..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_User as _CreatedByUser on $projection.CreatedByUser = _CreatedByUser.UserID
association [0..1] to I_User as _LastChangedByUser on $projection.LastChangedByUser = _LastChangedByUser.UserID
association [0..1] to I_Currency as _Currency on $projection.Currency = _Currency.Currency
association [0..1] to I_Division as _Division on $projection.Division = _Division.Division
association [0..1] to I_StorageLocation as _StorageLocation on $projection.StorageLocation = _StorageLocation.StorageLocation
and $projection.Plant = _StorageLocation.Plant
association [0..1] to I_SerialNumberStockSegment as _SerialNumberStockSegment on $projection.Equipment = _SerialNumberStockSegment.Equipment
association [0..1] to I_EquipmentStockSegment as _StockSegment on _StockSegment.Equipment = $projection.Equipment association [0..1] to I_Material as _Material on $projection.Material = _Material.Material
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
association [0..1] to I_Country as _ManufacturerCountry on $projection.ManufacturerCountry = _ManufacturerCountry.Country
-- association [0..1] to I_BatchCrossPlant as _BatchCrossPlant on $projection.Material = _BatchCrossPlant.Material
-- and $projection.Batch = _BatchCrossPlant.Batch
association [0..1] to I_Batch as _Batch on $projection.Plant = _Batch.Plant
and $projection.Material = _Batch.Material
and $projection.Batch = _Batch.Batch
association [0..1] to I_MasterWarranty as _MasterWarranty on $projection.MasterWarranty = _MasterWarranty.MasterWarranty
association [0..*] to I_PlantMaintenancePartner as _PlantMaintenancePartner on $projection.MaintObjectInternalID = _PlantMaintenancePartner.MaintObjectInternalID
association [0..*] to I_MasterWrntyObjectAssgmt as _MasterWrntyObjectAssgmt on $projection.MaintObjectInternalID = _MasterWrntyObjectAssgmt.ObjectInternalID
association [0..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
association [0..1] to I_UnitOfMeasure as _GrossWeightUnit on $projection.GrossWeightUnit = _GrossWeightUnit.UnitOfMeasure
association [0..1] to I_LinearAssetManagementData as _LinearAssetManagementData on $projection.Equipment = _LinearAssetManagementData.LinearDataObjectKey
and _LinearAssetManagementData.LinearDataObjectType = 'IE'
association [0..*] to I_StatusObjectStatus as _Status on $projection.MaintObjectInternalID = _Status.StatusObject -- Extensions, do not expose as association:
association [0..1] to E_Equipment as _EquipmentExtension on _EquipmentExtension.Equipment = $projection.Equipment {
@ObjectModel.text.association: '_EquipmentText'
key equi.equnr as Equipment, @Consumption.valueHelpDefinition: [
{ entity: { name: 'I_EquipmentCategoryStdVH',
element: 'EquipmentCategory' }
}] @ObjectModel.foreignKey.association: '_EquipmentCategory'
equi.eqtyp as EquipmentCategory, @Consumption.valueHelpDefinition: [
{ entity: { name: 'I_TechnicalObjectTypeStdVH',
element: 'TechnicalObjectType' }
}] @ObjectModel.foreignKey.association: '_TechnicalObjectType'
equi.eqart as TechnicalObjectType,
@ObjectModel.foreignKey.association: '_Plant'
equi.werk as Plant,
@ObjectModel.foreignKey.association: '_Division'
equi.sparte as Division,
@ObjectModel.foreignKey.association: '_StorageLocation'
equi.lager as StorageLocation, // Admin data
@Semantics.user.createdBy: true
equi.ernam as CreatedByUser,
@Semantics.user.lastChangedBy: true
equi.aenam as LastChangedByUser,
@Semantics.systemDate.createdAt : true
equi.erdat as CreationDate,
@Semantics.systemDate.lastChangedAt: true
equi.aedat as LastChangeDate, equi.herst as AssetManufacturerName,
equi.typbz as ManufacturerPartTypeName,
@Semantics.address.country: true
@ObjectModel.foreignKey.association: '_ManufacturerCountry'
equi.herld as ManufacturerCountry, equi.baujj as ConstructionYear,
equi.baumm as ConstructionMonth, equi.ansdt as AcquisitionDate, @Semantics.currencyCode:true
equi.waers as Currency, @Semantics.amount.currencyCode: 'Currency'
@DefaultAggregation: #SUM
equi.answt as AcquisitionValue, equi.objnr as MaintObjectInternalID,
equi.sernr as SerialNumber,
equi.eqlfn as EquipUsagePeriodSequenceNumber, @Consumption.valueHelpDefinition: [
{ entity: { name: 'I_ProductStdVH',
element: 'Product' }
}] @ObjectModel.foreignKey.association: '_Material'
equi.matnr as Material,
@ObjectModel.foreignKey.association: '_Customer'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Customer_VH',
element: 'Customer' }
}]
equi.kunde as Customer,
equi.begru as AuthorizationGroup,
equi.serge as ManufacturerSerialNumber, equi.uii as UniqueItemIdentifier,
equi.iuid_type as UniqueItemIdentifierStrucType,
equi.uii_plant as UniqueItemIdentifierRespPlant, equi.act_change_aa as AssetSynchronizationRule, equi.invnr as InventoryNumber,
@Semantics.quantity.unitOfMeasure: 'GrossWeightUnit'
@DefaultAggregation:#SUM
equi.brgew as GrossWeight,
@ObjectModel.foreignKey.association: '_GrossWeightUnit'
@Semantics.unitOfMeasure: true
equi.gewei as GrossWeightUnit,
equi.groes as SizeOrDimensionText, equi.charge as Batch, equi.inbdt as OperationStartDate, @Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Supplier_VH',
element: 'Supplier' }
}]
@ObjectModel.foreignKey.association: '_Supplier'
equi.elief as Supplier,
equi.s_equi as HasEquipmentData,
cast( equi.s_eqbs as equipmenthasstockinformation preserving type ) as EquipmentHasStockInformation,
@ObjectModel.foreignKey.association: '_MasterWarranty'
equi.mganr as MasterWarranty, equi.changeddatetime as LastChangeDateTime,
equi.auldt as EquipmentFirstDeliveryDate,
_CurrentTimeSegment.ValidityStartDate,
_CurrentTimeSegment.ValidityEndDate, // Propagate associations
_MasterWarranty,
_CreatedByUser,
_LastChangedByUser,
_EquipmentText,
_EquipmentCategory,
_TechnicalObjectType,
_EquipmentTimeSeg,
_StockSegment,
_Currency,
_Plant,
_Division,
_StorageLocation,
_SerialNumberStockSegment,
_Material,
_Customer,
_ManufacturerCountry,
--_BatchCrossPlant: see BCP 1880093140
_Batch,
_CurrentTimeSegment,
_PlantMaintenancePartner,
_MasterWrntyObjectAssgmt,
_Supplier,
_LinearAssetManagementData,
_GrossWeightUnit,
_Status
}
  • 视图结构
字段名称 设备名称
设备 EQUIPMENT
设备种类 EQUIPMENTCATEGORY
对象类型 TECHNICALOBJECTTYPE
工厂 PLANT
产品组 DIVISION
地点 STORAGELOCATION
创建人 CREATEDBYUSER
更改人 LASTCHANGEDBYUSER
创建日期 CREATIONDATE
更改日期 LASTCHANGEDATE
制造商 ASSETMANUFACTURERNAME
型号 MANUFACTURERPARTTYPENAME
制造国家/地区 MANUFACTURERCOUNTRY
制造年份 CONSTRUCTIONYEAR
制造月份 CONSTRUCTIONMONTH
购置日期 ACQUISITIONDATE
货币 CURRENCY
购置价值 ACQUISITIONVALUE
对象编号 MAINTOBJECTINTERNALID

CDS标准视图:设备 I_Equipment的更多相关文章

  1. IE9兼容性视图与IE9标准视图

    如果你使用的是IE9,那么按下F12键就会出现开发者工具,上面有两个下拉菜单:浏览器模式和文档模式.那么什么是浏览器模式?什么又是文档模式?二者有何区别? 浏览器模式用于切换IE针对该网页的默认文档模 ...

  2. SAP CDS重定向视图和直接读这两者场景的性能比较

    A very rough performance comparison is performed in ER9/001. Comparison scenario The two below opera ...

  3. H3C 典型物理层标准和设备

  4. 教程:基于访问控制的ABAP CDS视图权限

    Hi! 对每一个CDS视图,我们都可以通过DCL(Data Control Language)定义访问控制.在这篇文章中,我会介绍ABAP CDS视图中非常重要的一面:权限管理. 本文的阐述基于我正在 ...

  5. Flask(10)- 标准类视图

    前言 前面文章讲解 Flask 路由的时候,都是将 URL 路径和一个视图函数关联 当 Flask 框架接收到请求后,会根据请求 URL,调用响应的视图函数进行处理 Flask 不仅提供了视图函数来处 ...

  6. View Programming Guide for iOS ---- iOS 视图编程指南(二)---View and Window Architecture

    View and Window Architecture 视图和窗口架构 Views and windows present your application’s user interface and ...

  7. View Programming Guide for iOS ---- iOS 视图编程指南(一)

    Next About Windows and Views 关于窗口和视图 In iOS, you use windows and views to present your application’s ...

  8. iOS,Core Animation--负责视图的复合功能

    简介 UIKit API UIKit是一组Objective-C API,为线条图形.Quartz图像和颜色操作提供Objective-C 封装,并提供2D绘制.图像处理及用户接口级别的动画.    ...

  9. 【Linux开发】【DSP开发】Linux设备驱动之——PCI 总线

    PCI总线概述  随着通用处理器和嵌入式技术的迅猛发展,越来越多的电子设备需要由处理器控制.目前大多数CPU和外部设备都会提供PCI总线的接口,PCI总线已成为计算机系统中一种应用广泛.通用的总线标准 ...

  10. ABAP CDS-Part 1(ABAP CDS实体)

    文章翻译自Tushar Sharma的文章,转载请注明原作者和译者! 目录 预备条件 一.概述 二.ABAP CDS实体(CDS Entity) a.定义ABAP CDS Views b.ABAP C ...

随机推荐

  1. 题解:CSP-S2020] 函数调用

    题解:CSP-S2020] 函数调用 一句话题意:给定一个有初始值的序列,支持如下三种操作: 1.单点加 2.全局乘 3.递归某些操作1.2.3 求最终的序列. 标签:topsort,动态规划,转化贡 ...

  2. Adobe PS 2024 软件分享 torrent

    Adobe-Photoshop-2024-25.5.0.375 下载工具建议使用 qBittorrent-enhance,qBittorrent, Transmission, uTorrent 等. ...

  3. Java 设计模式——从冰雪经济看设计模式的综合运用(工厂、单例、策略、观察者)

    当冬季的寒风拂过大地,冰雪经济如同一颗璀璨的明珠,在寒冷中散发着炽热的魅力.滑雪场.冰雕展.冰雪主题酒店等各类冰雪产业蓬勃发展,其背后的运营逻辑和策略,与 Java 设计模式有着奇妙的相似之处,为我们 ...

  4. WebP图片使用踩坑

    前情 WebP是一种同时提供了有损压缩与无损压缩(可逆压缩)的图片文件格式,最初在2010年发布,目标是减少文件大小,相较于传统的 PNG.JPG,甚至是动图 GIF 的格式,WebP 比它们的空间更 ...

  5. 一款可以完整保留排版的PDF翻译,GitHub增长第一

    最近看论文较多,顺手给大家推荐一个用下来觉得不错的开源PDF翻译工具:PDFMathTranslate 目前这款开源项目在GitHub上已经收获了7.6K Star,而且由于一直处于增长趋势榜第一的位 ...

  6. SQL Server创建用户一直提示用户已存在的解决办法

    背景:复制的老数据库,创建账号onlyread时,一直提示数据库里有这个用户名.报错如下:"用户.组或角色'onlyread'在当前数据库中已存在." 解决方法: 1. 查询数据库 ...

  7. 在 ASP.NET Core 中进行打包 (Bundling) 和紧缩 (Minification)

    在 ASP.NET Core 中进行打包 (Bundling) 和紧缩 (Minification) Bundler & Minifier for Visual Studio 2019 Bun ...

  8. solon 集成 activemq-client (sdk)

    原始状态的 activemq-client sdk 集成非常方便,也更适合定制.就是有些同学,可能对原始接口会比较陌生,会希望有个具体的示例. <dependency> <group ...

  9. d2js 中实现 memcached 共享 session 的过程

    https://github.com/inshua/d2js/blob/master/WebContent/guide/memcached-session.md 基于 https://github.c ...

  10. 【Vue】vite+vue3 如何实现点击进入详情页/文章页

    如上图,点击标题可以进入详情页,关键代码截图如下: 然后去配置路由 那么组件如何从地址中接收参数呢