I_AccountingNotification

DDL: I_ACCOUNTINGNOTIFICATION Type: view_entity BASIC Package: FABTI_ACCNTG_NOTIFICATION_EXT

Accounting Notification

I_AccountingNotification is a Basic CDS View that provides data about "Accounting Notification" in SAP S/4HANA. It reads from 1 data source (fan_hdr) and exposes 41 fields with key field AccountingNotificationUUID. It has 11 associations to related views. It is exposed through 1 OData service (UI_FIN_MNGACCNOTIF). Part of development package FABTI_ACCNTG_NOTIFICATION_EXT.

Data Sources (1)

SourceAliasJoin Type
fan_hdr fan_hdr from

Associations (11)

CardinalityTargetAliasCondition
[0..*] I_AcctgNotifAddlCompanyCode _AddlCompanyCode $projection.AccountingNotificationUUID = _AddlCompanyCode.AccountingNotificationUUID
[0..1] I_CompanyCode _LeadingCompanyCode $projection.LeadingCompanyCode = _LeadingCompanyCode.CompanyCode
[0..1] I_CompanyCode _LeadingCompanyCodeText $projection.LeadingCompanyCode = _LeadingCompanyCodeText.CompanyCode
[0..1] I_AccountingNotificationType _AccountingNotificationType $projection.AccountingNotificationType = _AccountingNotificationType.AccountingNotificationType
[0..1] I_AcctgNotifRefDocumentType _ReferenceDocumentType $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_AcctgNotifProcessingStatus _ProcessingStatus $projection.AcctgNotifProcessingStatus = _ProcessingStatus.AcctgNotifProcessingStatus
[0..1] P_ProcgPostingStatusMapping _StatusMapping $projection.AcctgNotifProcessingStatus = _StatusMapping.AcctgNotifProcessingStatus
[0..1] I_AcctgNotifPostingStatus _PostingStatus $projection.acctgnotifpostingstatus = _PostingStatus.AcctgNotifPostingStatus
[0..1] I_FinanceNotificationType _FinanceNotificationType $projection.FinanceNotificationType = _FinanceNotificationType.FinanceNotificationType

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Accounting Notification view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

OData Services (1)

ServiceBindingVersionContractRelease
UI_FIN_MNGACCNOTIF UI_FIN_MNGACCNOTIF V4 C1 NOT_RELEASED

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY AccountingNotificationUUID accounting_notification_uuid
FinanceNotificationUUID finance_notification_uuid
AccountingNotificationType accounting_notification_type
FinanceNotificationType finance_notification_type
ReferenceDocumentType reference_document_type
ReferenceDocument reference_document
ReferenceDocumentContext reference_document_context
ReferenceDocumentItem
ReferenceDocumentLogicalSystem
CreationDateTime
ReferenceDocumentOID reference_document_oid
ReferenceDocumentDisplayID reference_document_display_id
ReferenceDocumentEventOID reference_document_event_oid
RefDocumentEventDisplayID ref_document_event_display_id
RefDocLastChangeDateTime ref_doc_last_change_datetime
LeadingCompanyCode leading_company_code
ProposedPostingDate proposed_posting_date
AcctgNotifProcessingStatus acctg_notif_processing_status
AcctgNotifPostingStatus _StatusMapping AcctgNotifPostingStatus
LastChangeDateTime
CreatedByUser created_by_user
LastChangedByUser last_changed_by_user
ApplicationLogHandle
LatestMessageClass latest_message_class
LatestMessageNumber latest_message_number
LatestMessageSeverity latest_message_severity
LatestMessageVariable1Text latest_message_variable1_text
LatestMessageVariable2Text latest_message_variable2_text
LatestMessageVariable3Text latest_message_variable3_text
LatestMessageVariable4Text latest_message_variable4_text
IsReversal is_reversal
_AddlCompanyCode _AddlCompanyCode
_LeadingCompanyCode _LeadingCompanyCode
_LeadingCompanyCodeText _LeadingCompanyCodeText
_AccountingNotificationType _AccountingNotificationType
_ReferenceDocumentType _ReferenceDocumentType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ProcessingStatus _ProcessingStatus
_PostingStatus _PostingStatus
_FinanceNotificationType _FinanceNotificationType
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Accounting Notification'
@VDM.viewType: #BASIC
@ObjectModel: {
                usageType.serviceQuality: #A,
                usageType.sizeCategory: #XXL,
                usageType.dataClass: #TRANSACTIONAL }
define view entity I_AccountingNotification
  as select from fan_hdr
  association [0..*] to I_AcctgNotifAddlCompanyCode  as _AddlCompanyCode            on $projection.AccountingNotificationUUID = _AddlCompanyCode.AccountingNotificationUUID
  association [0..1] to I_CompanyCode                as _LeadingCompanyCode         on $projection.LeadingCompanyCode = _LeadingCompanyCode.CompanyCode
  association [0..1] to I_CompanyCode                as _LeadingCompanyCodeText     on $projection.LeadingCompanyCode = _LeadingCompanyCodeText.CompanyCode
  //  association [0..1] to I_ReferenceDocumentType      as _ReferenceDocumentType  on $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType


  association [0..1] to I_AccountingNotificationType as _AccountingNotificationType on $projection.AccountingNotificationType = _AccountingNotificationType.AccountingNotificationType
  association [0..1] to I_AcctgNotifRefDocumentType  as _ReferenceDocumentType      on $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType
  association [0..1] to I_User                       as _CreatedByUser              on $projection.CreatedByUser = _CreatedByUser.UserID
  association [0..1] to I_User                       as _LastChangedByUser          on $projection.LastChangedByUser = _LastChangedByUser.UserID
  association [0..1] to I_AcctgNotifProcessingStatus as _ProcessingStatus           on $projection.AcctgNotifProcessingStatus = _ProcessingStatus.AcctgNotifProcessingStatus
  association [0..1] to P_ProcgPostingStatusMapping  as _StatusMapping              on $projection.AcctgNotifProcessingStatus = _StatusMapping.AcctgNotifProcessingStatus
  association [0..1] to I_AcctgNotifPostingStatus    as _PostingStatus              on $projection.acctgnotifpostingstatus = _PostingStatus.AcctgNotifPostingStatus
  association [0..1] to I_FinanceNotificationType    as _FinanceNotificationType    on $projection.FinanceNotificationType = _FinanceNotificationType.FinanceNotificationType
  //  association [0..*] to I_AcctgNotifJournalEntry as _AcctgNotifJournalEntry on $projection.AccountingNotificationUUID = _AcctgNotifJournalEntry.AccountingNotificationUUID


{

  key accounting_notification_uuid                                  as AccountingNotificationUUID,
      finance_notification_uuid                                     as FinanceNotificationUUID,
      @ObjectModel.foreignKey.association: '_AccountingNotificationType'
      accounting_notification_type                                  as AccountingNotificationType,
      @ObjectModel.foreignKey.association: '_FinanceNotificationType'
      finance_notification_type                                     as FinanceNotificationType,
      @ObjectModel.foreignKey.association: '_ReferenceDocumentType'
      reference_document_type                                       as ReferenceDocumentType,
      reference_document                                            as ReferenceDocument,
      reference_document_context                                    as ReferenceDocumentContext,
      //    for label on UI

      cast ( reference_document_item  as fan_ref_doc_item )         as ReferenceDocumentItem,
      //    for label on UI

      cast( ref_doc_logical_system  as fan_ref_doc_logical_system ) as ReferenceDocumentLogicalSystem, //tbc: might need to be replaced by GlobalTenantID

      @Semantics.systemDateTime.createdAt: true
      //    for label on UI

      cast( creation_datetime as fan_creation_datetime )            as CreationDateTime,
      reference_document_oid                                        as ReferenceDocumentOID,
      reference_document_display_id                                 as ReferenceDocumentDisplayID,
      reference_document_event_oid                                  as ReferenceDocumentEventOID,
      ref_document_event_display_id                                 as RefDocumentEventDisplayID,
      ref_doc_last_change_datetime                                  as RefDocLastChangeDateTime,
      @ObjectModel.foreignKey.association: '_LeadingCompanyCode'
      leading_company_code                                          as LeadingCompanyCode,
      proposed_posting_date                                         as ProposedPostingDate,
      @ObjectModel.foreignKey.association: '_ProcessingStatus'
      acctg_notif_processing_status                                 as AcctgNotifProcessingStatus,
      @ObjectModel.foreignKey.association: '_PostingStatus'
      _StatusMapping.AcctgNotifPostingStatus,
      @Semantics.systemDateTime.lastChangedAt: true
      //    for label on UI

      cast( last_change_datetime as fan_last_change_datetime )      as LastChangeDateTime,
      @ObjectModel.foreignKey.association: '_CreatedByUser'
      @Semantics.user.createdBy: true
      created_by_user                                               as CreatedByUser,
      @ObjectModel.foreignKey.association: '_LastChangedByUser'
      @Semantics.user.lastChangedBy: true
      last_changed_by_user                                          as LastChangedByUser,

      cast( application_log_handle as abap.char( 22) )              as ApplicationLogHandle,
      latest_message_class                                          as LatestMessageClass,
      latest_message_number                                         as LatestMessageNumber,
      latest_message_severity                                       as LatestMessageSeverity,
      latest_message_variable1_text                                 as LatestMessageVariable1Text,
      latest_message_variable2_text                                 as LatestMessageVariable2Text,
      latest_message_variable3_text                                 as LatestMessageVariable3Text,
      latest_message_variable4_text                                 as LatestMessageVariable4Text,
      is_reversal                                                   as IsReversal,
      cast( case acctg_notif_processing_status
        when 'FA' then 1
        else 0
        end as fan_status_criticality )                             as StatusCriticality,
      //associations

      _AddlCompanyCode,
      _LeadingCompanyCode,
      @Consumption.hidden: true
      _LeadingCompanyCodeText,
      _AccountingNotificationType,
      _ReferenceDocumentType,
      _CreatedByUser,
      _LastChangedByUser,
      _ProcessingStatus,
      _PostingStatus,
      _FinanceNotificationType
}