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.
@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: #CONSUMPTIONdefineviewentity P_MaintOrdCompInconsistency asselectfrom 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(
casewhen _ClosedOrdCompInconsistency.MaintOrdCompIsInconsistent = 'X'
or _DeletedCompInconsistency.MaintOrdCompIsInconsistent = 'X'
then 'X'
else '' endas boolean preserving type ) as MaintOrdCompIsInconsistent
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MAINTENANCEORDERCOMPONENT_2",
"P_CLOSEDORDCOMPINCONSISTENCY",
"P_DELETEDCOMPINCONSISTENCY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/