CDS标准视图:安排维护计划的调用 I_MAINTENANCEPLANSCHEDULE
视图名称:安排维护计划的调用 I_MAINTENANCEPLANSCHEDULE
视图类型:
视图代码:
点击查看代码
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'IMPLASCHED'
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Scheduled calls for Maintenance Plan'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
modelingPattern: #NONE,
supportedCapabilities: [#CDS_MODELING_DATA_SOURCE],
semanticKey: [ 'MaintenancePlan','MaintenancePlanCallNumber' ],
usageType: {
dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #M
}
}
@VDM.viewType: #COMPOSITE
@AbapCatalog.preserveKey: true
define view I_MaintenancePlanSchedule
as select from I_MaintPlanCallHistory
association [0..1] to I_MaintCallSchedulingType as _SchedulingType on _SchedulingType.SchedulingType = $projection.SchedulingType
association [0..1] to P_MaintenanceSingleCycle as _MaintenanceSingleCycle on _MaintenanceSingleCycle.MaintenancePlan = $projection.MaintenancePlan
association [0..1] to I_UnitOfMeasure as _MaintTaskPerformanceUnit on _MaintTaskPerformanceUnit.UnitOfMeasure = $projection.MaintenanceTaskPerformanceUnit
association [0..1] to P_MaintCallCompltnDateTime as _MaintCallCompltnDateTime on _MaintCallCompltnDateTime.MaintenancePlan = $projection.MaintenancePlan
and _MaintCallCompltnDateTime.MaintenanceCall = $projection.MaintenancePlanCallNumber
association [1..1] to I_MaintenancePlanBasic as _MaintenancePlan on _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan
association [1..*] to I_MaintPlanCallHrznCalcTypeTxt as _CallHrznCalcTypeTxt on _CallHrznCalcTypeTxt.MaintenanceCallHorizonCalcType = $projection.MaintenanceCallHorizonCalcType
{
@ObjectModel.foreignKey.association: '_MaintenancePlan'
key MaintenancePlan,
key MaintenancePlanCallNumber,
key MaintenancePackage,
MaintenanceStrategy as MaintenanceStrategy,
@ObjectModel.foreignKey.association: '_SchedulingType'
SchedulingType as SchedulingType,
SchedulingStatus as SchedulingStatus,
_MaintenanceSingleCycle.MeasuringPoint as MeasuringPoint,
@ObjectModel.foreignKey.association: '_MaintTaskPerformanceUnit'
case _MaintenanceSingleCycle.MaintenanceTaskPerformanceUnit
when '' then _MaintenancePackage.MaintenanceTaskPerformanceUnit
else _MaintenanceSingleCycle.MaintenanceTaskPerformanceUnit
end as MaintenanceTaskPerformanceUnit,
MaintenanceCallNextPlannedDate as MaintenanceCallNextPlannedDate,
MaintenanceCallDate as MaintenanceCallDate,
case CompletionDate
when '00000000' then _MaintCallCompltnDateTime.CompletionDate
else CompletionDate
end as CompletionDate,
_MaintCallCompltnDateTime.CompletionTime as CompletionTime,
CycleSetSequence as CycleSetSequence,
MaintCallCompltnCntrRdng as MaintCallCompltnCntrRdng,
@Semantics.quantity.unitOfMeasure: 'MaintenanceTaskPerformanceUnit'
MaintCallNextPlndCntrRdng as MaintCallNextPlndCntrRdng,
MaintenanceCallIsOutstanding as MaintenanceCallIsOutstanding,
MaintCallIsInvokedOnPlndDate as MaintCallIsInvokedOnPlndDate,
MaintCallHorizonIsNotReached as MaintCallHorizonIsNotReached,
MaintPlanLastScheduledDate as MaintPlanLastScheduledDate,
ReleasedByUserName,
cast ('' as abap.char(256) ) as MaintPlnCnctntdDuePackagesTxt,
_MaintenancePlan.MaintenanceCallHorizonCalcType as MaintenanceCallHorizonCalcType,
MaintPlanPrdcssrCallCompltnDte,
MaintenancePlanManualCallDate,
/* Associations - locally defined */
_MaintenancePlan,
_SchedulingType,
_MaintTaskPerformanceUnit,
_ReleasedByUserName,
_CallHrznCalcTypeTxt,
_MaintenancePackage
}
事务代码:
视图结构:
| 字段名称 | 技术名称 |
|---|---|
| 维护计划 | MAINTENANCEPLAN |
| 调用号 | MAINTENANCEPLANCALLNUMBER |
| 维护包 | MAINTENANCEPACKAGE |
| 策略 | MAINTENANCESTRATEGY |
| 计划类型 | SCHEDULINGTYPE |
| 计划状态 | SCHEDULINGSTATUS |
| 测量点 | MEASURINGPOINT |
| 单位 | MAINTENANCETASKPERFORMANCEUNIT |
| 计划日期 | MAINTENANCECALLNEXTPLANNEDDATE |
| 调用日期 | MAINTENANCECALLDATE |
| 最后完成 | COMPLETIONDATE |
| COMPLETIONTIME | |
| 循环集顺序 | CYCLESETSEQUENCE |
| 公司确认的读数 | MAINTCALLCOMPLTNCNTRRDNG |
| TL 计数器 | MAINTCALLNEXTPLNDCNTRRDNG |
| 计划状态 | MAINTENANCECALLISOUTSTANDING |
| 计划状态 | MAINTCALLISINVOKEDONPLNDDATE |
| 计划状态 | MAINTCALLHORIZONISNOTREACHED |
| 调用日期 | MAINTPLANLASTSCHEDULEDDATE |
| 名称 | RELEASEDBYUSERNAME |
| MAINTPLNCNCTNTDDUEPACKAGESTXT | |
| 计算类型 | MAINTENANCECALLHORIZONCALCTYPE |
| 前趋完成 | MAINTPLANPRDCSSRCALLCOMPLTNDTE |
| 手工调用 | MAINTENANCEPLANMANUALCALLDATE |

CDS标准视图:安排维护计划的调用 I_MAINTENANCEPLANSCHEDULE的更多相关文章
- IE9兼容性视图与IE9标准视图
如果你使用的是IE9,那么按下F12键就会出现开发者工具,上面有两个下拉菜单:浏览器模式和文档模式.那么什么是浏览器模式?什么又是文档模式?二者有何区别? 浏览器模式用于切换IE针对该网页的默认文档模 ...
- SAP CDS重定向视图和直接读这两者场景的性能比较
A very rough performance comparison is performed in ER9/001. Comparison scenario The two below opera ...
- 教程:基于访问控制的ABAP CDS视图权限
Hi! 对每一个CDS视图,我们都可以通过DCL(Data Control Language)定义访问控制.在这篇文章中,我会介绍ABAP CDS视图中非常重要的一面:权限管理. 本文的阐述基于我正在 ...
- Flask(10)- 标准类视图
前言 前面文章讲解 Flask 路由的时候,都是将 URL 路径和一个视图函数关联 当 Flask 框架接收到请求后,会根据请求 URL,调用响应的视图函数进行处理 Flask 不仅提供了视图函数来处 ...
- cds view 创建和调用
cds view 是一个core data service, 能够将数据库表虚拟化为一个虚拟表(double).因为各个使用sap的公司,使用的数据库数据是不同的,所以提供一个数据库的虚拟. 通过向 ...
- EF5+MVC4系列(11)在主视图中用Html.RenderPartial调用分部视图(ViewDate传值);在主视图中按钮用ajax调用子action并在子action中使用return PartialView返回分布视图(return view ,return PartialView区别)
一:主视图中使用Html.RenderPartial来调用子视图(注意,这里是直接调用子视图,而没有去调用子Action ) 在没有使用母版页的主视图中(也就是设置了layout为null的视图中), ...
- mysql 存储过程、视图---创建、调用、删除
之前一直用的是Sql Server数据库,最近偶然机会接触到mysql.这里总结了关于mysql 存储过程.视图的“创建.调用.删除”示例 ============================== ...
- View Programming Guide for iOS ---- iOS 视图编程指南(五)---Animations
Animations Animations provide fluid visual transitions between different states of your user inter ...
- ASP.NET MVC 5 05 - 视图
PS: 唉,这篇随笔国庆(2015年)放假前几天开始的,放完假回来正好又赶上年底,公司各种破事儿. 这尼玛都写跨年了都,真服了.(=_=#) 好几次不想写了都. 可是又不想浪费这么多,狠不下心删除.没 ...
- SQLServer视图
视图简介:通过定义 SELECT 语句以检索将在视图中显示的数据来创建视图.SELECT 语句引用的数据表称为视图的基表.在SQL Server 2005系统中,可以把视图分为3种类型,即标准视图,索 ...
随机推荐
- FFmpeg 视频转 GIF
Filtergraph 在 ffmpeg 命令中,可以使用 -filter.-vf.-af 或 -filter_complex 选项指定 filter graph Filtergraph 由 filt ...
- 6. jenkins触发器
常用的触发器 Jenkins内置4种构建触发器 触发远程 构建其他工程构建后触发(Build after other projects are build) 定时构建(Build periodical ...
- 基于 Github 平台的 .NET 开源项目模板 - ISSUE 相关
上一篇已经介绍了工程和脚本.下面我们将以具体的功能作为着手点, 展开对 project.yml 工程配置文件的讲解. 赘述 project.yml 使用周期 文件来源: 运行跟目录下的 scanner ...
- P4119 Ynoi2018 未来日记
P4119 Ynoi2018 未来日记 lxl 出的题好 duliu 啊. 感谢来自 fr200110217102 的博客 题解 P4119 [Ynoi2018未来日记]. 下标分块+值域分块+并查集 ...
- nvidia公司的机器人仿真环境的历史发展介绍(Isaac-Gym、Isaac-Sim)
相关: NVIDIA机器人仿真项目 -- Isaac Gym - Preview Release 本文说下NVIDIA公司的机器人仿真项目的一些历史发展. NVIDIA公司的产品最初只有显卡,但是卖着 ...
- 外网如何通过https访问自己的服务
前情提要 最近在接wx小游戏的sdk, 消息推送需要在wx端配置https开头的地址. 我本地开了一个http服务,我的ip为192.168.40.39, 监听端口 8091.想要达到的效果是,外部浏 ...
- common-dbutils的使用
1. 介绍 commons-dbutils是Apache组织提供的一个开源 JDBC工具类库,能让我们更简单的使用JDBC.它是一个非常小的类包,花几分钟的时间就能掌握它的使用. 2. ...
- 移动端自动化之uiautomator2
github: https://github.com/openatx/uiautomator2 [安装] pip3 install -U uiautomator2# 安装UI Inspector -- ...
- js之模块导入与导出:export、export default、module.exports、exports
前两者export.export default可为一组,是es6的规范,和import匹配,import是es6中的语法标准:后两者module.exports.exports可为一组,是commo ...
- navicat之常用操作
日常开发经常使用Navicat进行数据库的管理 快捷键: 快捷键 说明 F6 打开一个命令行界面 Ctrl + q 快速开启一个查询 ctrl + r 运行当前SQL ...