A_ReturnsDeliveryAddress

DDL: A_RETURNSDELIVERYADDRESS SQL: ARETSDELIVERYAD Type: view COMPOSITE

Returns Delivery Address

A_ReturnsDeliveryAddress is a Composite CDS View that provides data about "Returns Delivery Address" in SAP S/4HANA. It reads from 1 data source (I_Address_2) and exposes 48 fields with key field AddressID.

Data Sources (1)

SourceAliasJoin Type
I_Address_2 I_Address_2 from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ARETSDELIVERYAD view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Returns Delivery Address view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY AddressID I_Address_2 AddressID Ship-to address
AdditionalStreetPrefixName I_Address_2 StreetPrefixName2 Street 3
AdditionalStreetSuffixName I_Address_2 StreetSuffixName2 Street 5
AddressTimeZone I_Address_2 AddressTimeZone Time Zone
Building I_Address_2 Building Building code
BusinessPartnerName1 I_Address_2 OrganizationName1 Name
BusinessPartnerName2 I_Address_2 OrganizationName2 Name 2
BusinessPartnerName3 I_Address_2 OrganizationName3 Name 3
BusinessPartnerName4 I_Address_2 OrganizationName4 Name 4
CareOfName I_Address_2 CareOfName c/o
CityCode I_Address_2 CityNumber City Code
CityName I_Address_2 CityName Name
CitySearch
CompanyPostalCode I_Address_2 CompanyPostalCode Company Post Cd
CorrespondenceLanguage I_Address_2 CorrespondenceLanguage Language
Country I_Address_2 Country Venue: Ctry/Reg
County I_Address_2 SecondaryRegionName County
DeliveryServiceNumber I_Address_2 DeliveryServiceNumber Delivery Service No.
DeliveryServiceTypeCode I_Address_2 DeliveryServiceTypeCode Delvry Serv Type
District I_Address_2 DistrictName District
FaxNumber _CurrentDfltFaxNumber FaxAreaCodeSubscriberNumber Fax
Floor I_Address_2 Floor Floor
FormOfAddress I_Address_2 FormOfAddress Title Key
FullName I_Address_2 AddresseeFullName Full Name
HomeCityName I_Address_2 VillageName Different City
HouseNumber I_Address_2 HouseNumber House Number
HouseNumberSupplementText I_Address_2 HouseNumberSupplementText Supplement
Nation I_Address_2 AddressRepresentationCode Address Version
Person I_Address_2 AddressPersonID Person Number
PhoneNumber _CurrentDfltLandlinePhoneNmbr PhoneAreaCodeSubscriberNumber Telephone
POBox I_Address_2 POBox PO Box
POBoxDeviatingCityName I_Address_2 POBoxDeviatingCityName PO Box City
POBoxDeviatingCountry I_Address_2 POBoxDeviatingCountry PO Box C/R
POBoxDeviatingRegion I_Address_2 POBoxDeviatingRegion PO Region
POBoxIsWithoutNumber I_Address_2 POBoxIsWithoutNumber PO Box w/o No.
POBoxLobbyName I_Address_2 POBoxLobbyName PO Box Lobby
POBoxPostalCode I_Address_2 POBoxPostalCode PO Box Postal Code
PostalCode I_Address_2 PostalCode Postal Code
PrfrdCommMediumType I_Address_2 PrfrdCommMediumType Comm. Method
Region I_Address_2 Region Venue Region
RoomNumber I_Address_2 RoomNumber Room Number
SearchTerm1
StreetName I_Address_2 StreetName Text
StreetPrefixName I_Address_2 StreetPrefixName1 Street 2
StreetSearch
StreetSuffixName I_Address_2 StreetSuffixName1 Street 4
TaxJurisdiction I_Address_2 TaxJurisdiction Tax Jurisdiction
TransportZone I_Address_2 TransportZone Transport Zone

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 A_ReturnsDeliveryAddress.
-- 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: ARETSDELIVERYAD

CREATE VIEW A_ReturnsDeliveryAddress AS
SELECT
  I_Address_2.AddressID AS AddressID,
  I_Address_2.StreetPrefixName2 AS AdditionalStreetPrefixName,
  I_Address_2.StreetSuffixName2 AS AdditionalStreetSuffixName,
  I_Address_2.AddressTimeZone AS AddressTimeZone,
  I_Address_2.Building AS Building,
  I_Address_2.OrganizationName1 AS BusinessPartnerName1,
  I_Address_2.OrganizationName2 AS BusinessPartnerName2,
  I_Address_2.OrganizationName3 AS BusinessPartnerName3,
  I_Address_2.OrganizationName4 AS BusinessPartnerName4,
  I_Address_2.CareOfName AS CareOfName,
  I_Address_2.CityNumber AS CityCode,
  I_Address_2.CityName AS CityName,
  cast(' ' as char25 preserving type ) AS CitySearch,
  I_Address_2.CompanyPostalCode AS CompanyPostalCode,
  I_Address_2.CorrespondenceLanguage AS CorrespondenceLanguage,
  I_Address_2.Country AS Country,
  I_Address_2.SecondaryRegionName AS County,
  I_Address_2.DeliveryServiceNumber AS DeliveryServiceNumber,
  I_Address_2.DeliveryServiceTypeCode AS DeliveryServiceTypeCode,
  I_Address_2.DistrictName AS District,
  _CurrentDfltFaxNumber.FaxAreaCodeSubscriberNumber AS FaxNumber,
  I_Address_2.Floor AS Floor,
  I_Address_2.FormOfAddress AS FormOfAddress,
  I_Address_2.AddresseeFullName AS FullName,
  I_Address_2.VillageName AS HomeCityName,
  I_Address_2.HouseNumber AS HouseNumber,
  I_Address_2.HouseNumberSupplementText AS HouseNumberSupplementText,
  I_Address_2.AddressRepresentationCode AS Nation,
  I_Address_2.AddressPersonID AS Person,
  _CurrentDfltLandlinePhoneNmbr.PhoneAreaCodeSubscriberNumber AS PhoneNumber,
  I_Address_2.POBox AS POBox,
  I_Address_2.POBoxDeviatingCityName AS POBoxDeviatingCityName,
  I_Address_2.POBoxDeviatingCountry AS POBoxDeviatingCountry,
  I_Address_2.POBoxDeviatingRegion AS POBoxDeviatingRegion,
  I_Address_2.POBoxIsWithoutNumber AS POBoxIsWithoutNumber,
  I_Address_2.POBoxLobbyName AS POBoxLobbyName,
  I_Address_2.POBoxPostalCode AS POBoxPostalCode,
  I_Address_2.PostalCode AS PostalCode,
  I_Address_2.PrfrdCommMediumType AS PrfrdCommMediumType,
  I_Address_2.Region AS Region,
  I_Address_2.RoomNumber AS RoomNumber,
  cast(' ' as char20 preserving type ) AS SearchTerm1,
  I_Address_2.StreetName AS StreetName,
  I_Address_2.StreetPrefixName1 AS StreetPrefixName,
  cast(' ' as char25 preserving type ) AS StreetSearch,
  I_Address_2.StreetSuffixName1 AS StreetSuffixName,
  I_Address_2.TaxJurisdiction AS TaxJurisdiction,
  I_Address_2.TransportZone AS TransportZone
FROM I_Address_2
;