I_ProductionVersionConstcyLog
Production Version Consistency Log
I_ProductionVersionConstcyLog is a Basic CDS View that provides data about "Production Version Consistency Log" in SAP S/4HANA. It reads from 3 data sources (mkalconstcylog, mkalconstcylog, I_ProdnVersInconstcyIssType) and exposes 39 fields with key fields Material, Plant, ProductionVersion, ProdnVersConstcyIssue, Plant. It has 4 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| mkalconstcylog | _ConstcyLog | from |
| mkalconstcylog | _ConstcyLog | union |
| I_ProdnVersInconstcyIssType | _InconstcyIssType | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductionVersion | _ProdnVers | $projection.Material = _ProdnVers.Material and $projection.Plant = _ProdnVers.Plant and $projection.ProductionVersion = _ProdnVers.ProductionVersion |
| [1..1] | I_ProdnVersInconstcyIssType | _IssueType | $projection.ProdnVersConsistencyIssueType = _IssueType.ProdnVersConsistencyIssueType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Production Version Consistency Log | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| Search.searchable | true | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | mkalconstcylog | matnr | |
| KEY | Plant | mkalconstcylog | werks | |
| KEY | ProductionVersion | mkalconstcylog | verid | |
| KEY | ProdnVersConstcyIssue | mkalconstcylog | issueid | |
| ProdnVersConsistencyIssueType | mkalconstcylog | issuetype | ||
| ProdnVersConstcyIssSvrtyLvl | I_ProdnVersInconstcyIssType | ProdnVersConstcyIssSvrtyLvl | ||
| IssueOccurredDateTime | mkalconstcylog | occurreddatetime | ||
| ProductionVersionConstcyStatus | mkalconstcylog | eventstatus | ||
| ProducerEventType | mkalconstcylog | eventresp | ||
| ProducerBusinessObjectType | mkalconstcylog | eventbusobj | ||
| ProdnVersConstcyLogMsgClass | mkalconstcylog | msgid | ||
| ProdnVersConstcyLogMsgNumber | mkalconstcylog | msgno | ||
| ProdnVersConstcyLgMsgVarbl1Txt | mkalconstcylog | msgv1 | ||
| ProdnVersConstcyLgMsgVarbl2Txt | mkalconstcylog | msgv2 | ||
| ProdnVersConstcyLgMsgVarbl3Txt | mkalconstcylog | msgv3 | ||
| ProdnVersConstcyLgMsgVarbl4Txt | mkalconstcylog | msgv4 | ||
| _ProdnVers | _ProdnVers | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| matnrasMaterial | ||||
| KEY | Plant | mkalconstcylog | werks | |
| KEY | ProductionVersion | mkalconstcylog | verid | |
| KEY | ProdnVersConstcyIssue | mkalconstcylog | issueid | |
| ProdnVersConsistencyIssueType | mkalconstcylog | issuetype | ||
| ProdnVersConstcyIssSvrtyLvl | ||||
| IssueOccurredDateTime | mkalconstcylog | occurreddatetime | ||
| ProductionVersionConstcyStatus | mkalconstcylog | eventstatus | ||
| ProducerEventType | mkalconstcylog | eventresp | ||
| ProducerBusinessObjectType | mkalconstcylog | eventbusobj | ||
| ProdnVersConstcyLogMsgClass | mkalconstcylog | msgid | ||
| ProdnVersConstcyLogMsgNumber | mkalconstcylog | msgno | ||
| ProdnVersConstcyLgMsgVarbl1Txt | mkalconstcylog | msgv1 | ||
| ProdnVersConstcyLgMsgVarbl2Txt | mkalconstcylog | msgv2 | ||
| ProdnVersConstcyLgMsgVarbl3Txt | mkalconstcylog | msgv3 | ||
| ProdnVersConstcyLgMsgVarbl4Txt | mkalconstcylog | msgv4 | ||
| _ProdnVers | _ProdnVers | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _IssueType | _IssueType |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Production Version Consistency Log'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #S,
dataClass: #TRANSACTIONAL
}
@VDM.viewType: #BASIC
@Search.searchable: true
define view entity I_ProductionVersionConstcyLog
as select from mkalconstcylog as _ConstcyLog
// inner join with configuration; to get latest config value
inner join I_ProdnVersInconstcyIssType as _InconstcyIssType on _ConstcyLog.issuetype = _InconstcyIssType.ProdnVersConsistencyIssueType
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [1..1] to I_ProductionVersion as _ProdnVers on $projection.Material = _ProdnVers.Material
and $projection.Plant = _ProdnVers.Plant
and $projection.ProductionVersion = _ProdnVers.ProductionVersion
association [1..1] to I_ProdnVersInconstcyIssType as _IssueType on $projection.ProdnVersConsistencyIssueType = _IssueType.ProdnVersConsistencyIssueType
{
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
@ObjectModel.foreignKey.association: '_Material'
key _ConstcyLog.matnr as Material,
@ObjectModel.foreignKey.association: '_Plant'
key _ConstcyLog.werks as Plant,
@ObjectModel.foreignKey.association: '_ProdnVers'
key _ConstcyLog.verid as ProductionVersion,
key _ConstcyLog.issueid as ProdnVersConstcyIssue,
@ObjectModel.foreignKey.association: '_IssueType'
_ConstcyLog.issuetype as ProdnVersConsistencyIssueType,
_InconstcyIssType.ProdnVersConstcyIssSvrtyLvl as ProdnVersConstcyIssSvrtyLvl,
_ConstcyLog.occurreddatetime as IssueOccurredDateTime,
_ConstcyLog.eventstatus as ProductionVersionConstcyStatus,
_ConstcyLog.eventresp as ProducerEventType,
_ConstcyLog.eventbusobj as ProducerBusinessObjectType,
_ConstcyLog.msgid as ProdnVersConstcyLogMsgClass,
_ConstcyLog.msgno as ProdnVersConstcyLogMsgNumber,
_ConstcyLog.msgv1 as ProdnVersConstcyLgMsgVarbl1Txt,
_ConstcyLog.msgv2 as ProdnVersConstcyLgMsgVarbl2Txt,
_ConstcyLog.msgv3 as ProdnVersConstcyLgMsgVarbl3Txt,
_ConstcyLog.msgv4 as ProdnVersConstcyLgMsgVarbl4Txt,
/* Associations */
_ProdnVers,
_Material,
_Plant,
_IssueType
}
where
_InconstcyIssType.ProdnVersConstcyIssSvrtyLvl is not initial
//To get checked successful records from Consistency Log
union select from mkalconstcylog as _ConstcyLog
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [1..1] to I_ProductionVersion as _ProdnVers on $projection.Material = _ProdnVers.Material
and $projection.Plant = _ProdnVers.Plant
and $projection.ProductionVersion = _ProdnVers.ProductionVersion
association [1..1] to I_ProdnVersInconstcyIssType as _IssueType on $projection.ProdnVersConsistencyIssueType = _IssueType.ProdnVersConsistencyIssueType
{
key _ConstcyLog.matnr as Material,
key _ConstcyLog.werks as Plant,
key _ConstcyLog.verid as ProductionVersion,
key _ConstcyLog.issueid as ProdnVersConstcyIssue,
_ConstcyLog.issuetype as ProdnVersConsistencyIssueType,
cast('S' as abap.char( 1 ) ) as ProdnVersConstcyIssSvrtyLvl,
_ConstcyLog.occurreddatetime as IssueOccurredDateTime,
_ConstcyLog.eventstatus as ProductionVersionConstcyStatus,
_ConstcyLog.eventresp as ProducerEventType,
_ConstcyLog.eventbusobj as ProducerBusinessObjectType,
_ConstcyLog.msgid as ProdnVersConstcyLogMsgClass,
_ConstcyLog.msgno as ProdnVersConstcyLogMsgNumber,
_ConstcyLog.msgv1 as ProdnVersConstcyLgMsgVarbl1Txt,
_ConstcyLog.msgv2 as ProdnVersConstcyLgMsgVarbl2Txt,
_ConstcyLog.msgv3 as ProdnVersConstcyLgMsgVarbl3Txt,
_ConstcyLog.msgv4 as ProdnVersConstcyLgMsgVarbl4Txt,
/* Associations */
_ProdnVers,
_Material,
_Plant,
_IssueType
}
where
_ConstcyLog.issuetype is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODNVERSINCONSTCYISSTYPE",
"MKALCONSTCYLOG"
],
"ASSOCIATED":
[
"I_MATERIAL",
"I_PLANT",
"I_PRODNVERSINCONSTCYISSTYPE",
"I_PRODUCTIONVERSION"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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