I_MDChgProcessStatusStateCode
MD Change Process Status State Code
I_MDChgProcessStatusStateCode is a Basic CDS View that provides data about "MD Change Process Status State Code" in SAP S/4HANA. It reads from 1 data source (I_MasterDataChangeProcess) and exposes 8 fields with key field MasterDataChangeProcessUUID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MasterDataChangeProcess | I_MasterDataChangeProcess | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MDChgProcessStep | _CurrentStep | _CurrentStep.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID and _CurrentStep.MDChgProcessStep = $projection.MDChgProcessCurrentStepNumber |
| [0..1] | I_MDChangeProcessIsIdle | _ProcessIsIdle | _ProcessIsIdle.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID |
| [0..1] | P_MDChangeProcessLastStep | _ProcessLastStep | _ProcessLastStep.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMDCHGPROCSTATEC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| EndUserText.label | MD Change Process Status State Code | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterDataChangeProcessUUID | MasterDataChangeProcessUUID | ||
| MDChgProcessSrceObjectTypeCode | MDChgProcessSrceObjectTypeCode | |||
| MasterDataChangeProcess | MasterDataChangeProcess | |||
| MDChgProcessCurrentStepNumber | MDChgProcessCurrentStepNumber | |||
| MDChgProcessStatus | MDChgProcessStatus | |||
| MDChgProcessChkPointIsActive | MDChgProcessChkPointIsActive | |||
| MDChgProcessTypeID | MDChgProcessTypeID | |||
| MDChgProcessGoal | MDChgProcessGoal |
@AbapCatalog.sqlViewName: 'IMDCHGPROCSTATEC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@ObjectModel.usageType: { dataClass: #TRANSACTIONAL, sizeCategory: #M, serviceQuality: #C }
@EndUserText.label: 'MD Change Process Status State Code'
define view I_MDChgProcessStatusStateCode
as select from I_MasterDataChangeProcess
association [0..1] to I_MDChgProcessStep as _CurrentStep on _CurrentStep.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID
and _CurrentStep.MDChgProcessStep = $projection.MDChgProcessCurrentStepNumber
association [0..1] to I_MDChangeProcessIsIdle as _ProcessIsIdle on _ProcessIsIdle.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID
association [0..1] to P_MDChangeProcessLastStep as _ProcessLastStep on _ProcessLastStep.MasterDataChangeProcessUUID = $projection.MasterDataChangeProcessUUID
{
key MasterDataChangeProcessUUID,
MDChgProcessSrceObjectTypeCode,
MasterDataChangeProcess,
MDChgProcessCurrentStepNumber,
MDChgProcessStatus,
MDChgProcessChkPointIsActive,
@ObjectModel.readOnly: true
cast( case when MDChgProcessIsErased = 'X' then '014'
when MDChgProcessStatus = 'S' then '006'
when MDChgProcessStatus = 'F' then '005'
when MDChgProcessStatus = 'P' then '013'
when MDChgProcessStatus = 'R' then '011'
when MDChgProcessStatus = 'W' then '012'
else
case when _CurrentStep.MDChgProcessStepStatus = '4'
then case when MDChgProcessChkPointIsActive is not initial then '001'
when MDChgProcessCurrentStepNumber = _ProcessLastStep.MDChgProcessLastStepNumber then '010'
else '008'
end
when _CurrentStep.MDChgProcessStepStatus = '1' then '002'
when _CurrentStep.MDChgProcessStepStatus = '2' then '003'
when _CurrentStep.MDChgProcessStepStatus = '3' then '004'
when _CurrentStep.MDChgProcessStepStatus = '5' then '007'
else case when _ProcessIsIdle.MDChgProcessIsIdle is initial
and MDChgProcessCurrentStepNumber is initial then '009'
when MDChgProcessChkPointIsActive is not initial then '001'
else '008'
end
end
end as mdc_process_status_state_code
) as MDChgProcessStatusStateCode,
MDChgProcessTypeID,
MDChgProcessGoal
}
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