I_PT_SAFTOneTimeAcctgAddr
One Time Customer Addr Accounting Docs
I_PT_SAFTOneTimeAcctgAddr is a Composite CDS View that provides data about "One Time Customer Addr Accounting Docs" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItemOneTimeData, I_OperationalAcctgDocItem) and exposes 24 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItemOneTimeData | Cust | inner |
| I_OperationalAcctgDocItem | Item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CustomerCompany | _CustCompany | Item.Customer = _CustCompany.Customer and Item.CompanyCode = _CustCompany.CompanyCode |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| EndUserText.label | One Time Customer Addr Accounting Docs | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_OperationalAcctgDocItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_OperationalAcctgDocItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_OperationalAcctgDocItem | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | I_OperationalAcctgDocItem | AccountingDocumentItem | Posting View Item |
| AccountingDocumentType | I_OperationalAcctgDocItem | AccountingDocumentType | Journal Entry Type | |
| PostingDate | I_OperationalAcctgDocItem | PostingDate | Posting Date for GR | |
| Customer | I_OperationalAcctgDocItem | Customer | Sold-to Party | |
| ReconciliationAccount | _CustCompany | ReconciliationAccount | Recon. account | |
| CompanyName | ||||
| StreetName | I_JournalEntryItemOneTimeData | StreetAddressName | Street | |
| StreetPrefixName | ||||
| AdditionalStreetPrefixName | ||||
| StreetSuffixName | ||||
| AdditionalStreetSuffixName | ||||
| HouseNumber | ||||
| CityName | I_JournalEntryItemOneTimeData | CityName | Name | |
| PostalCode | I_JournalEntryItemOneTimeData | PostalCode | Postal Code | |
| Country | I_JournalEntryItemOneTimeData | Country | Venue: Ctry/Reg | |
| Region | I_JournalEntryItemOneTimeData | Region | Venue Region | |
| AddressID | I_JournalEntryItemOneTimeData | AddressID | Ship-to address | |
| PhoneNumber | Phone | PhoneAreaCodeSubscriberNumber | Telephone | |
| FaxNumber | ||||
| EmailAddress | EmailAddress | E-Mail Address | ||
| WebsiteURL |
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_SAFTOneTimeAcctgAddr.
-- 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 I_PT_SAFTOneTimeAcctgAddr AS
SELECT
Item.CompanyCode AS CompanyCode,
Item.FiscalYear AS FiscalYear,
Item.AccountingDocument AS AccountingDocument,
Item.AccountingDocumentItem AS AccountingDocumentItem,
Item.AccountingDocumentType AS AccountingDocumentType,
Item.PostingDate AS PostingDate,
Item.Customer AS Customer,
_CustCompany.ReconciliationAccount AS ReconciliationAccount,
concat(Cust.BusinessPartnerName1, concat (' ', Cust.BusinessPartnerName2)) AS CompanyName,
Cust.StreetAddressName AS StreetName,
' ' AS StreetPrefixName,
' ' AS AdditionalStreetPrefixName,
' ' AS StreetSuffixName,
' ' AS AdditionalStreetSuffixName,
cast(' ' as abap.char(10)) AS HouseNumber,
Cust.CityName AS CityName,
Cust.PostalCode AS PostalCode,
Cust.Country AS Country,
Cust.Region AS Region,
Cust.AddressID AS AddressID,
Phone.PhoneAreaCodeSubscriberNumber AS PhoneNumber,
cast( Fax.InternationalFaxNumber as abap.char(31) ) AS FaxNumber,
email.EmailAddress AS EmailAddress,
' ' AS WebsiteURL
FROM I_OperationalAcctgDocItem AS Item
INNER JOIN I_JournalEntryItemOneTimeData AS Cust ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustomerCompany AS _CustCompany ON Item.Customer = _CustCompany.Customer AND Item.CompanyCode = _CustCompany.CompanyCode -- association [0..1]
;
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