I_MDCHGPROCSTEPFEDERATIONKPI

CDS View

MD Change Process Step Federation KPI

I_MDCHGPROCSTEPFEDERATIONKPI is a CDS View in S/4HANA. MD Change Process Step Federation KPI. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
C_MDChgProcStepFederationKPI view_entity from CONSUMPTION MD Change Process Step Federation KPI
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'MD Change Process Step Federation KPI'
@ObjectModel.semanticKey: ['MasterDataChangeProcess','MDChgProcessStep']
@VDM.viewType: #COMPOSITE

@ObjectModel.alternativeKey: [{
        id : 'MASTERDATACHANGEPROCESS',
        uniqueness : #UNIQUE_IF_NOT_INITIAL,
        element : ['MASTERDATACHANGEPROCESS']
    },{
        id : 'MDCHGPROCESSSTEP',
        uniqueness : #UNIQUE_IF_NOT_INITIAL,
        element : ['MDCHGPROCESSSTEP']
    }]

@ObjectModel: {
    resultSet.sizeCategory: #XS,
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #L,
    usageType.dataClass: #MIXED }

define view entity I_MDChgProcStepFederationKPI
  as select distinct from mdc_d_prcstep as Step
    join                  mdc_d_prcroot as _Root on _Root.db_key = Step.parent_key
{
  key Step.db_key                                                                         as MDChgProcessStepUUID,
      Step.process_id                                                                     as MasterDataChangeProcess,
      Step.step_number                                                                    as MDChgProcessStep,
      _Root.type_id                                                                       as MDChgProcessTypeID,
      _Root.goal                                                                          as MDChgProcessGoal,
      case when Step.source_otc is initial then _Root.source_otc else Step.source_otc end as MDChgProcessSrceObjectTypeCode,
      Step.adapter                                                                        as MDChgProcessStepAdapter,
      Step.step_type                                                                      as MDChgProcessStepType,
      @ObjectModel.readOnly: true
      cast( Step.started_at  as tzntstmps preserving type )                               as MDChgProcessStepStartDateTime,
      @ObjectModel.readOnly: true
      cast( Step.finished_at as tzntstmps preserving type )                               as MDChgProcessStepFinishDateTime

}
where
       Step.step_type           =  'FED'
  and(
       Step.status              =  '4'
    or Step.status              =  '5'
  )
  and(
       _Root.last_step_finished <> 'X'
    or _Root.status             =  'R'
  )