I_CollectionsCustomerContactVH

DDL: I_COLLECTIONSCUSTOMERCONTACTVH Type: view COMPOSITE Package: ODATA_CONTACT_PERSON

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. It is exposed through 1 OData service (UI_PROCESSRECEIVABLES_MANAGE). Part of development package ODATA_CONTACT_PERSON.

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

OData Services (1)

ServiceBindingVersionContractRelease
UI_PROCESSRECEIVABLES_MANAGE UI_PROCESSRECEIVABLES_MAN V2 C1 NOT_TO_BE_RELEASED_STABLE

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CustomerContact CustomerContact
RelationshipNumber RelationshipNumber BP Rel. Number
BusinessPartnerCompany BusinessPartnerCompany Busn. Partner
BusinessPartnerPerson BusinessPartnerPerson Busn. Partner
BusinessPartnerName BusinessPartnerName Extracted Customer Name
FirstName FirstName First Name
LastName LastName Last Name
ContactPersonDepartment ContactPersonDepartment Department
ContactPersonDepartmentName
ContactPersonFunction ContactPersonFunction Function
ContactPersonFunctionName
PhoneNumber PhoneNumber Telephone no.
MobilePhoneNumber MobilePhoneNumber Telephone
FaxNumber FaxNumber Fax Number
EmailAddress EmailAddress E-Mail Address
_BusinessPartnerCompany _BusinessPartnerCompany
_BusinessPartnerPerson _BusinessPartnerPerson
_ContactPersonDepartment _ContactPersonDepartment
_ContactPersonFunction _ContactPersonFunction
_BPRelationship _BPRelationship
_BusinessPartnerCompanyVH _BusinessPartnerCompanyVH
_BusinessPartnerPersonVH _BusinessPartnerPersonVH

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_CollectionsCustomerContactVH.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_CollectionsCustomerContactVH AS
SELECT
  CustomerContact,
  RelationshipNumber,
  BusinessPartnerCompany,
  BusinessPartnerPerson,
  BusinessPartnerName,
  FirstName,
  LastName,
  ContactPersonDepartment,
  _ContactPersonDepartment._Text[1:Language = $session.system_language].ContactPersonDepartmentName AS ContactPersonDepartmentName,
  ContactPersonFunction,
  _ContactPersonFunction._Text[1:Language = $session.system_language].ContactPersonFunctionName AS ContactPersonFunctionName,
  PhoneNumber,
  MobilePhoneNumber,
  FaxNumber,
  EmailAddress
FROM I_CustomerContact
LEFT OUTER JOIN I_BPRelationship AS _BPRelationship ON BusinessPartnerCompany = _BPRelationship.BusinessPartner1 AND BusinessPartnerPerson = _BPRelationship.BusinessPartner2 AND _BPRelationship.RelationshipCategory = 'UDM001'  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartnerVH AS _BusinessPartnerCompanyVH ON BusinessPartnerCompany = _BusinessPartnerCompanyVH.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartnerVH AS _BusinessPartnerPersonVH ON BusinessPartnerPerson = _BusinessPartnerPersonVH.BusinessPartner  -- association [0..1]
;