I_OneTimeAccountCustomer

DDL: I_ONETIMEACCOUNTCUSTOMER SQL: IONETIMECUSTOMER Type: view BASIC

One-Time Account Data for Customer Items

I_OneTimeAccountCustomer (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Financial Operations

I_OneTimeAccountCustomer is a Basic CDS View (Dimension) that provides data about "One-Time Account Data for Customer Items" in SAP S/4HANA. It reads from 1 data source (bsec) and exposes 32 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It has 6 associations to related views.

SAP Help Documentation

CategoryCDS Views for Receivables Management
Data CategoryDimension
StatusReleased
Purpose
This CDS view provides the prerequisites for answering the following business questions: Which address data is available for a customer with which you do business only once? Which tax data is available for a customer with which you do business only once? Note This CDS view reads only one-time account data maintained in Financial Accounting.

Prerequisites
Users who want to run reports using this CDS view must be able to display data for the following fields: Authorization Object Fields with Display Access needed F_BKPF_BUK Company Code F_KNA1_BED or F_BKPF_BED Authorization Group The authorization values for these authorization objects are edited using transaction PFCG.

Structure
Object types This view is built on the following object type: Journal Entry Measures and attributes Some important attributes are: City Postal Code Street and House Number Tax Number.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFI-AR-IS
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>Which address data is available for a customer with which you do business only once?</p></li> <li><p>Which tax data is available for a customer with which you do business only once?</p></li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
bsec bsec from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.AccountingDocument = _JournalEntry.AccountingDocument and $projection.FiscalYear = _JournalEntry.FiscalYear
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode
[0..1] I_Address _Address $projection.AddressID = _Address.AddressID
[1..1] I_OperationalAcctgDocItem _OperationalAcctgDocItem _OperationalAcctgDocItem.CompanyCode = $projection.CompanyCode and _OperationalAcctgDocItem.AccountingDocument = $projection.AccountingDocument and _OperationalAcctgDocItem.FiscalYear = $projection.FiscalYear and _OperationalAcctgDocItem.AccountingDocumentItem = $projection.AccountingDocumentItem
[1..1] I_CustomerCompany _CustomerCompany _CustomerCompany.CompanyCode = $projection.CompanyCode and _CustomerCompany.Customer = $projection.Customer

Annotations (18)

NameValueLevelField
EndUserText.label One-Time Account Data for Customer Items view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IONETIMECUSTOMER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.buffering.type #NONE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey AccountingDocumentItem view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bsec bukrs Company Code
KEY AccountingDocument bsec belnr Document Number of an Accounting Document
KEY FiscalYear bsec gjahr Settlement Year
KEY AccountingDocumentItem bsec buzei Number of Line Item Within Accounting Document
BusinessPartnerName1 Name 1
BusinessPartnerName2 Name 2
BusinessPartnerName3 Name 3
BusinessPartnerName4 Name 4
Country bsec land1 Country/Region Key
CityName City
POBox bsec pfach PO Box
POBoxPostalCode bsec pstl2 PO Box Postal Code
PostalCode bsec pstlz Postal Code
Region bsec regio Region (State, Province, County)
TaxID1 bsec stcd1 Tax Number 1
TaxID2 bsec stcd2 Tax Number 2
TaxID3 bsec stcd3 Tax Number 3
TaxID4 bsec stcd4 Tax Number 4
TaxID5 bsec stcd5 Tax Number 5
StreetAddressName bsec stras Street and House Number
TaxNumberType bsec stcdt Tax number type
AddressID bsec adrnr Sold-To Address
AccountingClerkInternetAddress bsec intad Internet address of partner company clerk
IsNaturalPerson Business Partner Is a Natural Person Under the Tax Laws
AuthorizationGroup bsec begru Authorization Group
Customer _OperationalAcctgDocItem Customer Customer Number
_CompanyCode _CompanyCode
_JournalEntry _JournalEntry
_FiscalYear _FiscalYear
_Address _Address
_OperationalAcctgDocItem _OperationalAcctgDocItem
_CustomerCompany _CustomerCompany

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_OneTimeAccountCustomer.
-- 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: IONETIMECUSTOMER

CREATE VIEW I_OneTimeAccountCustomer AS
SELECT
  bsec.bukrs AS CompanyCode,
  bsec.belnr AS AccountingDocument,
  bsec.gjahr AS FiscalYear,
  bsec.buzei AS AccountingDocumentItem,
  cast(bsec.name1 as ad_name1) AS BusinessPartnerName1,
  cast(bsec.name2 as ad_name2) AS BusinessPartnerName2,
  cast(bsec.name3 as ad_name3) AS BusinessPartnerName3,
  cast(bsec.name4 as ad_name4) AS BusinessPartnerName4,
  bsec.land1 AS Country,
  cast(bsec.ort01 as ad_city1) AS CityName,
  bsec.pfach AS POBox,
  bsec.pstl2 AS POBoxPostalCode,
  bsec.pstlz AS PostalCode,
  bsec.regio AS Region,
  bsec.stcd1 AS TaxID1,
  bsec.stcd2 AS TaxID2,
  bsec.stcd3 AS TaxID3,
  bsec.stcd4 AS TaxID4,
  bsec.stcd5 AS TaxID5,
  bsec.stras AS StreetAddressName,
  bsec.stcdt AS TaxNumberType,
  bsec.adrnr AS AddressID,
  bsec.intad AS AccountingClerkInternetAddress,
  cast(bsec.stkzn as bu_natural_person) AS IsNaturalPerson,
  bsec.begru AS AuthorizationGroup,
  _OperationalAcctgDocItem.Customer AS Customer
FROM bsec
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND AccountingDocument = _JournalEntry.AccountingDocument AND FiscalYear = _JournalEntry.FiscalYear  -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Address AS _Address ON AddressID = _Address.AddressID  -- association [0..1]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON _OperationalAcctgDocItem.CompanyCode = CompanyCode AND _OperationalAcctgDocItem.AccountingDocument = AccountingDocument AND _OperationalAcctgDocItem.FiscalYear = FiscalYear AND _OperationalAcctgDocItem.AccountingDocumentItem = AccountingDocumentItem  -- association [1..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON _CustomerCompany.CompanyCode = CompanyCode AND _CustomerCompany.Customer = Customer  -- association [1..1]
;