P_MaintOrderCompletionStatus
Maintenance Order Status
P_MaintOrderCompletionStatus is a Consumption CDS View that provides data about "Maintenance Order Status" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrder) and exposes 1 field with key field MaintenanceOrder. Part of development package ODATA_EAM_ORD_MON.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrder | I_MaintenanceOrder | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMAINTORDCMPL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (1)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | MaintenanceOrder |
@AbapCatalog.sqlViewName: 'PMAINTORDCMPL'
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Confirmed Maintenance Order'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@ClientHandling: {
type: #CLIENT_DEPENDENT,
algorithm: #SESSION_VARIABLE
}
define view P_MaintOrderCompletionStatus
as select from I_MaintenanceOrder
{
key MaintenanceOrder,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0009'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintOrderIsFinallyConfirmed,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0045'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintenanceOrderIsCompleted,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0076'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintenanceOrderIsDeleted,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0046'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintOrderIsBusinessCompleted,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0043'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintOrderIsLocked,
cast( case when _StatusObjectActiveStatus[1: StatusCode = 'I0002'].StatusCode != ''
then 'X'
else '' end as xfeld ) as MaintOrderIsReleased
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA