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 ...
随机推荐
- 狂神说-Docker基础-学习笔记-07 容器数据卷
狂神说-Docker基础-学习笔记-07 容器数据卷 视频地址:https://www.bilibili.com/video/BV1og4y1q7M4?p=21 什么是容器数据卷 运行时数据都在容器中 ...
- jarvisoj_level2_x64 1 writeup and blog
Here i finish the jarvisoj_level2_x64 1 challenge in buuctf and here is some writeup (i use English ...
- 掌控物体运动艺术:图扑 Easing 函数实践应用
现如今,前端开发除了构建功能性的网站和应用程序外,还需要创建具有吸引力且尤为流畅交互的用户界面,其中动画技术在其中发挥着至关重要的作用.在数字孪生领域,动画的应用显得尤为重要.数字孪生技术通过精确模拟 ...
- [网鼎杯 2020 朱雀组]phpweb
打开靶机,抓包分析,获得连个关键参数func和p,根据初始页面提示了解连个参数大概是功能和功能参数 测试func=system&p=ls提示hacker..说明有检测过滤 那么我们先读取源码看 ...
- 重温c语言之,7天开整,就是随便的写写,第三天+第四天版
一:指针 1.关于指针的含义---粗略 例如:int a=10; int* p=&a; 这里的*,是说明p是指针变量,int 说明p是指向的对象是int类型的 *p=20, 这里的*是解引用符 ...
- Java 网络编程----初探Servlet
Jave Web是java面向web开发的相关技术,他是相关技术的统称,并不是指某一个单一的技术.在我之前的博客中(Java网络编程----通过实现简易聊天工具来聊聊BIO模型 https://www ...
- 人形机器人-强化学习算法-PPO算法的实现细节是否会对算法性能有大的影响.
PPO算法是强化学习算法中目前应用最广的算法,虽然这个算法是2017年发表的,但是至今在整个AI领域下的agent子领域中这个算法都是最主要的强化学习算法(至少目前还没有之一),这个算法尤其在Chat ...
- vscode c/c++ 和 MSYS2 环境配置记录
vscode c/c++ 和 MSYS2 环境配置记录 网上的教程有一定错误和过时,这里收集了当前的最优配置. MinGW/MSYS2 安装 MSYS2 是一个类似于Linux的shell环境,可以在 ...
- 修复Bug好比钓鱼
作者: Jim Bird 来源: CSDN 发布时间: 2012-09-13 10:43 阅读: 4224 次 推荐: 18 原文链接 [收藏] 英文原文:Fixing a Bug ...
- Clickhouse之表函数
remote, remoteSecure 允许访问远程服务器, 而无需穿件Distributed表, remoteSecure - 与 remote 相同,但是会使用加密链接. 语法: remote( ...