I_OneTimeAccountCustomer
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
| Category | CDS Views for Receivables Management |
|---|---|
| Data Category | Dimension |
| Status | Released |
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.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FI-AR-IS |
| Capabilities | Data Source for Defining CDS Entities, Association Target for Defining CDS Entities |
| Package | Financial 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| bsec | bsec | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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