I_CollectionsAccountNote

DDL: I_COLLECTIONSACCOUNTNOTE Type: view COMPOSITE

Collections Account Note

I_CollectionsAccountNote is a Composite CDS View that provides data about "Collections Account Note" in SAP S/4HANA. It reads from 3 data sources (P_CollectionsAccountNote, P_CollsCustomerContactNote, P_CollsResubmissionNote) and exposes 10 fields with key fields Customer, CollectionSegment, NoteID, CustomerContactUUID, ResubmissionUUID. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
P_CollectionsAccountNote P_CollectionsAccountNote from
P_CollsCustomerContactNote P_CollsCustomerContactNote union_all
P_CollsResubmissionNote P_CollsResubmissionNote union_all

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _CreatedByContactCard $projection.CreatedByUser = _CreatedByContactCard.ContactCardID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICLLSACCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Collections Account Note view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey Customer view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer
KEY CollectionSegment CollectionSegment
KEY NoteID
KEY CustomerContactUUID
KEY ResubmissionUUID
ObjectKey ObjectKey
NoteDescription
CreatedByUser
CreationDateTime
NoteText
@AbapCatalog: { sqlViewName: 'ICLLSACCNT',
                compiler: { compareFilter: true },
                preserveKey: true }
@AccessControl: { authorizationCheck: #CHECK,
                  privilegedAssociations: [ '_CreatedByContactCard' ],
                  personalData:       { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Collections Account Note' }
@VDM: { viewType: #COMPOSITE,
        lifecycle: { contract: { type: #SAP_INTERNAL_API } } }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #D,
                             sizeCategory: #L,
                             dataClass: #TRANSACTIONAL },
                semanticKey: [ 'Customer', 'CollectionSegment' ],
                representativeKey: 'Customer' }

define root view I_CollectionsAccountNote
  as select from P_CollectionsAccountNote

  // VDM Associations

  // Created By Contact Card

  association [0..1] to I_UserContactCard as _CreatedByContactCard on $projection.CreatedByUser = _CreatedByContactCard.ContactCardID

{

      // VDM Fields

      @ObjectModel: { foreignKey: { association: '_Customer' } }
  key Customer,

      @ObjectModel: { foreignKey: { association: '_CollectionSegment' } }
  key CollectionSegment,

  key _NoteContent[inner].noteid                    as NoteID,
  key cast ( '' as bdm_cct_guid )                   as CustomerContactUUID,
  key cast ( '' as bdm_rsm_guid )                   as ResubmissionUUID,
      ObjectKey,
      cast( 'Note' as text80 )                      as NoteDescription,
      _NoteContent[inner].creator                   as CreatedByUser,
      _NoteContent[inner].created                   as CreationDateTime,
      _NoteContent[inner].content                   as NoteText,
      cast( 'sap-icon://notes'          as text40 ) as NoteIconURL,

      cast( '0' as char1 )                          as MigrationStatus,
      cast( '' as sysuuid_c32 )                     as DraftUUID,
      cast( '' as boolean )                         as IsHeadOffice,

      // Exposed Associations

      _CollectionSegment,
      _Customer,
      _CreatedByContactCard

}

union all select from P_CollsCustomerContactNote

// VDM Associations

// Created By Contact Card

association [0..1] to I_UserContactCard as _CreatedByContactCard on $projection.CreatedByUser = _CreatedByContactCard.ContactCardID

{
      // VDM Fields

      @ObjectModel: { foreignKey: { association: '_Customer' } }
  key Customer,

      @ObjectModel: { foreignKey: { association: '_CollectionSegment' } }
  key CollectionSegment,

  key _NoteContent.noteid,
  key CustomerContactUUID,
  key cast ( '' as bdm_rsm_guid ) as ResubmissionUUID,
      ''                          as ObjectKey,
      NoteDescription,
      CreatedByUser,
      CreationDateTime,
      ''                          as NoteText,
      NoteIconURL,
      cast ( '1' as char1 )       as MigrationStatus,
      cast( '' as sysuuid_c32 )   as DraftUUID,
      cast( '' as boolean )       as IsHeadOffice,

      // Exposed Associations

      _CollectionSegment,
      _Customer,
      _CreatedByContactCard

}

union all select from P_CollsResubmissionNote

// VDM Associations

// Created By Contact Card

association [0..1] to I_UserContactCard as _CreatedByContactCard on $projection.CreatedByUser = _CreatedByContactCard.ContactCardID

{

      @ObjectModel: { foreignKey: { association: '_Customer' } }
  key Customer,

      @ObjectModel: { foreignKey: { association: '_CollectionSegment' } }
  key CollectionSegment,

  key _NoteContent.noteid         as NoteID,
  key cast ( '' as bdm_cct_guid ) as CustomerContactUUID,
  key ResubmissionUUID            as ResubmissionUUID,
      ''                          as ObjectKey,
      NoteDescription,
      CreatedByUser               as CreatedByUser,
      CreationDateTime            as CreationDateTime,
      ''                          as NoteText,
      NoteIconURL,
      cast( '2' as char1 )        as MigrationStatus,
      cast( '' as sysuuid_c32 )   as DraftUUID,
      cast( '' as boolean )       as IsHeadOffice,

      // Exposed Associations

      _CollectionSegment,
      _Customer,
      _CreatedByContactCard

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_COLLECTIONSACCOUNTNOTE",
"P_COLLSCUSTOMERCONTACTNOTE",
"P_COLLSRESUBMISSIONNOTE",
"SGBT_NTE_CDS_CONT"
],
"ASSOCIATED":
[
"I_COLLECTIONSEGMENT",
"I_CUSTOMER",
"I_USERCONTACTCARD"
],
"BASE":
[
"P_COLLECTIONSACCOUNTNOTE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/