P_DeletedCompInconsistency

DDL: P_DELETEDCOMPINCONSISTENCY Type: view_entity CONSUMPTION

Maint.order comp. deletion Inconstcy

P_DeletedCompInconsistency is a Consumption CDS View that provides data about "Maint.order comp. deletion Inconstcy" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent_2) and exposes 4 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintOrderComponentInternalID.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceOrderComponent_2 I_MaintenanceOrderComponent_2 from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Maint.order comp. deletion Inconstcy 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 MaintenanceOrder
KEY MaintenanceOrderOperation MaintenanceOrderOperation
KEY MaintenanceOrderSubOperation MaintenanceOrderSubOperation
KEY MaintOrderComponentInternalID MaintOrderComponentInternalID
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Maint.order comp. deletion Inconstcy'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #P,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
}
@VDM.private:true
@VDM.viewType: #CONSUMPTION
//Component has DEL status but the PR Items are not deleted.

define view entity P_DeletedCompInconsistency

  as select from I_MaintenanceOrderComponent_2
{
  key MaintenanceOrder,
  key MaintenanceOrderOperation,
  key MaintenanceOrderSubOperation,
  key MaintOrderComponentInternalID
  ,
      case when ( _PurchaseRequisitionItem.IsDeleted is initial or 
                  _PurchaseRequisitionItem.IsDeleted is null ) and
                ( _PurchaseRequisitionItem.PurchasingDocument is initial or
                  _PurchaseRequisitionItem.PurchasingDocument is null ) and
                  _StatusObjectActiveStatus[ to one :  StatusIsActive = 'X' and StatusCode = 'I0013' ].StatusCode is not null 
      then 'X'
      else '' end as  MaintOrdCompIsInconsistent
}
where
  PurchaseRequisition is not initial