@AbapCatalog.sqlViewName : 'CBPADDRESSVH'
@EndUserText.label : 'Value Help view for list of addresses of a BP'
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey : 'AddressNumber'
@Search.searchable: true
@VDM.viewType: #CONSUMPTION
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.privilegedAssociations: [ '_BPProtectedAddress' ]
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
define view C_BPAddressValueHelp
as select from I_BusinessPartnerAddress
association [1..1] to I_BusinessPartner as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner
{
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
@ObjectModel.text.element : 'CompleteAddress'
key AddressNumber,
@Consumption.filter .hidden: true
BusinessPartner,
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
HouseNumber,
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
StreetName,
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
CityName,
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
Country,
@Consumption.filter .hidden: true
@Search.defaultSearchElement: true
PostalCode,
@Consumption.filter .hidden: true
@EndUserText.label : 'Address'
case
when HouseNumber = '' and StreetName = '' and CityName = ''
then concat_with_space(Country,PostalCode,1)
when HouseNumber = '' and StreetName = ''
then concat_with_space(concat(CityName, ','), concat_with_space(Country,PostalCode,1), 1)
else
concat_with_space(concat(concat_with_space(concat_with_space(concat_with_space(HouseNumber,StreetName,1),',',1),CityName,1),','),concat_with_space(Country,PostalCode,1),1)
end
as CompleteAddress,
_BusinessPartner,
_BPProtectedAddress
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_BUSINESSPARTNERADDRESS"
],
"ASSOCIATED":
[
"I_BPPROTECTEDADDRESS",
"I_BUSINESSPARTNER"
],
"BASE":
[
"I_BUSINESSPARTNERADDRESS"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_BPAddressValueHelp view