I_ChartOfAccounts

DDL: I_CHARTOFACCOUNTS SQL: IFICHOFACC Type: view BASIC

Chart Of Accounts

I_ChartOfAccounts (Basic)

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

ChartOfAccounts · Accounting and Financial Close

I_ChartOfAccounts is a Basic CDS View (Dimension) that provides data about "Chart Of Accounts" in SAP S/4HANA. It reads from 1 data source (t004) and exposes 8 fields with key field ChartOfAccounts. It has 4 associations to related views.

SAP Help Documentation

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
This CDS view provides the data to answer the following business questions: How many charts of accounts have been defined? Which language is the maintenance language? Which chart of accounts is blocked? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations You can create reports for General Ledger Accounting using this CDS view. Users who want to run these reports must be able to display data for the following fields: Authorization Object Fields With Display Access Needed F_SKA1_KTP Chart of Accounts These authorization objects are edited using transaction PFCG.

Structure
Measures and attributes Some important measures and attributes are: Chart of accounts Group chart of accounts Chart of accounts is blocked Maintenance language

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-GL-N
CapabilitiesData Source for Defining CDS Entities, Data Source for Data Extraction
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description This CDS view provides the data to answer the following business questions:<ul> <li><p>How many charts of accounts have been defined?</p></li> <li><p>Which language is the maintenance language?</p></li> <li><p>Which chart of accounts is blocked?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
t004 t004 from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_ChartOfAccountsText _CorpGroupChartOfAccountsText $projection.CorporateGroupChartOfAccounts = _CorpGroupChartOfAccountsText.ChartOfAccounts
[0..*] I_ChartOfAccountsText _Text $projection.ChartOfAccounts = _Text.ChartOfAccounts
[0..1] I_Language _Language $projection.MaintenanceLanguage = _Language.Language
[0..1] I_ChartOfAccounts _CorpGroupChartOfAccounts $projection.CorporateGroupChartOfAccounts = _CorpGroupChartOfAccounts.ChartOfAccounts

Annotations (20)

NameValueLevelField
EndUserText.label Chart Of Accounts view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.changeDataCapture.automatic true view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IFICHOFACC view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey ChartOfAccounts view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #GENERIC view
AbapCatalog.buffering.numberOfKeyFields 1 view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.sapObjectNodeType.name ChartOfAccounts view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts G/L Chart of Accounts
CorporateGroupChartOfAccounts kktpl Group Chart of Accts
ChartOfAcctsIsBlocked xsper Indicator: Is the Chart of Accounts Blocked ?
MaintenanceLanguage dspra Maintenance Language for the Chart of Accounts
_Language _Language
_Text _Text
_CorpGroupChartOfAccounts _CorpGroupChartOfAccounts
_CorpGroupChartOfAccountsText _CorpGroupChartOfAccountsText

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_ChartOfAccounts.
-- 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: IFICHOFACC

CREATE VIEW I_ChartOfAccounts AS
SELECT
  cast( ktopl as fis_ktopl preserving type) AS ChartOfAccounts,
  kktpl AS CorporateGroupChartOfAccounts,
  xsper AS ChartOfAcctsIsBlocked,
  dspra AS MaintenanceLanguage
FROM t004
LEFT OUTER JOIN I_ChartOfAccountsText AS _CorpGroupChartOfAccountsText ON CorporateGroupChartOfAccounts = _CorpGroupChartOfAccountsText.ChartOfAccounts  -- association [0..*]
LEFT OUTER JOIN I_ChartOfAccountsText AS _Text ON ChartOfAccounts = _Text.ChartOfAccounts  -- association [0..*]
LEFT OUTER JOIN I_Language AS _Language ON MaintenanceLanguage = _Language.Language  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _CorpGroupChartOfAccounts ON CorporateGroupChartOfAccounts = _CorpGroupChartOfAccounts.ChartOfAccounts  -- association [0..1]
;