I_NotificationActivity

DDL: I_NOTIFICATIONACTIVITY SQL: INOTIFACT Type: view BASIC

Notification Activity

I_NotificationActivity is a Basic CDS View that provides data about "Notification Activity" in SAP S/4HANA. It reads from 1 data source (qmma) and exposes 28 fields with key fields Notification, NotificationActivity.

Data Sources (1)

SourceAliasJoin Type
qmma qmma from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName INOTIFACT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #BASIC view
EndUserText.label Notification Activity view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey NotificationActivity view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY Notification qmnum
KEY NotificationActivity manum
NotificationItem fenum
NotificationActivitySortNumber qmanum
IsDeleted kzloesch
MasterLanguage kzmla
NotifActivityCatalog mnkat
NotifActivityCodeGroup mngrp
NotifActivityCode mncod
NotifActivityText matxt
NotifActivityStartDate pster
NotifActivityStartTime pstur
NotifActivityEndDate peter
NotifActivityEndTime petur
CreatedByUser ernam
CreationDate erdat
CreationTime erzeit
LastChangedByUser aenam
LastChangeDate aedat
LastChangeTime aezeit
IsBusinessPurposeCompleted _Notification IsBusinessPurposeCompleted
_Notification _Notification
_CreatedByUserContactCard _CreatedByUserContactCard
_LastChangedByUserContactCard _LastChangedByUserContactCard
_Language _Language
_NotifActivityCatalog _NotifActivityCatalog
_NotifActivityCodeGroup _NotifActivityCodeGroup
_NotifActivityCode _NotifActivityCode
@AbapCatalog.sqlViewName: 'INOTIFACT'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.privilegedAssociations: ['_CreatedByUserContactCard', '_LastChangedByUserContactCard']

@VDM.viewType: #BASIC

@EndUserText.label: 'Notification Activity'
@ClientHandling.algorithm: #SESSION_VARIABLE


@ObjectModel: {
    representativeKey: 'NotificationActivity',
    usageType: {
        dataClass: #TRANSACTIONAL,
        sizeCategory: #L,
        serviceQuality: #A }
} 

define view I_NotificationActivity as select from qmma 

    association[1..1] to I_Notification as _Notification on $projection.Notification = _Notification.Notification
    
    association[0..1] to I_UserContactCard  as _CreatedByUserContactCard        on $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID
    association[0..1] to I_UserContactCard  as _LastChangedByUserContactCard    on $projection.LastChangedByUser = _LastChangedByUserContactCard.ContactCardID
    association[0..1] to I_Language     as _Language                        on $projection.MasterLanguage = _Language.Language
    
    association[0..1] to I_NotifActivityCatalog     as _NotifActivityCatalog    on  $projection.NotifActivityCatalog = _NotifActivityCatalog.NotifActivityCatalog
    association[0..1] to I_NotifActivityCodeGroup   as _NotifActivityCodeGroup  on  $projection.NotifActivityCatalog = _NotifActivityCodeGroup.NotifActivityCatalog and
                                                                                    $projection.NotifActivityCodeGroup = _NotifActivityCodeGroup.NotifActivityCodeGroup
    association[0..1] to I_NotifActivityCode        as _NotifActivityCode       on  $projection.NotifActivityCatalog = _NotifActivityCode.NotifActivityCatalog and
                                                                                    $projection.NotifActivityCodeGroup = _NotifActivityCode.NotifActivityCodeGroup and
                                                                                    $projection.NotifActivityCode = _NotifActivityCode.NotifActivityCode
                                                                                                                                                                    
{

//=== Key Fields

    @ObjectModel.foreignKey.association: '_Notification'
    key qmnum   as Notification,
    key manum   as NotificationActivity,
    fenum       as NotificationItem,
    qmanum      as NotificationActivitySortNumber,
//=== Common Fields

    kzloesch    as IsDeleted,
    kzmla       as MasterLanguage,    
    @ObjectModel.foreignKey.association: '_NotifActivityCatalog'
    mnkat       as NotifActivityCatalog,
    @ObjectModel.foreignKey.association: '_NotifActivityCodeGroup'
    mngrp       as NotifActivityCodeGroup,
    @ObjectModel.foreignKey.association: '_NotifActivityCode'
    mncod       as NotifActivityCode,
    
    matxt       as NotifActivityText,
    pster       as NotifActivityStartDate,
    pstur       as NotifActivityStartTime,
    peter       as NotifActivityEndDate,
    petur       as NotifActivityEndTime,

//=== Administrative Data

    case changeddatetime
        when 0 then cast( '19000101010101' as tzntstmps )
        else changeddatetime                            
    end         as ChangedDateTime,
    @ObjectModel.foreignKey.association: '_CreatedByUserContactCard'
    ernam       as CreatedByUser,
    @Semantics.systemDate.createdAt: true
    erdat       as CreationDate,
    erzeit      as CreationTime,
    @ObjectModel.foreignKey.association: '_LastChangedByUserContactCard'
    aenam       as LastChangedByUser,
    @Semantics.systemDate.lastChangedAt: true
    aedat       as LastChangeDate,
    aezeit      as LastChangeTime,
    _Notification.IsBusinessPurposeCompleted,
    
    /* Associations */ 
    _Notification,
    _CreatedByUserContactCard,
    _LastChangedByUserContactCard,
    _Language,
    _NotifActivityCatalog,
    _NotifActivityCodeGroup,
    _NotifActivityCode
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_NOTIFICATION",
"QMMA"
],
"ASSOCIATED":
[
"I_LANGUAGE",
"I_NOTIFACTIVITYCATALOG",
"I_NOTIFACTIVITYCODE",
"I_NOTIFACTIVITYCODEGROUP",
"I_NOTIFICATION",
"I_USERCONTACTCARD"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/