I_CustomerContactOP

DDL: I_CUSTOMERCONTACTOP SQL: ICUSTCNTCTOP Type: view COMPOSITE

View for Contacts for Customer Object Page

I_CustomerContactOP is a Composite CDS View that provides data about "View for Contacts for Customer Object Page" in SAP S/4HANA. It reads from 1 data source (I_CustomerContact) and exposes 20 fields with key fields Customer, RelationshipNumber, BusinessPartnerCompany, BusinessPartnerPerson. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerContact Contact from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Customer_to_BusinessPartner _CustomerToBusinessPartner $projection.PartnerUUID = _CustomerToBusinessPartner.BusinessPartnerUUID
[0..1] I_ContactPersonFunctionT _CntctPersnFuncValueHelp $projection.ContactPersonFunction = _CntctPersnFuncValueHelp.ContactPersonFunction and _CntctPersnFuncValueHelp.Language = $session.system_language
[0..1] I_ContactPersonDepartmentT _CntctPersnDeptValueHelp $projection.ContactPersonDepartment = _CntctPersnDeptValueHelp.ContactPersonDepartment and _CntctPersnDeptValueHelp.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTCNTCTOP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label View for Contacts for Customer Object Page view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY Customer _CustomerToBusinessPartner Customer Sold-to Party
KEY RelationshipNumber I_CustomerContact RelationshipNumber BP Rel. Number
KEY BusinessPartnerCompany I_CustomerContact BusinessPartnerCompany Busn. Partner
KEY BusinessPartnerPerson I_CustomerContact BusinessPartnerPerson Busn. Partner
PartnerUUID I_CustomerContact PartnerUUID
ContactPersonFunction I_CustomerContact ContactPersonFunction Function
ContactPersonDepartment I_CustomerContact ContactPersonDepartment Department
FirstName I_CustomerContact FirstName First Name
LastName I_CustomerContact LastName Last Name
FullName
ContactPersonFunctionName _CntctPersnFuncValueHelp ContactPersonFunctionName Function
ContactPersonDepartmentName _CntctPersnDeptValueHelp ContactPersonDepartmentName Company dept.
PhoneNumber I_CustomerContact PhoneNumber Telephone no.
EmailAddress I_CustomerContact EmailAddress E-Mail Address
MobilePhoneNumber I_CustomerContact MobilePhoneNumber Telephone
_CustomerToBusinessPartner _CustomerToBusinessPartner
_CntctPersnFuncValueHelp _CntctPersnFuncValueHelp
_CntctPersnDeptValueHelp _CntctPersnDeptValueHelp
_BusinessPartnerPerson _BusinessPartnerPerson
_BusinessPartnerCompany _BusinessPartnerCompany

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_CustomerContactOP.
-- 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.
-- SQL view name: ICUSTCNTCTOP

CREATE VIEW I_CustomerContactOP AS
SELECT
  _CustomerToBusinessPartner.Customer AS Customer,
  Contact.RelationshipNumber AS RelationshipNumber,
  Contact.BusinessPartnerCompany AS BusinessPartnerCompany,
  Contact.BusinessPartnerPerson AS BusinessPartnerPerson,
  Contact.PartnerUUID AS PartnerUUID,
  Contact.ContactPersonFunction AS ContactPersonFunction,
  Contact.ContactPersonDepartment AS ContactPersonDepartment,
  Contact.FirstName AS FirstName,
  Contact.LastName AS LastName,
  concat_with_space(Contact.FirstName, Contact.LastName, 1) AS FullName,
  _CntctPersnFuncValueHelp.ContactPersonFunctionName AS ContactPersonFunctionName,
  _CntctPersnDeptValueHelp.ContactPersonDepartmentName AS ContactPersonDepartmentName,
  Contact.PhoneNumber AS PhoneNumber,
  Contact.EmailAddress AS EmailAddress,
  Contact.MobilePhoneNumber AS MobilePhoneNumber
FROM I_CustomerContact AS Contact
LEFT OUTER JOIN I_Customer_to_BusinessPartner AS _CustomerToBusinessPartner ON PartnerUUID = _CustomerToBusinessPartner.BusinessPartnerUUID  -- association [0..1]
LEFT OUTER JOIN I_ContactPersonFunctionT AS _CntctPersnFuncValueHelp ON ContactPersonFunction = _CntctPersnFuncValueHelp.ContactPersonFunction AND _CntctPersnFuncValueHelp.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ContactPersonDepartmentT AS _CntctPersnDeptValueHelp ON ContactPersonDepartment = _CntctPersnDeptValueHelp.ContactPersonDepartment AND _CntctPersnDeptValueHelp.Language = $session.system_language  -- association [0..1]
;