I_MaintNotifCauseCodeGroup

DDL: I_MAINTNOTIFCAUSECODEGROUP Type: view_entity BASIC Package: RAP_EAM_NTF

Catalog Code Group

I_MaintNotifCauseCodeGroup is a Basic CDS View that provides data about "Catalog Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 5 fields with key fields InspectionCatalog, InspectionCodeGroup. It has 2 associations to related views. Part of development package RAP_EAM_NTF.

Data Sources (1)

SourceAliasJoin Type
qpgr qpgr from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Inspectioncatalog _InspectionCatalog $projection.InspectionCatalog = _InspectionCatalog.InspectionCatalog
[1..*] I_Inspectioncodegrouptext _Text $projection.InspectionCatalog = _Text.InspectionCatalog and $projection.InspectionCodeGroup = _Text.InspectionCodeGroup

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Catalog Code Group view
VDM.viewType #BASIC view
ObjectModel.representativeKey InspectionCodeGroup view
Analytics.technicalName IPMCAUSECODEGRP view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY InspectionCatalog qpgr katalogart
KEY InspectionCodeGroup qpgr codegruppe
CodeGroupStatus qpgr status
_InspectionCatalog _InspectionCatalog
_Text _Text
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Catalog Code Group'
@VDM: {
    viewType: #BASIC
}
@ObjectModel.supportedCapabilities: 
    [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
@ObjectModel.representativeKey: 'InspectionCodeGroup'
@Analytics.technicalName: 'IPMCAUSECODEGRP'
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #S, dataClass: #CUSTOMIZING }
@Metadata.ignorePropagatedAnnotations: true
define view entity I_MaintNotifCauseCodeGroup as select from qpgr 
  association [1..1] to I_Inspectioncatalog as _InspectionCatalog
    on $projection.InspectionCatalog = _InspectionCatalog.InspectionCatalog

  association [1..*] to I_Inspectioncodegrouptext as _Text
    on $projection.InspectionCatalog = _Text.InspectionCatalog
   and $projection.InspectionCodeGroup = _Text.InspectionCodeGroup
    
{
  @ObjectModel.foreignKey.association: '_InspectionCatalog'
  key qpgr.katalogart   as InspectionCatalog, 
  @ObjectModel.text: {
      association: '_Text'
  }
  key qpgr.codegruppe   as InspectionCodeGroup,
  
  // DB field has three values, but field shall be indicator

// @Semantics.booleanIndicator: true  // It is boolean, but we cannot tag it, due to static code check

  case qpgr.inaktiv
    when ' ' then cast( ' ' as vdm_qm_codegroupisinactive preserving type )
    else cast( 'X' as vdm_qm_codegroupisinactive preserving type )
  end                                                        as CodeGroupIsInactive,
  
  qpgr.status                                                as CodeGroupStatus,
  
  
//     qpgr.ersteller  as MaintCatalogCodeGroupCreatedBy,

//     qpgr.e_datum as MaintCatalogCodeGroupCreatedOn,

//     qpgr.aenderer as MaintCatalogCodeGroupChangedBy,

//     qpgr.a_datum as  MaintCatalogCodeGroupChangedOn ,

//     qpgr.inaktiv as MaintCatalogCodeGroupStatus,

//     @Semantics.booleanIndicator: true

//     qpgr.verwendung as MaintCatalogCodeGroupIsUsed,

    
  //Associations

  _InspectionCatalog,
  _Text
} 
where katalogart  = '5'
  and status = '2'