CDS标准视图:设备 I_Equipment
- 视图名称: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的更多相关文章
- IE9兼容性视图与IE9标准视图
如果你使用的是IE9,那么按下F12键就会出现开发者工具,上面有两个下拉菜单:浏览器模式和文档模式.那么什么是浏览器模式?什么又是文档模式?二者有何区别? 浏览器模式用于切换IE针对该网页的默认文档模 ...
- SAP CDS重定向视图和直接读这两者场景的性能比较
A very rough performance comparison is performed in ER9/001. Comparison scenario The two below opera ...
- H3C 典型物理层标准和设备
- 教程:基于访问控制的ABAP CDS视图权限
Hi! 对每一个CDS视图,我们都可以通过DCL(Data Control Language)定义访问控制.在这篇文章中,我会介绍ABAP CDS视图中非常重要的一面:权限管理. 本文的阐述基于我正在 ...
- Flask(10)- 标准类视图
前言 前面文章讲解 Flask 路由的时候,都是将 URL 路径和一个视图函数关联 当 Flask 框架接收到请求后,会根据请求 URL,调用响应的视图函数进行处理 Flask 不仅提供了视图函数来处 ...
- View Programming Guide for iOS ---- iOS 视图编程指南(二)---View and Window Architecture
View and Window Architecture 视图和窗口架构 Views and windows present your application’s user interface and ...
- View Programming Guide for iOS ---- iOS 视图编程指南(一)
Next About Windows and Views 关于窗口和视图 In iOS, you use windows and views to present your application’s ...
- iOS,Core Animation--负责视图的复合功能
简介 UIKit API UIKit是一组Objective-C API,为线条图形.Quartz图像和颜色操作提供Objective-C 封装,并提供2D绘制.图像处理及用户接口级别的动画. ...
- 【Linux开发】【DSP开发】Linux设备驱动之——PCI 总线
PCI总线概述 随着通用处理器和嵌入式技术的迅猛发展,越来越多的电子设备需要由处理器控制.目前大多数CPU和外部设备都会提供PCI总线的接口,PCI总线已成为计算机系统中一种应用广泛.通用的总线标准 ...
- ABAP CDS-Part 1(ABAP CDS实体)
文章翻译自Tushar Sharma的文章,转载请注明原作者和译者! 目录 预备条件 一.概述 二.ABAP CDS实体(CDS Entity) a.定义ABAP CDS Views b.ABAP C ...
随机推荐
- 实践出真知,小程序wepy,uni-app框架开发使用!
一.前提 目前我只使用过wepy和uni-app框架开发过小程序,着重比较这两个框架使用感受! 另外wepy框架已经不维护了,希望uni-app好好维护下去! wepy和uni-app都是类似于vue ...
- .NET周刊【11月第1期 2024-11-03】
国内文章 .NET 9 AOT的突破 - 支持老旧Win7与XP环境 https://www.cnblogs.com/lsq6/p/18519287 .NET 9 引入了 AOT 支持,使得应用程序能 ...
- php操作sqlite3
距离上次接触sqlite3已经快一年了,去年这篇文章讲跟着菜鸟教程学python操作sqlite3,https://www.cnblogs.com/lizhaoyao/p/13717381.html ...
- MySQL 主从复制之多线程复制
目录 一.MySQL 多线程复制的背景 二.MySQL 5.5 主从复制 1.原理 2.部署主从复制 2.1.主节点安装配置MySQL 5.5 2.2.从节点安装配置MySQL 5.5 3.检查主从库 ...
- npm link的作用——避免频繁发布更新
web-components 里面的组件库 修改频繁 可以使用link 创建链接,引用放就不需要每次都重新发布重新安装更新了 功能 在本地开发npm模块的时候,我们可以使用npm link命令,将n ...
- configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362
报错: Auto configuration failed 139868431284128:error:0E079065:configuration file routines:DEF_LOAD_BI ...
- FreeRTOS-Error: ..\FreeRTOS\portable\RVDS\ARM_CM4F\port.c, 271
任务运行时间API函数的应用 当使用任务运行时间API函数打印任务运行时间等相关信息是,串口打印出现这个问题 网上是这么说的 但是运行每个任务都可以执行进去,循序时间API函数也可以执行进去,就是无法 ...
- 推送本地镜像到 Harbor
1.harbor没有启动 https 我本地 安装 harbor 的时候由于没有使用证书,所以将 harbor.yml https 注释掉. 2.配置docker镜像地址 比如 我的 ip 为 192 ...
- Nuxt.js 应用中的 request 事件钩子
title: Nuxt.js 应用中的 request 事件钩子 date: 2024/12/4 updated: 2024/12/4 author: cmdragon excerpt: 在构建现代 ...
- 使用Docker快速部署一个Net项目
前言 Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级.可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化. 优点 Web 应用的自动化打包和发布. 自动化测试和 ...