R_MaintNotifOvwDamageCodeTP is a Transactional CDS View that provides data about "Code for Overview of Damage" in SAP S/4HANA. It reads from 1 data source (I_InspectionCode) and exposes 11 fields with key fields MaintNotifOvwDamageCatalog, MaintNotifOvwDamageCodeGroup, MaintNotifOvwDamageCode. It has 2 associations to related views.
//@AbapCatalog.sqlViewName: 'RNOTIFOCODERPTP'
//@AbapCatalog.compiler.compareFilter: true//@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #CHECK//@ClientHandling.algorithm: #SESSION_VARIABLE@VDM.viewType: #TRANSACTIONAL@VDM.lifecycle.contract.type: #SAP_INTERNAL_API@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MASTER}@EndUserText.label: 'Code for Overview of Damage'
defineviewentity R_MaintNotifOvwDamageCodeTP asselectfrom I_InspectionCode
association to parent R_MaintNotifOvwDamageCodeGrpTP as _MaintNotifCodeGrp
on $projection.MaintNotifOvwDamageCatalog = _MaintNotifCodeGrp.MaintNotifOvwDamageCatalog
and $projection.MaintNotifOvwDamageCodeGroup = _MaintNotifCodeGrp.MaintNotifOvwDamageCodeGroup
association [1..*] to I_InspectionCodeText as _Text
on $projection.MaintNotifOvwDamageCatalog = _Text.InspectionCatalog
and $projection.MaintNotifOvwDamageCodeGroup = _Text.InspectionCodeGroup
and $projection.MaintNotifOvwDamageCode = _Text.InspectionCatalog
association [1..1] to I_InspectionCodeGroup as _MaintNotifGrp
on $projection.MaintNotifOvwDamageCatalog = _MaintNotifGrp.InspectionCatalog
and $projection.MaintNotifOvwDamageCodeGroup = _MaintNotifGrp.InspectionCodeGroup
{
key I_InspectionCode.InspectionCatalog as MaintNotifOvwDamageCatalog,
key I_InspectionCode.InspectionCodeGroup as MaintNotifOvwDamageCodeGroup,
key I_InspectionCode.InspectionCode as MaintNotifOvwDamageCode,
_MaintNotifCodeGrp.MaintNotifCodeGrpStatusText as MaintNotifCodeGrpStatusText,
@UI.hidden: true
_MaintNotifCodeGrp.MaintNotifCodeGrpStatus as MaintNotifCodeGrpStatus,
I_InspectionCode._Text[1:Language=$session.system_language].InspectionCodeText as MaintNotifOvwDamageCtlgCodeTxt,
_MaintNotifGrp._Text[1:Language=$session.system_language].InspSpecAddlCodeGroupText as MaintNotifOvwDamageCodeGrpText,
_MaintNotifGrp._InspectionCatalog._InspectionCatalogText[1:Language=$session.system_language].InspSpecAdditionalCatalogText as MaintNotifOvwDamageCatalogText, // catalog text
//Associations
_Text
,_MaintNotifCodeGrp
,_MaintNotifGrp
} where InspectionCatalog = 'C'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONCATALOG",
"I_INSPECTIONCATALOGTEXT",
"I_INSPECTIONCODE",
"I_INSPECTIONCODEGROUP",
"I_INSPECTIONCODEGROUPTEXT",
"I_INSPECTIONCODETEXT",
"R_MAINTNOTIFOVWDAMAGECODEGRPTP"
],
"ASSOCIATED":
[
"I_INSPECTIONCODEGROUP",
"I_INSPECTIONCODETEXT",
"R_MAINTNOTIFOVWDAMAGECODEGRPTP"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/