C_Customer360_Contactop

DDL: C_CUSTOMER360_CONTACTOP SQL: CCUST360CONTOP Type: view CONSUMPTION

Customer 360 Contact OP

C_Customer360_Contactop is a Consumption CDS View that provides data about "Customer 360 Contact OP" in SAP S/4HANA. It reads from 1 data source (I_CustomerContact) and exposes 17 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 (18)

NameValueLevelField
AbapCatalog.sqlViewName CCUST360CONTOP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Customer 360 Contact OP view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
UI.headerInfo.typeName Contact view
UI.headerInfo.typeNamePlural Contacts view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value ContactPersonFunctionName view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ContactPersonFunction view
UI.presentationVariant.sortOrder.by LastName view
UI.presentationVariant.sortOrder.direction #ASC view

Fields (17)

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.
InternationalPhoneNumber I_CustomerContact InternationalPhoneNumber Telephone no.
EmailAddress I_CustomerContact EmailAddress E-Mail Address
InternationalMobilePhoneNumber I_CustomerContact InternationalMobilePhoneNumber
_BusinessPartnerCompany _BusinessPartnerCompany
_BusinessPartnerPerson _BusinessPartnerPerson

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 C_Customer360_Contactop.
-- 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: CCUST360CONTOP

CREATE VIEW C_Customer360_Contactop 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.InternationalPhoneNumber AS InternationalPhoneNumber,
  Contact.EmailAddress AS EmailAddress,
  Contact.InternationalMobilePhoneNumber AS InternationalMobilePhoneNumber
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]
;