I_PT_CustomerAddressHistory

DDL: I_PT_CUSTOMERADDRESSHISTORY SQL: IPTADRHST Type: view BASIC

PT Customer Address History

I_PT_CustomerAddressHistory is a Basic CDS View that provides data about "PT Customer Address History" in SAP S/4HANA. It reads from 1 data source (sipt_hist_kunnr) and exposes 17 fields with key fields Customer, PortugueseCustomerVersion. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
sipt_hist_kunnr History from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..*] I_Address_2 _Address $projection.AddressID = _Address.AddressID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPTADRHST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
AccessControl.authorizationCheck #CHECK view
EndUserText.label PT Customer Address History view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Customer kunnr Stock customer
KEY PortugueseCustomerVersion adrnr_ver Version
AddressID adrnr Sold-To Address
OrganizationBPName1 name1 PA text
OrganizationBPName2 name2 Name2/First nme
CityName city1 City
StreetName street Street Code
StreetPrefixName str_suppl1 Street 2
AdditionalStreetPrefixName str_suppl2 Street 3
StreetSuffixName str_suppl3 Street 4
HouseNumber house_num1 House Number
AdditionalStreetSuffixName location Text
PostalCode post_code1 Postal Code
POBox po_box PO Box
Country country Venue: Ctry/Reg
_Customer _Customer
_Address _Address

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_PT_CustomerAddressHistory.
-- 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: IPTADRHST

CREATE VIEW I_PT_CustomerAddressHistory AS
SELECT
  kunnr AS Customer,
  adrnr_ver AS PortugueseCustomerVersion,
  adrnr AS AddressID,
  name1 AS OrganizationBPName1,
  name2 AS OrganizationBPName2,
  city1 AS CityName,
  street AS StreetName,
  str_suppl1 AS StreetPrefixName,
  str_suppl2 AS AdditionalStreetPrefixName,
  str_suppl3 AS StreetSuffixName,
  house_num1 AS HouseNumber,
  location AS AdditionalStreetSuffixName,
  post_code1 AS PostalCode,
  po_box AS POBox,
  Country
FROM sipt_hist_kunnr AS History
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_Address_2 AS _Address ON AddressID = _Address.AddressID  -- association [0..*]
;