I_BusinessPartnerDefaultAddr

DDL: I_BUSINESSPARTNERDEFAULTADDR SQL: IBPDEFADDR Type: view BASIC

Business Partner Default Address

I_BusinessPartnerDefaultAddr is a Basic CDS View (Dimension) that provides data about "Business Partner Default Address" in SAP S/4HANA. It reads from 2 data sources (but020, but021_fs) and exposes 14 fields with key fields BusinessPartner, BusinessPartnerAddressID. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
but020 but020 from
but021_fs but021_fs inner

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[1..1] I_Address _Address $projection.BusinessPartnerAddressID = _Address.AddressID
[0..1] I_BPProtectedAddress _BPProtectedAddress $projection.BusinessPartner = _BPProtectedAddress.BusinessPartner and $projection.BusinessPartnerAddressID = _BPProtectedAddress.AddressID
[0..1] I_Address_2 _AddressDefaultRepresentation $projection.BusinessPartnerAddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode is initial
[0..1] I_AddrOrgNamePostalAddress _AddrOrgNamePostalAddress $projection.BusinessPartnerAddressID = _AddrOrgNamePostalAddress.AddressID and _AddrOrgNamePostalAddress.AddressRepresentationCode is initial

Annotations (12)

NameValueLevelField
EndUserText.label Business Partner Default Address view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey BusinessPartner view
AbapCatalog.sqlViewName IBPDEFADDR view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner but020 partner
KEY BusinessPartnerAddressID but021_fs addrnumber
addr_valid_fromasValidityStartDate
addr_valid_toasValidityEndDate
IsStandardAddress but021_fs xdfadu
PersonNumber _BusinessPartner PersonNumber
PrfrdCommMediumType _AddressDefaultRepresentation PrfrdCommMediumType
CorrespondenceLanguage _AddressDefaultRepresentation CorrespondenceLanguage
_Address _Address
AuthorizationGroup _BusinessPartner AuthorizationGroup
_BusinessPartner _BusinessPartner
_BPProtectedAddress _BPProtectedAddress
_AddressDefaultRepresentation _AddressDefaultRepresentation
_AddrOrgNamePostalAddress _AddrOrgNamePostalAddress
@EndUserText.label: 'Business Partner Default Address' //same as DDL description

@Analytics.dataCategory: #DIMENSION //or #CUBE or #FACT

@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey: 'BusinessPartner'
@AbapCatalog.sqlViewName: 'IBPDEFADDR'
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MASTER
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #REQUIRED
@Metadata.allowExtensions: true
@AccessControl.privilegedAssociations:  [ '_Address', '_AddressDefaultRepresentation' ]
define view I_BusinessPartnerDefaultAddr
  as select from but020
    inner join   but021_fs on  but020.partner       = but021_fs.partner
                           and but020.addrnumber    = but021_fs.addrnumber
    //                                             and but020.addr_valid_from = but021_fs.valid_from

                           and but020.addr_valid_to = but021_fs.valid_to // to get current default address use view I_BPCurrentDefaultAddress

                           and but021_fs.adr_kind   = 'XXDEFAULT'
                           and but020.nation        = ''

  association [1..1] to I_BusinessPartner    as _BusinessPartner              on  $projection.BusinessPartner = _BusinessPartner.BusinessPartner

  association [1..1] to I_Address            as _Address                      on  $projection.BusinessPartnerAddressID = _Address.AddressID

  association [0..1] to I_BPProtectedAddress as _BPProtectedAddress           on  $projection.BusinessPartner          = _BPProtectedAddress.BusinessPartner
                                                                              and $projection.BusinessPartnerAddressID = _BPProtectedAddress.AddressID

  association [0..1] to I_Address_2          as _AddressDefaultRepresentation on  $projection.BusinessPartnerAddressID                    = _AddressDefaultRepresentation.AddressID
                                                                              and _AddressDefaultRepresentation.AddressRepresentationCode is initial
  association [0..1] to I_AddrOrgNamePostalAddress as  _AddrOrgNamePostalAddress on  $projection.BusinessPartnerAddressID = _AddrOrgNamePostalAddress.AddressID
                                                                              and _AddrOrgNamePostalAddress.AddressRepresentationCode is initial                                                                          

{
  key but020.partner                                       as BusinessPartner,
      @ObjectModel.foreignKey.association: '_Address'
  key but021_fs.addrnumber                                 as BusinessPartnerAddressID,
      @ Semantics.businessDate.from:true
      but020.addr_valid_from                               as ValidityStartDate,
      @ Semantics.businessDate.to:true
      but020.addr_valid_to                                 as ValidityEndDate,
      but021_fs.xdfadu                                     as IsStandardAddress,
      _BusinessPartner.PersonNumber                        as PersonNumber,
      //commented for I_Address_2 adoption

      // _Address.PrfrdCommMediumType    as  PrfrdCommMediumType,

      //    _Address.CorrespondenceLanguage as  CorrespondenceLanguage,

      //addded for I_Address_2 adoption

      _AddressDefaultRepresentation.PrfrdCommMediumType    as PrfrdCommMediumType,
      _AddressDefaultRepresentation.CorrespondenceLanguage as CorrespondenceLanguage,
      _Address,
      _BusinessPartner.AuthorizationGroup,
      _BusinessPartner,
      _BPProtectedAddress,
      // I_Address_2 adoption

      _AddressDefaultRepresentation,
      _AddrOrgNamePostalAddress
}