I_PT_CustomerAddressHistory
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)
| Source | Alias | Join Type |
|---|---|---|
| sipt_hist_kunnr | History | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..*] | I_Address_2 | _Address | $projection.AddressID = _Address.AddressID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA