I_PT_SAFTOneTimeAcctgAddr

DDL: I_PT_SAFTONETIMEACCTGADDR Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_JournalEntryItemOneTimeData Cust inner
I_OperationalAcctgDocItem Item from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CustomerCompany _CustCompany Item.Customer = _CustCompany.Customer and Item.CompanyCode = _CustCompany.CompanyCode

Annotations (8)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 email 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]
;