@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label : 'Customer 360 External Contact'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.viewType: #CONSUMPTION
define view entity C_Customer360ExternalContact as select from I_CustomerContact as CustomerContact
//association [0..1] to I_Customer_to_BusinessPartner as _CustomerToBusinessPartner on $projection.PartnerUUID = _CustomerToBusinessPartner.BusinessPartnerUUID
join I_BusinessPartnerCustomer as _Customer on _Customer.BusinessPartner= CustomerContact.BusinessPartnerCompany
// association [0..1] to I_ContactPersonFunction as _CntctPersnFuncValueHelp on $projection.contactpersonfunction = _CntctPersnFuncValueHelp.ContactPersonFunction
// and _CntctPersnFuncValueHelp.Language = $session.system_language
{
key _Customer.Customer,
@UI.hidden:true
key CustomerContact.BusinessPartnerCompany,
@UI.hidden:true
key CustomerContact.BusinessPartnerPerson,
key CustomerContact.CustomerContact as ContactPerson,
@Semantics: { name.givenName: true }
CustomerContact.FirstName,
@Semantics: { name.familyName: true }
CustomerContact.LastName,
@Semantics: { name.fullName: true }
concat_with_space(CustomerContact.FirstName, CustomerContact.LastName, 1) as BusinessPartnerFullName,
CustomerContact.IsStandardRelationship,
@Semantics.name.jobTitle: true
@Semantics: { organization.role: true }
CustomerContact._ContactPersonFunction._Text[1: Language=$session.system_language ].ContactPersonFunctionName as PartnerFunctionName,
@Semantics.telephone.type: [#WORK]
CustomerContact.InternationalPhoneNumber,
@Semantics: { eMail: { address: true , type: [ #PREF, #WORK ] } }
CustomerContact.EmailAddress,
@Semantics: { telephone.type: [ #CELL ] }
CustomerContact.InternationalMobilePhoneNumber,
// Attributes for DCL
_Customer.AuthorizationGroup,
_Customer.CustomerAccountGroup,
/*Fields for DCL - BP Data Contoller*/
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataControllerSet,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController1,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController2,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController3,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController4,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController5,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController6,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController7,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController8,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController9,
@Consumption.hidden:true
@UI.hidden:true
_Customer.DataController10
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_BUSINESSPARTNERCUSTOMER",
"I_CONTACTPERSONFUNCTION",
"I_CONTACTPERSONFUNCTIONT",
"I_CUSTOMERCONTACT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_Customer360ExternalContact view_entity