@EndUserText.label : 'Contact Card for Person Work Agreement'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@AbapCatalog: {
sqlViewName: 'CPDMNDRESCCARD',
compiler.compareFilter: true ,
preserveKey: true
}
// Authorization handling
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #REQUIRED
}
@ObjectModel: {
semanticKey: [ 'PersonWorkAgreement' ],
representativeKey: 'PersonWorkAgreement',
usageType: {
serviceQuality: #C,
dataClass: #MASTER,
sizeCategory: #XL
}
}
@UI.headerInfo: {
typeName: 'Person',
typeNamePlural: 'Persons',
typeImageUrl: 'sap-icon://person',
title: { type: #STANDARD, value: 'PersonFullName' }
}
define view C_ProjDmndResourceContactCard
as select distinct
from I_PersonWorkAgreement_1 as WAgreement
inner join I_WorkforcePerson as WForcePerson on WAgreement.Person = WForcePerson.Person
{
@UI.facet: [
{
purpose: #QUICK_VIEW,
type: #FIELDGROUP_REFERENCE,
targetQualifier: 'ResourceMainContact',
label: 'Main Contact'
}
]
@Semantics.contact.type: #PERSON
//@ObjectModel.text.element: [ 'PersonFullName' ]
key cast ( WAgreement.PersonWorkAgreement as tv_proj_dmnd_persno ) as PersonWorkAgreement,
@UI.hidden: true
WForcePerson.BusinessPartnerUUID,
@UI.fieldGroup: [{ qualifier: 'ResourceMainContact', position: 40, label: 'Full Name' }]
@EndUserText.label : 'Full Name'
@Semantics.name.fullName: true
WAgreement.PersonFullName as PersonFullName,
@Semantics.telephone.type: [ #WORK ]
@UI.fieldGroup: [{ qualifier: 'ResourceMainContact', position: 20, label: 'Phone' }]
@EndUserText.label : 'Phone Number'
WForcePerson._WorkplaceAddress.NormalizedPhoneNumber,
@UI.fieldGroup: [{ qualifier: 'ResourceMainContact', position: 10, label: 'Mobile' }]
@EndUserText.label : 'Mobile Phone Number'
@Semantics.telephone.type: [ #CELL, #PREF ]
WForcePerson._WorkplaceAddress.MblNormalizedPhoneNumber,
@EndUserText.label : 'Default Email Address'
@UI.fieldGroup: [{ qualifier:'ResourceMainContact', position: 30, label: 'Default Email Address'}]
@Semantics: { eMail: { address: true , type: [ #WORK ] } }
WForcePerson._WorkplaceAddress.DefaultEmailAddress,
// required for authorizations only
@UI.hidden: true
WForcePerson.Person,
@UI.hidden: true
WForcePerson._BusinessPartner
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_PERSONWORKAGREEMENT_1",
"I_WORKFORCEPERSON",
"I_WORKPLACEADDRESS"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER"
],
"BASE":
[
"I_WORKFORCEPERSON"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_ProjDmndResourceContactCard view