I_NotificationCodeGroup

DDL: I_NOTIFICATIONCODEGROUP SQL: INOTIFCDGR Type: view BASIC

Notification Code Group

I_NotificationCodeGroup is a Basic CDS View that provides data about "Notification Code Group" in SAP S/4HANA. It reads from 1 data source (qpgr) and exposes 5 fields with key fields NotificationCatalog, NotificationCodeGroup.

Data Sources (1)

SourceAliasJoin Type
qpgr qpgr from

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName INOTIFCDGR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.representativeKey NotificationCodeGroup view
EndUserText.label Notification Code Group view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY NotificationCatalog katalogart
KEY NotificationCodeGroup codegruppe
CodeGroupStatus status
_NotificationCatalog _NotificationCatalog
_NotificationCodeGroupText _NotificationCodeGroupText
@AbapCatalog.sqlViewName: 'INOTIFCDGR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE 
@VDM: {
    viewType:#BASIC,
    lifecycle.contract.type: #PUBLIC_LOCAL_API
}

@ObjectModel:{
    usageType:{
        dataClass: #CUSTOMIZING,
        serviceQuality: #A,
        sizeCategory: #S
    },
    representativeKey: 'NotificationCodeGroup'
}
@EndUserText.label: 'Notification Code Group'
@Metadata.ignorePropagatedAnnotations: true
define view I_NotificationCodeGroup as select from qpgr 

    association[1..1] to I_NotificationCatalog as _NotificationCatalog on $projection.NotificationCatalog = _NotificationCatalog.NotificationCatalog
    association[0..*] to I_NotificationCodeGroupText as _NotificationCodeGroupText on   $projection.NotificationCatalog = _NotificationCodeGroupText.NotificationCatalog and
                                                                                        $projection.NotificationCodeGroup = _NotificationCodeGroupText.NotificationCodeGroup

{
    @ObjectModel.foreignKey.association: '_NotificationCatalog'
    key katalogart as NotificationCatalog,
    @ObjectModel.text.association: '_NotificationCodeGroupText'
    key codegruppe as NotificationCodeGroup,
    
    // DB field has three values, but field shall be indicator

    @Semantics.booleanIndicator: true
    case qpgr.inaktiv
      when ' ' then cast( ' ' as vdm_qm_codegroupisinactive preserving type )
      else cast( 'X' as vdm_qm_codegroupisinactive preserving type )
    end                                                        as CodeGroupIsInactive,
  
    status                                                     as CodeGroupStatus,
    
    _NotificationCatalog,
    _NotificationCodeGroupText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"QPGR"
],
"ASSOCIATED":
[
"I_NOTIFICATIONCATALOG",
"I_NOTIFICATIONCODEGROUPTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/