P_MaintOrdCompInconsistency

DDL: P_MAINTORDCOMPINCONSISTENCY Type: view_entity CONSUMPTION Package: ODATA_EAM_ORD_COMP_MAN

Maint. order component Inconsistencies

P_MaintOrdCompInconsistency is a Consumption CDS View that provides data about "Maint. order component Inconsistencies" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent_2) and exposes 4 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintOrderComponentInternalID. Part of development package ODATA_EAM_ORD_COMP_MAN.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceOrderComponent_2 component from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Maint. order component Inconsistencies view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintenanceOrderComponent_2 MaintenanceOrder
KEY MaintenanceOrderOperation I_MaintenanceOrderComponent_2 MaintenanceOrderOperation
KEY MaintenanceOrderSubOperation I_MaintenanceOrderComponent_2 MaintenanceOrderSubOperation
KEY MaintOrderComponentInternalID I_MaintenanceOrderComponent_2 MaintOrderComponentInternalID
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Maint. order component Inconsistencies'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #P,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
}
@VDM.private:true
@VDM.viewType: #CONSUMPTION
define view entity P_MaintOrdCompInconsistency as select from I_MaintenanceOrderComponent_2 as component
association of exact one to one P_ClosedOrdCompInconsistency as _ClosedOrdCompInconsistency
on _ClosedOrdCompInconsistency.MaintenanceOrder = $projection.MaintenanceOrder and 
   _ClosedOrdCompInconsistency.MaintenanceOrderOperation = $projection.MaintenanceOrderOperation and
   _ClosedOrdCompInconsistency.MaintenanceOrderSubOperation = $projection.MaintenanceOrderSubOperation and 
   _ClosedOrdCompInconsistency.MaintOrderComponentInternalID = $projection.MaintOrderComponentInternalID
association of exact one to one P_DeletedCompInconsistency   as _DeletedCompInconsistency 
on _DeletedCompInconsistency.MaintenanceOrder = $projection.MaintenanceOrder and 
   _DeletedCompInconsistency.MaintenanceOrderOperation = $projection.MaintenanceOrderOperation and
   _DeletedCompInconsistency.MaintenanceOrderSubOperation = $projection.MaintenanceOrderSubOperation and 
   _DeletedCompInconsistency.MaintOrderComponentInternalID = $projection.MaintOrderComponentInternalID
{
  key component.MaintenanceOrder,
  key component.MaintenanceOrderOperation,
  key component.MaintenanceOrderSubOperation,
  key component.MaintOrderComponentInternalID,
  cast( 
  case when _ClosedOrdCompInconsistency.MaintOrdCompIsInconsistent = 'X'
       or _DeletedCompInconsistency.MaintOrdCompIsInconsistent = 'X' 
       then 'X'
       else ''  end as boolean preserving type ) as MaintOrdCompIsInconsistent    
}