P_COLLSCUSTOMERCONTACTNOTE

CDS View

P_COLLSCUSTOMERCONTACTNOTE is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_CollectionsAccountNote view union_all COMPOSITE Collections Account Note
@AbapCatalog: { sqlViewName: 'PCLLSCNTNTE',
                compiler: { compareFilter: true },
                preserveKey: true }
@AccessControl: { authorizationCheck: #NOT_REQUIRED,
                  personalData:       { blocking: #BLOCKED_DATA_EXCLUDED } }
@VDM: { viewType: #COMPOSITE,
        private: true }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #C,
                             sizeCategory: #L,
                             dataClass: #TRANSACTIONAL },
                representativeKey: 'CustomerContactUUID' }
define view P_CollsCustomerContactNote
  as select from I_CustomerContactAttribute
    inner join   I_BusinessPartnerCustomer on I_CustomerContactAttribute.BusinessPartner = I_BusinessPartnerCustomer.BusinessPartner

  // VDM Association

  // Notes

  association [0..*] to Sgbt_Nte_Cds_Cont as _NoteContent on  $projection.CustomerContactUUID = _NoteContent.objectid
                                                          and _NoteContent.objectnodetype     = 'CollectionsCustomerContact'
                                                          and _NoteContent.notetype           = 'COLL_CCT_NOTE'

  // Customer

  association [0..1] to I_Customer        as _Customer    on  $projection.Customer = _Customer.Customer

{
      //I_BusinessPartnerCustomer

  key CustomerContactUUID,
  key CollectionSegment,
      Customer,

      case
      when CustomerContactType = '001' and CustomerContactDirection = 'O'
          then 'sap-icon://outgoing-call'

      when CustomerContactType = '001' and CustomerContactDirection = 'I'
          then 'sap-icon://incoming-call'

      when CustomerContactType = '002'
          then 'sap-icon://visits'

      when CustomerContactType = '003'
      then 'sap-icon://batch-payments'

      when CustomerContactType = '004' and CustomerContactDirection = 'O'
      then 'sap-icon://email'

      when CustomerContactType = '004' and CustomerContactDirection = 'I'
      then 'sap-icon://email-read'

      when CustomerContactType = '010'
      then 'sap-icon://letter'

      else 'sap-icon://visits'

      end                                                                                           as NoteIconURL,

      _CustomerContactResult._Text[1:Language = $session.system_language].CustomerContactResultText as NoteDescription,

      CustomerContactResult,
      CreatedByUser,
      CustomerContactDateTime                                                                       as CreationDateTime,

      // Exposed Associations

      _NoteContent,
      _Customer,
      _CollectionSegment,
      _CustomerContactResult

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERCUSTOMER",
"I_CUSTOMERCONTACTATTRIBUTE",
"I_CUSTOMERCONTACTRESULT",
"I_CUSTOMERCONTACTRESULTTEXT"
],
"ASSOCIATED":
[
"I_COLLECTIONSEGMENT",
"I_CUSTOMER",
"I_CUSTOMERCONTACTRESULT",
"SGBT_NTE_CDS_CONT"
],
"BASE":
[
"I_CUSTOMERCONTACTATTRIBUTE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/