I_CollectionsCustomerContactVH

DDL: I_COLLECTIONSCUSTOMERCONTACTVH Type: view COMPOSITE

Collections Customer Contact VH

I_CollectionsCustomerContactVH is a Composite CDS View that provides data about "Collections Customer Contact VH" in SAP S/4HANA. It reads from 1 data source (I_CustomerContact) and exposes 22 fields with key field CustomerContact. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerContact I_CustomerContact from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_BPRelationship _BPRelationship $projection.BusinessPartnerCompany = _BPRelationship.BusinessPartner1 and $projection.BusinessPartnerPerson = _BPRelationship.BusinessPartner2 and _BPRelationship.RelationshipCategory = 'UDM001'
[0..1] I_BusinessPartnerVH _BusinessPartnerCompanyVH $projection.BusinessPartnerCompany = _BusinessPartnerCompanyVH.BusinessPartner
[0..1] I_BusinessPartnerVH _BusinessPartnerPersonVH $projection.BusinessPartnerPerson = _BusinessPartnerPersonVH.BusinessPartner

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSCSTCNTVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Collections Customer Contact VH view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey CustomerContact view
Search.searchable true view
Consumption.ranked true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CustomerContact CustomerContact
RelationshipNumber RelationshipNumber
BusinessPartnerCompany BusinessPartnerCompany
BusinessPartnerPerson BusinessPartnerPerson
BusinessPartnerName BusinessPartnerName
FirstName FirstName
LastName LastName
ContactPersonDepartment ContactPersonDepartment
ContactPersonDepartmentName
ContactPersonFunction ContactPersonFunction
ContactPersonFunctionName
PhoneNumber PhoneNumber
MobilePhoneNumber MobilePhoneNumber
FaxNumber FaxNumber
EmailAddress EmailAddress
_BusinessPartnerCompany _BusinessPartnerCompany
_BusinessPartnerPerson _BusinessPartnerPerson
_ContactPersonDepartment _ContactPersonDepartment
_ContactPersonFunction _ContactPersonFunction
_BPRelationship _BPRelationship
_BusinessPartnerCompanyVH _BusinessPartnerCompanyVH
_BusinessPartnerPersonVH _BusinessPartnerPersonVH
@AbapCatalog: { sqlViewName: 'ICOLLSCSTCNTVH',
                compiler: { compareFilter: true },
                preserveKey: true }
@AccessControl: { authorizationCheck: #CHECK,
                  personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Collections Customer Contact VH' }
@VDM: { viewType: #COMPOSITE }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #C,
                             sizeCategory: #S,
                             dataClass: #TRANSACTIONAL },
                dataCategory: #VALUE_HELP,
                representativeKey: 'CustomerContact' }
@Search: { searchable: true }
@Consumption: { ranked: true }

define view I_CollectionsCustomerContactVH
  as select from I_CustomerContact

  // VDM Associations

  // Relationships

  association [0..1] to I_BPRelationship    as _BPRelationship           on  $projection.BusinessPartnerCompany   = _BPRelationship.BusinessPartner1
                                                                         and $projection.BusinessPartnerPerson    = _BPRelationship.BusinessPartner2
                                                                         and _BPRelationship.RelationshipCategory = 'UDM001'

  // Business Partner Company Value Help

  association [0..1] to I_BusinessPartnerVH as _BusinessPartnerCompanyVH on  $projection.BusinessPartnerCompany = _BusinessPartnerCompanyVH.BusinessPartner

  // Business Partner Person Value Help

  association [0..1] to I_BusinessPartnerVH as _BusinessPartnerPersonVH  on  $projection.BusinessPartnerPerson = _BusinessPartnerPersonVH.BusinessPartner

{

      // VDM Fields

      @Search: { defaultSearchElement: true,
                 fuzzinessThreshold:   0.8,
                 ranking:              #HIGH }
      @UI: { hidden: true }
  key CustomerContact,

      @UI: { hidden: true }
      RelationshipNumber,

      @Search: { defaultSearchElement: true,
                 fuzzinessThreshold:   0.8,
                 ranking:              #LOW }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER } },
                      valueHelpDefinition: [ { association: '_BusinessPartnerCompanyVH' } ] }
      BusinessPartnerCompany,

      @UI: { lineItem: { position: 20 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } },
                      valueHelpDefinition: [ { association: '_BusinessPartnerPersonVH' } ] }
      @Search: { defaultSearchElement: true,
                 fuzzinessThreshold:   0.8,
                 ranking:              #LOW }
      @ObjectModel: { text: { element: [ 'BusinessPartnerName' ] } }
      @EndUserText: { label:     'Contact Person',
                      quickInfo: 'Contact Person for Customer' }
      BusinessPartnerPerson,

      @UI: { lineItem: { position: 30 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      @Semantics: { text: true }
      @EndUserText: { label:     'Contact Person Name',
                      quickInfo: 'Name of Contact Person' }
      BusinessPartnerName,

      @UI: { hidden: true }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      @Search: { defaultSearchElement: true,
                 fuzzinessThreshold:   0.8,
                 ranking:              #LOW }
      FirstName,

      @UI: { hidden: true }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      @Search: { defaultSearchElement: true,
                 fuzzinessThreshold:   0.8,
                 ranking:              #LOW }
      LastName,

      @UI: { hidden: true }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      ContactPersonDepartment,

      @UI: { lineItem: { position: 40 } }
      @EndUserText: { label:     'Department',
                      quickInfo: 'Department of Contact Person' }
      _ContactPersonDepartment._Text[1:Language = $session.system_language].ContactPersonDepartmentName,

      @UI: { hidden: true }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      ContactPersonFunction,

      @UI: { lineItem: { position: 50 } }
      @EndUserText: { label:     'Function',
                      quickInfo: 'Function of Contact Person' }
      _ContactPersonFunction._Text[1:Language = $session.system_language].ContactPersonFunctionName,

      @UI: { lineItem: { position: 60 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      PhoneNumber,

      @UI: { lineItem: { position: 70 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      @EndUserText: { quickInfo: 'Mobile Phone Number',
                      label:     'Mobile Phone Number' }
      MobilePhoneNumber,

      @UI: { lineItem: { position: 80 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      FaxNumber,

      @UI: { lineItem: { position: 90 } }
      @Consumption: { valueHelpDefault: { binding: { usage: #FILTER_AND_RESULT } } }
      EmailAddress,

      // Exposed Associations

      @UI: { hidden: true }
      _BusinessPartnerCompany,

      @UI: { hidden: true }
      _BusinessPartnerPerson,

      @UI: { hidden: true }
      _ContactPersonDepartment,

      @UI: { hidden: true }
      _ContactPersonFunction,

      // Exposed Associations

      _BPRelationship,
      _BusinessPartnerCompanyVH,
      _BusinessPartnerPersonVH

}

where
  _BPRelationship.RelationshipCategory is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPRELATIONSHIP",
"I_CONTACTPERSONDEPARTMENT",
"I_CONTACTPERSONDEPARTMENTT",
"I_CONTACTPERSONFUNCTION",
"I_CONTACTPERSONFUNCTIONT",
"I_CUSTOMERCONTACT"
],
"ASSOCIATED":
[
"I_BPRELATIONSHIP",
"I_BUSINESSPARTNER",
"I_BUSINESSPARTNERVH",
"I_CONTACTPERSONDEPARTMENT",
"I_CONTACTPERSONFUNCTION"
],
"BASE":
[
"I_CUSTOMERCONTACT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/