I_GLAcctInChtAcctsTP
G/L Account in ChtAccts (Draft 2.0)
I_GLAcctInChtAcctsTP is a Transactional CDS View that provides data about "G/L Account in ChtAccts (Draft 2.0)" in SAP S/4HANA. It reads from 1 data source (I_GLAccountInChartOfAccounts) and exposes 46 fields with key fields ChartOfAccounts, GLAccount. It has 17 associations to related views. Part of development package ODATA_MANAGE_GLACCOUNT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInChartOfAccounts | I_GLAccountInChartOfAccounts | from |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_GLAcctTextTP | _Text | $projection.ChartOfAccounts = _Text.ChartOfAccounts and $projection.GLAccount = _Text.GLAccount |
| [0..*] | I_GLAcctInCoCodeTP | _GLAcctInCoCodeTP | $projection.ChartOfAccounts = _GLAcctInCoCodeTP.ChartOfAccounts and $projection.GLAccount = _GLAcctInCoCodeTP.GLAccount |
| [0..*] | I_CostElementTP | _CostElementTP | $projection.ChartOfAccounts = _CostElementTP.ChartOfAccounts and $projection.GLAccount = _CostElementTP.GLAccount |
| [0..1] | I_GLAccountForPublicSectorTP | _PublicSectorTP | $projection.ChartOfAccounts = _PublicSectorTP.ChartOfAccounts and $projection.GLAccount = _PublicSectorTP.GLAccount |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccountsForEdit = _ChartOfAccounts.ChartOfAccounts |
| [1] | I_User | _User | $projection.CreatedByUser = _User.UserID |
| [0..1] | I_GLAccountType | _Glaccounttype | $projection.GLAccountType = _Glaccounttype.GLAccountType |
| [0..1] | I_GLAccountSubtype | _GLAccountSubtype | $projection.GLAccountSubtype = _GLAccountSubtype.GLAccountSubtype |
| [0..1] | I_BankRecnclnAccount | _BankRecnclnAcct | $projection.ChartOfAccountsForEdit = _BankRecnclnAcct.ChartOfAccounts and $projection.BankReconciliationAccount = _BankRecnclnAcct.BankReconciliationAccount |
| [1..1] | I_Globalcompany | _Globalcompany | $projection.PartnerCompany = _Globalcompany.Company |
| [0..1] | I_GLAccountGroup | _Glaccountgroup | $projection.GLAccountGroup = _Glaccountgroup.GLAccountGroup and $projection.ChartOfAccountsForEdit = _Glaccountgroup.ChartOfAccounts |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [0..1] | I_GLAccountInChartOfAccounts | _CorporateGroupAccount | $projection.corporategroupchartofaccounts = _CorporateGroupAccount.ChartOfAccounts and $projection.CorporateGroupAccount = _CorporateGroupAccount.GLAccount |
| [0..1] | I_ProfitLossAccountType_Vh | _ProfitLossAccountType_Vh | $projection.ChartOfAccountsForEdit = _ProfitLossAccountType_Vh.ChartOfAccounts and $projection.ProfitLossAccountType = _ProfitLossAccountType_Vh.ProfitLossAccountType |
| [0..1] | I_ChartOfAccounts | _CorpGroupChartOfAccounts | $projection.corporategroupchartofaccounts = _CorpGroupChartOfAccounts.ChartOfAccounts |
| [0..1] | I_GLAcctInDefaultLanguageText | _GLAcctTxtInMaintLang | $projection.ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts and $projection.GLAccount = _GLAcctTxtInMaintLang.GLAccount and $projection.MaintenanceLanguage = _GLAcctTxtInMaintLang.Language |
| [0..1] | I_RetainedEarningsGLAccount | _RetainedEarningsGLAccount | $projection.ChartOfAccountsForEdit = _RetainedEarningsGLAccount.ChartOfAccounts and $projection.ProfitLossAccountType = _RetainedEarningsGLAccount.ProfitLossAccountType |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | G/L Account in ChtAccts (Draft 2.0) | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeDraftPersistence | SKA1_DRAFT_20 | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Search.searchable | true | view | |
| VDM.viewType | #TRANSACTIONAL | view |
Fields (46)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | I_GLAccountInChartOfAccounts | ChartOfAccounts | Node Class |
| KEY | GLAccount | I_GLAccountInChartOfAccounts | GLAccount | General Ledger |
| ChartOfAccountsForEdit | I_GLAccountInChartOfAccounts | ChartOfAccounts | Node Class | |
| GLAccountForEdit | I_GLAccountInChartOfAccounts | GLAccount | General Ledger | |
| IsBalanceSheetAccount | I_GLAccountInChartOfAccounts | IsBalanceSheetAccount | Is Balance Sheet Account | |
| GLAccountGroup | I_GLAccountInChartOfAccounts | GLAccountGroup | Account Group | |
| CorporateGroupAccount | I_GLAccountInChartOfAccounts | CorporateGroupAccount | Group Account Number | |
| ProfitLossAccountType | I_GLAccountInChartOfAccounts | ProfitLossAccountType | Profit Loss Account Type | |
| SampleGLAccount | I_GLAccountInChartOfAccounts | SampleGLAccount | Sample Account | |
| AccountIsMarkedForDeletion | I_GLAccountInChartOfAccounts | AccountIsMarkedForDeletion | Deletion Flag | |
| AccountIsBlockedForCreation | I_GLAccountInChartOfAccounts | AccountIsBlockedForCreation | Creation Block | |
| AccountIsBlockedForPosting | I_GLAccountInChartOfAccounts | AccountIsBlockedForPosting | Posting Block | |
| AccountIsBlockedForPlanning | I_GLAccountInChartOfAccounts | AccountIsBlockedForPlanning | Planning Block | |
| PartnerCompany | I_GLAccountInChartOfAccounts | PartnerCompany | Trading Partner | |
| FunctionalArea | I_GLAccountInChartOfAccounts | FunctionalArea | Sendr Fctl Area | |
| CreationDate | I_GLAccountInChartOfAccounts | CreationDate | Time Stamp | |
| CreatedByUser | I_GLAccountInChartOfAccounts | CreatedByUser | User Name | |
| GLAccountType | I_GLAccountInChartOfAccounts | GLAccountType | G/L Account Type | |
| GLAccountSubtype | I_GLAccountInChartOfAccounts | GLAccountSubtype | G/L Account Subtype | |
| BankReconciliationAccount | I_GLAccountInChartOfAccounts | BankReconciliationAccount | Reconciliation Acct | |
| GLAccountExternal | I_GLAccountInChartOfAccounts | GLAccountExternal | G/L Acct External ID | |
| GLAccountIsNotProdnRelevant | ||||
| MaintenanceLanguage | chtaccts | MaintenanceLanguage | Maint. Language | |
| DraftReferenceChartOfAccounts | ||||
| DraftReferenceGLAccount | ||||
| GLAccountName | _GLAcctTxtInMaintLang | GLAccountName | Short Text | |
| GLAccountLongName | _GLAcctTxtInMaintLang | GLAccountLongName | Long Text | |
| CorporateGroupChartOfAccounts | _ChartOfAccounts | CorporateGroupChartOfAccounts | Group ChtAccts | |
| sakanendasCorporateGroupAccountExternal | ||||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _CorporateGroupAccount | _CorporateGroupAccount | |||
| _FunctionalArea | _FunctionalArea | |||
| _Glaccountgroup | _Glaccountgroup | |||
| _Glaccounttype | _Glaccounttype | |||
| _GLAccountSubtype | _GLAccountSubtype | |||
| _BankRecnclnAcct | _BankRecnclnAcct | |||
| _GLAcctTxtInMaintLang | _GLAcctTxtInMaintLang | |||
| _Globalcompany | _Globalcompany | |||
| _ProfitLossAccountType_Vh | _ProfitLossAccountType_Vh | |||
| _RetainedEarningsGLAccount | _RetainedEarningsGLAccount | |||
| _CorpGroupChartOfAccounts | _CorpGroupChartOfAccounts | |||
| _User | _User | |||
| _GLAcctInCoCodeTP | _GLAcctInCoCodeTP | |||
| _CostElementTP | _CostElementTP | |||
| _PublicSectorTP | _PublicSectorTP | |||
| _Text | _Text |
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_GLAcctInChtAcctsTP.
-- 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_GLAcctInChtAcctsTP AS
SELECT
I_GLAccountInChartOfAccounts.ChartOfAccounts AS ChartOfAccounts,
I_GLAccountInChartOfAccounts.GLAccount AS GLAccount,
I_GLAccountInChartOfAccounts.ChartOfAccounts AS ChartOfAccountsForEdit,
I_GLAccountInChartOfAccounts.GLAccount AS GLAccountForEdit,
I_GLAccountInChartOfAccounts.IsBalanceSheetAccount AS IsBalanceSheetAccount,
I_GLAccountInChartOfAccounts.GLAccountGroup AS GLAccountGroup,
I_GLAccountInChartOfAccounts.CorporateGroupAccount AS CorporateGroupAccount,
I_GLAccountInChartOfAccounts.ProfitLossAccountType AS ProfitLossAccountType,
I_GLAccountInChartOfAccounts.SampleGLAccount AS SampleGLAccount,
I_GLAccountInChartOfAccounts.AccountIsMarkedForDeletion AS AccountIsMarkedForDeletion,
I_GLAccountInChartOfAccounts.AccountIsBlockedForCreation AS AccountIsBlockedForCreation,
I_GLAccountInChartOfAccounts.AccountIsBlockedForPosting AS AccountIsBlockedForPosting,
I_GLAccountInChartOfAccounts.AccountIsBlockedForPlanning AS AccountIsBlockedForPlanning,
I_GLAccountInChartOfAccounts.PartnerCompany AS PartnerCompany,
I_GLAccountInChartOfAccounts.FunctionalArea AS FunctionalArea,
I_GLAccountInChartOfAccounts.CreationDate AS CreationDate,
I_GLAccountInChartOfAccounts.CreatedByUser AS CreatedByUser,
I_GLAccountInChartOfAccounts.GLAccountType AS GLAccountType,
I_GLAccountInChartOfAccounts.GLAccountSubtype AS GLAccountSubtype,
I_GLAccountInChartOfAccounts.BankReconciliationAccount AS BankReconciliationAccount,
I_GLAccountInChartOfAccounts.GLAccountExternal AS GLAccountExternal,
I_GLAccountInChartOfAccounts._GLAcctInChartOfAcctsProdn.GLAccountIsNotProdnRelevant AS GLAccountIsNotProdnRelevant,
chtaccts.MaintenanceLanguage AS MaintenanceLanguage,
cast ('' as ktopl) AS DraftReferenceChartOfAccounts,
cast ('' as saknr) AS DraftReferenceGLAccount,
_GLAcctTxtInMaintLang.GLAccountName AS GLAccountName,
_GLAcctTxtInMaintLang.GLAccountLongName AS GLAccountLongName,
_ChartOfAccounts.CorporateGroupChartOfAccounts AS CorporateGroupChartOfAccounts,
case when I_GLAccountInChartOfAccounts.CorporateGroupAccount is not null and _GroupAccount.sakan is null then cast ( I_GLAccountInChartOfAccounts.CorporateGroupAccount as sakan ) else _GroupAccount.sakan end as CorporateGroupAccountExternal AS sakanendasCorporateGroupAccountExternal
FROM I_GLAccountInChartOfAccounts
LEFT OUTER JOIN I_GLAcctTextTP AS _Text ON ChartOfAccounts = _Text.ChartOfAccounts AND GLAccount = _Text.GLAccount -- association [0..*]
LEFT OUTER JOIN I_GLAcctInCoCodeTP AS _GLAcctInCoCodeTP ON ChartOfAccounts = _GLAcctInCoCodeTP.ChartOfAccounts AND GLAccount = _GLAcctInCoCodeTP.GLAccount -- association [0..*]
LEFT OUTER JOIN I_CostElementTP AS _CostElementTP ON ChartOfAccounts = _CostElementTP.ChartOfAccounts AND GLAccount = _CostElementTP.GLAccount -- association [0..*]
LEFT OUTER JOIN I_GLAccountForPublicSectorTP AS _PublicSectorTP ON ChartOfAccounts = _PublicSectorTP.ChartOfAccounts AND GLAccount = _PublicSectorTP.GLAccount -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccountsForEdit = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON CreatedByUser = _User.UserID -- association [1]
LEFT OUTER JOIN I_GLAccountType AS _Glaccounttype ON GLAccountType = _Glaccounttype.GLAccountType -- association [0..1]
LEFT OUTER JOIN I_GLAccountSubtype AS _GLAccountSubtype ON GLAccountSubtype = _GLAccountSubtype.GLAccountSubtype -- association [0..1]
LEFT OUTER JOIN I_BankRecnclnAccount AS _BankRecnclnAcct ON ChartOfAccountsForEdit = _BankRecnclnAcct.ChartOfAccounts AND BankReconciliationAccount = _BankRecnclnAcct.BankReconciliationAccount -- association [0..1]
LEFT OUTER JOIN I_Globalcompany AS _Globalcompany ON PartnerCompany = _Globalcompany.Company -- association [1..1]
LEFT OUTER JOIN I_GLAccountGroup AS _Glaccountgroup ON GLAccountGroup = _Glaccountgroup.GLAccountGroup AND ChartOfAccountsForEdit = _Glaccountgroup.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _CorporateGroupAccount ON corporategroupchartofaccounts = _CorporateGroupAccount.ChartOfAccounts AND CorporateGroupAccount = _CorporateGroupAccount.GLAccount -- association [0..1]
LEFT OUTER JOIN I_ProfitLossAccountType_Vh AS _ProfitLossAccountType_Vh ON ChartOfAccountsForEdit = _ProfitLossAccountType_Vh.ChartOfAccounts AND ProfitLossAccountType = _ProfitLossAccountType_Vh.ProfitLossAccountType -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _CorpGroupChartOfAccounts ON corporategroupchartofaccounts = _CorpGroupChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAcctInDefaultLanguageText AS _GLAcctTxtInMaintLang ON ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts AND GLAccount = _GLAcctTxtInMaintLang.GLAccount AND MaintenanceLanguage = _GLAcctTxtInMaintLang.Language -- association [0..1]
LEFT OUTER JOIN I_RetainedEarningsGLAccount AS _RetainedEarningsGLAccount ON ChartOfAccountsForEdit = _RetainedEarningsGLAccount.ChartOfAccounts AND ProfitLossAccountType = _RetainedEarningsGLAccount.ProfitLossAccountType -- association [0..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