R_WorkAssgmtPrivateAddressTP_2 is a Transactional CDS View that provides data about "Private Address for Work Assignment" in SAP S/4HANA. It reads from 2 data sources (I_BusPartAddress, R_WorkAssignmentBP) and exposes 43 fields with key fields WorkAssignmentBusinessPartner, AddressNumber. It has 6 associations to related views. Part of development package ODATA_CA_BUM_WF.
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 R_WorkAssgmtPrivateAddressTP_2.-- 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.CREATE VIEW R_WorkAssgmtPrivateAddressTP_2 ASSELECT
_BuPaIdentification.WorkAssignmentBusinessPartner AS WorkAssignmentBusinessPartner,
_BPAddressUsage.AddressNumber AS AddressNumber,
_BPAddress._AddressDefaultRepresentation.HouseNumber AS HouseNumber,
_BPAddress._AddressDefaultRepresentation.HouseNumberSupplementText AS HouseNumberSupplementText,
_BPAddress._AddressDefaultRepresentation.Region AS Region,
_BPAddress._AddressDefaultRepresentation.PostalCode AS PostalCode,
_BPAddress._AddressDefaultRepresentation.DistrictName AS DistrictName,
_BPAddress._AddressDefaultRepresentation.Street AS Street,
_BPAddress._AddressDefaultRepresentation.StreetName AS StreetName,
_BPAddress._AddressDefaultRepresentation.CityNumber AS CityNumber,
_BPAddress._AddressDefaultRepresentation.CityName AS CityName,
_BPAddress._AddressDefaultRepresentation.Floor AS Floor,
_BPAddress._AddressDefaultRepresentation.Country AS Country,
_BPAddress._AddressDefaultRepresentation.RoomNumber AS RoomNumber,
_BPAddress._AddressDefaultRepresentation.TaxJurisdiction AS TaxJurisdiction,
_BPAddress._AddressDefaultRepresentation.CareOfName AS CareOfName,
_BPAddress._AddressDefaultRepresentation.StreetPrefixName1 AS StreetPrefixName1,
_BPAddress._AddressDefaultRepresentation.StreetPrefixName2 AS StreetPrefixName2,
_BPAddress._AddressDefaultRepresentation.StreetSuffixName1 AS StreetSuffixName1,
_BPAddress._AddressDefaultRepresentation.StreetSuffixName2 AS StreetSuffixName2,
_BPAddress._AddressDefaultRepresentation.SecondaryRegion AS SecondaryRegion,
_BPAddress._AddressDefaultRepresentation.SecondaryRegionName AS SecondaryRegionName,
_BPAddress._AddressDefaultRepresentation.TertiaryRegion AS TertiaryRegion,
_BPAddress._AddressDefaultRepresentation.TertiaryRegionName AS TertiaryRegionName,
_BPAddress._AddressDefaultRepresentation.AddressRepresentationCode AS AddressRepresentationCode,
_BPAddress._AddressDefaultRepresentation.POBoxPostalCode AS POBoxPostalCode,
_BPAddress._AddressDefaultRepresentation.POBox AS POBox,
_BPAddress._AddressDefaultRepresentation.POBoxLobbyName AS POBoxLobbyName,
_BPAddress._AddressDefaultRepresentation.POBoxDeviatingCountry AS POBoxDeviatingCountry,
_BPAddress._AddressDefaultRepresentation.POBoxDeviatingRegion AS POBoxDeviatingRegion,
_BPAddress._AddressDefaultRepresentation.POBoxDeviatingCityCode AS POBoxDeviatingCityCode,
_BPAddress._AddressDefaultRepresentation.POBoxDeviatingCityName AS POBoxDeviatingCityName,
_BPAddress._AddressDefaultRepresentation.POBoxIsWithoutNumber AS POBoxIsWithoutNumber,
_BPAddress._AddressDefaultRepresentation.DeliveryServiceTypeCode AS DeliveryServiceTypeCode,
_BPAddress._AddressDefaultRepresentation.DeliveryServiceNumber AS DeliveryServiceNumber,
_BuPaIdentification.BusinessPartner AS BusinessPartner
INNERJOIN R_WorkAssignmentBP AS _BuPaIdentification ON /* join condition not captured in parsed metadata */
INNERJOIN I_BusPartAddress AS _BPAddress ON /* join condition not captured in parsed metadata */
LEFTOUTERJOIN I_BPProtectedAddress AS _BPProtectedAddress ON BusinessPartner = _BPProtectedAddress.BusinessPartner AND AddressNumber = _BPProtectedAddress.AddressID -- association [0..1]LEFTOUTERJOIN I_CountryText AS _CountryText ON Country = _CountryText.Country AND _CountryText.Language = $session.system_language -- association [0..1]LEFTOUTERJOIN I_RegionText AS _RegionText ON Region = _RegionText.Region AND Country = _RegionText.Country AND _RegionText.Language = $session.system_language -- association [0..1]LEFTOUTERJOIN I_TaxJurisdictionText AS _TaxJurisdictionText ON TaxJurisdiction = _TaxJurisdictionText.TaxJurisdiction AND _TaxJurisdictionText.Language = $session.system_language -- association [0..1]LEFTOUTERJOIN I_BusPartDelivSrvcTxt AS _BusPartDelivSrvcTxt ON DeliveryServiceTypeCode = _BusPartDelivSrvcTxt.DeliveryServiceTypeCode AND _BusPartDelivSrvcTxt.Language = $session.system_language -- association [0..1]LEFTOUTERJOIN R_WorkforcePersonTP_2 AS _WorkforcePerson ON BusinessPartner = _WorkforcePerson.BusinessPartner -- association [1..1]
;