I_OneTimeAccountCustomer
One-Time Account Data for Customer Items
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. Part of development package FINS_FIS_APAR.
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 | |
| KEY | AccountingDocument | bsec | belnr | |
| KEY | FiscalYear | bsec | gjahr | |
| KEY | AccountingDocumentItem | bsec | buzei | |
| BusinessPartnerName1 | ||||
| BusinessPartnerName2 | ||||
| BusinessPartnerName3 | ||||
| BusinessPartnerName4 | ||||
| Country | bsec | land1 | ||
| CityName | ||||
| POBox | bsec | pfach | ||
| POBoxPostalCode | bsec | pstl2 | ||
| PostalCode | bsec | pstlz | ||
| Region | bsec | regio | ||
| TaxID1 | bsec | stcd1 | ||
| TaxID2 | bsec | stcd2 | ||
| TaxID3 | bsec | stcd3 | ||
| TaxID4 | bsec | stcd4 | ||
| TaxID5 | bsec | stcd5 | ||
| StreetAddressName | bsec | stras | ||
| TaxNumberType | bsec | stcdt | ||
| AddressID | bsec | adrnr | ||
| AccountingClerkInternetAddress | bsec | intad | ||
| IsNaturalPerson | ||||
| AuthorizationGroup | bsec | begru | ||
| Customer | _OperationalAcctgDocItem | Customer | ||
| _CompanyCode | _CompanyCode | |||
| _JournalEntry | _JournalEntry | |||
| _FiscalYear | _FiscalYear | |||
| _Address | _Address | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _CustomerCompany | _CustomerCompany |
@EndUserText.label: 'One-Time Account Data for Customer Items'
@Analytics: { dataCategory:#DIMENSION}
@Analytics.internalName:#LOCAL
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IONETIMECUSTOMER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AbapCatalog.buffering.type: #NONE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality:#C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass:#MIXED
@ObjectModel.representativeKey: 'AccountingDocumentItem'
@ObjectModel.supportedCapabilities: [ #CDS_MODELING_DATA_SOURCE , #CDS_MODELING_ASSOCIATION_TARGET ]
@Metadata.allowExtensions:true
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@AccessControl.privilegedAssociations: ['_Address']
define view I_OneTimeAccountCustomer
as select from bsec
association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [1..1] to I_JournalEntry as _JournalEntry on $projection.CompanyCode = _JournalEntry.CompanyCode
and $projection.AccountingDocument = _JournalEntry.AccountingDocument
and $projection.FiscalYear = _JournalEntry.FiscalYear
association [0..1] to I_FiscalYearForCompanyCode as _FiscalYear on $projection.FiscalYear = _FiscalYear.FiscalYear
and $projection.CompanyCode = _FiscalYear.CompanyCode
association [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressID
association [1..1] to I_OperationalAcctgDocItem as _OperationalAcctgDocItem on _OperationalAcctgDocItem.CompanyCode = $projection.CompanyCode
and _OperationalAcctgDocItem.AccountingDocument = $projection.AccountingDocument
and _OperationalAcctgDocItem.FiscalYear = $projection.FiscalYear
and _OperationalAcctgDocItem.AccountingDocumentItem = $projection.AccountingDocumentItem
association [1..1] to I_CustomerCompany as _CustomerCompany on _CustomerCompany.CompanyCode = $projection.CompanyCode
and _CustomerCompany.Customer = $projection.Customer
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key bsec.bukrs as CompanyCode,
@ObjectModel.foreignKey.association: '_JournalEntry'
key bsec.belnr as AccountingDocument,
@ObjectModel.foreignKey.association: '_FiscalYear'
key bsec.gjahr as FiscalYear,
key 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,
case bsec.xcpdk when 'X' then cast('' as farp_isalternativepayer) else cast ('X' as farp_isalternativepayer)
end as PayerIsAlternativePayer,
_OperationalAcctgDocItem.Customer as Customer,
_CompanyCode,
_JournalEntry,
_FiscalYear,
_Address,
_OperationalAcctgDocItem,
_CustomerCompany
}
where
_OperationalAcctgDocItem.FinancialAccountType = 'D'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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