I_BusPartScriptedPersonAddress

DDL: I_BUSPARTSCRIPTEDPERSONADDRESS SQL: IBPSCRPTPRSADDR Type: view COMPOSITE Package: MDC_BUPA_BO

International version of a business partner address

I_BusPartScriptedPersonAddress (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Database & Data Management

I_BusPartScriptedPersonAddress is a Composite CDS View that provides data about "International version of a business partner address" in SAP S/4HANA. It reads from 2 data sources (but020, I_ScriptedPersonAddress) and exposes 69 fields with key fields BusinessPartner, AddressNumber, AddressRepresentationCode. It has 3 associations to related views. Part of development package MDC_BUPA_BO.

SAP API Hub

CategoryComposite
StateC1
Line of BusinessDatabase & Data Management
Application ComponentAP-MD-BP-RAP
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageDatabase and Data Management for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
but020 BusinessPartnerAddress from
I_ScriptedPersonAddress ScriptedAddress inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_ScriptedOrganizationAddress _ScriptedAddress BusinessPartnerAddress.addrnumber = _ScriptedAddress.AddressNumber and $projection.AddressRepresentationCode = _ScriptedAddress.AddressRepresentationCode
[1..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_BPProtectedAddress _BPProtectedAddress $projection.BusinessPartner = _BPProtectedAddress.BusinessPartner and $projection.AddressNumber = _BPProtectedAddress.AddressID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBPSCRPTPRSADDR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label International version of a business partner address view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner but020 partner Business Partner Number
KEY AddressNumber but020 addrnumber Address Number
KEY AddressRepresentationCode I_ScriptedPersonAddress AddressRepresentationCode Version ID for International Addresses
ValidityStartDateTime but020 addr_valid_from Validity Start of a Business Partner Address
ValidityEndDateTime but020 addr_valid_to Validity End of a Business Partner Address
BusinessPartnerAddressUUID
CareOfName I_ScriptedPersonAddress CareOfName c/o name
AdditionalStreetSuffixName I_ScriptedPersonAddress AdditionalStreetSuffixName Street 5
CorrespondenceLanguage I_ScriptedPersonAddress CorrespondenceLanguage Language Key
PrfrdCommMediumType I_ScriptedPersonAddress PrfrdCommMediumType Communication Method (Key) (Business Address Services)
POBox I_ScriptedPersonAddress POBox PO Box
POBoxIsWithoutNumber I_ScriptedPersonAddress POBoxIsWithoutNumber Flag: PO Box Without Number
POBoxPostalCode I_ScriptedPersonAddress POBoxPostalCode PO Box Postal Code
POBoxLobbyName I_ScriptedPersonAddress POBoxLobbyName PO Box Lobby
POBoxDeviatingCityName I_ScriptedPersonAddress POBoxDeviatingCityName PO Box City
POBoxDeviatingRegion I_ScriptedPersonAddress POBoxDeviatingRegion Region for PO Box (Country/Region, State, Province, ...)
POBoxDeviatingCountry I_ScriptedPersonAddress POBoxDeviatingCountry PO Box of Country/Region
DeliveryServiceTypeCode I_ScriptedPersonAddress DeliveryServiceTypeCode Type of Delivery Service
DeliveryServiceNumber I_ScriptedPersonAddress DeliveryServiceNumber Number of Delivery Service
AddressTimeZone I_ScriptedPersonAddress AddressTimeZone Address Time Zone
CityFileTestStatus I_ScriptedPersonAddress CityFileTestStatus City File Test Status
AddressNonDeliverableReason I_ScriptedPersonAddress AddressNonDeliverableReason Street Address Undeliverable Flag
PostBoxNonDeliverableReason I_ScriptedPersonAddress PostBoxNonDeliverableReason PO Box Address Undeliverable Flag
FullName I_ScriptedPersonAddress FullName Full name of a party (Bus. Partner, Org. Unit, Doc. address)
CityName I_ScriptedPersonAddress CityName Name
District I_ScriptedPersonAddress District District Court
DistrictName I_ScriptedPersonAddress District District Court
HomeCityName I_ScriptedPersonAddress HomeCityName City (different from postal city)
PostalCode I_ScriptedPersonAddress PostalCode City Postal Code
CompanyPostalCode I_ScriptedPersonAddress CompanyPostalCode Company Postal Code (for Large Customers)
StreetName I_ScriptedPersonAddress StreetName Street
StreetPrefixName I_ScriptedPersonAddress StreetPrefixName Street 2
AdditionalStreetPrefixName I_ScriptedPersonAddress AdditionalStreetPrefixName Street 3
StreetSuffixName I_ScriptedPersonAddress StreetSuffixName Street 4
HouseNumber I_ScriptedPersonAddress HouseNumber House Number
HouseNumberSupplementText I_ScriptedPersonAddress HouseNumberSupplementText House number supplement
Building I_ScriptedPersonAddress Building Building (Number or Code)
Floor I_ScriptedPersonAddress Floor Floor in Building
RoomNumber I_ScriptedPersonAddress RoomNumber Room or Apartment Number
Country I_ScriptedPersonAddress Country Country/Region Key
Region I_ScriptedPersonAddress Region Region (State, Province, County)
County I_ScriptedPersonAddress County Wyoming County
BPCountyText I_ScriptedPersonAddress County Wyoming County
TaxJurisdiction I_ScriptedPersonAddress TaxJurisdiction Tax Jurisdiction
TransportZone I_ScriptedPersonAddress TransportZone Transportation zone to or from which the goods are delivered
Person I_ScriptedPersonAddress Person Person/ Farm/ Field
FormOfAddress I_ScriptedPersonAddress FormOfAddress Form-of-Address Key
SearchTerm1 I_ScriptedPersonAddress SearchTerm1 Search Term 1
SearchTerm2 I_ScriptedPersonAddress SearchTerm2 Search Term 2
FirstName I_ScriptedPersonAddress FirstName First Name
LastName I_ScriptedPersonAddress LastName Last Name
BusinessPartnerBirthName I_ScriptedPersonAddress BusinessPartnerBirthName Name of person at birth
MiddleName I_ScriptedPersonAddress MiddleName Middle name or second forename of a person
AdditionalLastName I_ScriptedPersonAddress AdditionalLastName Other Last Name of a Person
PersonFullName I_ScriptedPersonAddress PersonFullName Full Name of Person
AcademicTitle I_ScriptedPersonAddress AcademicTitle Academic Title: Key
AcademicTitle2 I_ScriptedPersonAddress AcademicTitle2 Second academic title (key)
LastNamePrefix I_ScriptedPersonAddress LastNamePrefix Name Prefix (Key)
LastNameSecondPrefix I_ScriptedPersonAddress LastNameSecondPrefix 2nd name prefix (key)
BusinessPartnerSupplementName I_ScriptedPersonAddress BusinessPartnerSupplementName Name supplement, e.g. noble title (key)
BusinessPartnerNicknameLabel I_ScriptedPersonAddress BusinessPartnerNicknameLabel Nickname or name used
Initials I_ScriptedPersonAddress Initials "Middle Initial" or personal initials
NameFormat I_ScriptedPersonAddress NameFormat Name Format
NameCountry I_ScriptedPersonAddress NameCountry Country/Region for Name Format Rule
BPFirstNameSearchHelp I_ScriptedPersonAddress BPFirstNameSearchHelp First Name in Uppercase for Search Help
BPLastNameSearchHelp I_ScriptedPersonAddress BPLastNameSearchHelp Last Name in Uppercase for Search Help
_BusinessPartner _BusinessPartner
_ScriptedAddress _ScriptedAddress
_BPProtectedAddress _BPProtectedAddress

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 I_BusPartScriptedPersonAddress.
-- 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: IBPSCRPTPRSADDR

CREATE VIEW I_BusPartScriptedPersonAddress AS
SELECT
  BusinessPartnerAddress.partner AS BusinessPartner,
  BusinessPartnerAddress.addrnumber AS AddressNumber,
  ScriptedAddress.AddressRepresentationCode AS AddressRepresentationCode,
  BusinessPartnerAddress.addr_valid_from AS ValidityStartDateTime,
  BusinessPartnerAddress.addr_valid_to AS ValidityEndDateTime,
  bintohex( BusinessPartnerAddress.address_guid ) AS BusinessPartnerAddressUUID,
  ScriptedAddress.CareOfName AS CareOfName,
  ScriptedAddress.AdditionalStreetSuffixName AS AdditionalStreetSuffixName,
  ScriptedAddress.CorrespondenceLanguage AS CorrespondenceLanguage,
  ScriptedAddress.PrfrdCommMediumType AS PrfrdCommMediumType,
  ScriptedAddress.POBox AS POBox,
  ScriptedAddress.POBoxIsWithoutNumber AS POBoxIsWithoutNumber,
  ScriptedAddress.POBoxPostalCode AS POBoxPostalCode,
  ScriptedAddress.POBoxLobbyName AS POBoxLobbyName,
  ScriptedAddress.POBoxDeviatingCityName AS POBoxDeviatingCityName,
  ScriptedAddress.POBoxDeviatingRegion AS POBoxDeviatingRegion,
  ScriptedAddress.POBoxDeviatingCountry AS POBoxDeviatingCountry,
  ScriptedAddress.DeliveryServiceTypeCode AS DeliveryServiceTypeCode,
  ScriptedAddress.DeliveryServiceNumber AS DeliveryServiceNumber,
  ScriptedAddress.AddressTimeZone AS AddressTimeZone,
  ScriptedAddress.CityFileTestStatus AS CityFileTestStatus,
  ScriptedAddress.AddressNonDeliverableReason AS AddressNonDeliverableReason,
  ScriptedAddress.PostBoxNonDeliverableReason AS PostBoxNonDeliverableReason,
  ScriptedAddress.FullName AS FullName,
  ScriptedAddress.CityName AS CityName,
  ScriptedAddress.District AS District,
  ScriptedAddress.District AS DistrictName,
  ScriptedAddress.HomeCityName AS HomeCityName,
  ScriptedAddress.PostalCode AS PostalCode,
  ScriptedAddress.CompanyPostalCode AS CompanyPostalCode,
  ScriptedAddress.StreetName AS StreetName,
  ScriptedAddress.StreetPrefixName AS StreetPrefixName,
  ScriptedAddress.AdditionalStreetPrefixName AS AdditionalStreetPrefixName,
  ScriptedAddress.StreetSuffixName AS StreetSuffixName,
  ScriptedAddress.HouseNumber AS HouseNumber,
  ScriptedAddress.HouseNumberSupplementText AS HouseNumberSupplementText,
  ScriptedAddress.Building AS Building,
  ScriptedAddress.Floor AS Floor,
  ScriptedAddress.RoomNumber AS RoomNumber,
  ScriptedAddress.Country AS Country,
  ScriptedAddress.Region AS Region,
  ScriptedAddress.County AS County,
  ScriptedAddress.County AS BPCountyText,
  ScriptedAddress.TaxJurisdiction AS TaxJurisdiction,
  ScriptedAddress.TransportZone AS TransportZone,
  ScriptedAddress.Person AS Person,
  ScriptedAddress.FormOfAddress AS FormOfAddress,
  ScriptedAddress.SearchTerm1 AS SearchTerm1,
  ScriptedAddress.SearchTerm2 AS SearchTerm2,
  ScriptedAddress.FirstName AS FirstName,
  ScriptedAddress.LastName AS LastName,
  ScriptedAddress.BusinessPartnerBirthName AS BusinessPartnerBirthName,
  ScriptedAddress.MiddleName AS MiddleName,
  ScriptedAddress.AdditionalLastName AS AdditionalLastName,
  ScriptedAddress.PersonFullName AS PersonFullName,
  ScriptedAddress.AcademicTitle AS AcademicTitle,
  ScriptedAddress.AcademicTitle2 AS AcademicTitle2,
  ScriptedAddress.LastNamePrefix AS LastNamePrefix,
  ScriptedAddress.LastNameSecondPrefix AS LastNameSecondPrefix,
  ScriptedAddress.BusinessPartnerSupplementName AS BusinessPartnerSupplementName,
  ScriptedAddress.BusinessPartnerNicknameLabel AS BusinessPartnerNicknameLabel,
  ScriptedAddress.Initials AS Initials,
  ScriptedAddress.NameFormat AS NameFormat,
  ScriptedAddress.NameCountry AS NameCountry,
  ScriptedAddress.BPFirstNameSearchHelp AS BPFirstNameSearchHelp,
  ScriptedAddress.BPLastNameSearchHelp AS BPLastNameSearchHelp
FROM but020 AS BusinessPartnerAddress
INNER JOIN I_ScriptedPersonAddress AS ScriptedAddress ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ScriptedOrganizationAddress AS _ScriptedAddress ON BusinessPartnerAddress.addrnumber = _ScriptedAddress.AddressNumber AND AddressRepresentationCode = _ScriptedAddress.AddressRepresentationCode  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_BPProtectedAddress AS _BPProtectedAddress ON BusinessPartner = _BPProtectedAddress.BusinessPartner AND AddressNumber = _BPProtectedAddress.AddressID  -- association [0..1]
;