R_OperatingGLAccountTP
Operating G/L Account Root
R_OperatingGLAccountTP is a Transactional CDS View that provides data about "Operating G/L Account Root" in SAP S/4HANA. It reads from 1 data source (I_GLAccountInChartOfAccounts) and exposes 63 fields with key fields ChartOfAccounts, GLAccount. It has 20 associations to related views. Part of development package RAP_FI_GL_COCODE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInChartOfAccounts | Acct | from |
Associations (20)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GLAcctInChartOfAcctsProdn | _NotNeeded | Acct.ChartOfAccounts = _NotNeeded.ChartOfAccounts and Acct.GLAccount = _NotNeeded.GLAccount |
| [1..*] | I_GLAccountText | _GLAccountText | $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts and $projection.GLAccount = _GLAccountText.GLAccount |
| [0..*] | I_ChartOfAccountsText | _ChartOfAccountsText | $projection.ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts |
| [0..*] | I_GLAccountHierarchyNode | _GLAccountHierarchyNode | $projection.GLAccount = _GLAccountHierarchyNode.GLAccount and $projection.ChartOfAccounts = _GLAccountHierarchyNode.ChartOfAccounts |
| [0..1] | I_GLAccountForPublicSector | _PublicSector | $projection.ChartOfAccounts = _PublicSector.ChartOfAccounts and $projection.GLAccount = _PublicSector.GLAccount |
| [0..1] | I_GLAccountGroup | _GLAccountGroup | $projection.GLAccountGroup = _GLAccountGroup.GLAccountGroup and $projection.ChartOfAccounts = _GLAccountGroup.ChartOfAccounts |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [1..1] | I_Globalcompany | _GlobalCompany | $projection.PartnerCompany = _GlobalCompany.Company |
| [0..1] | I_ChartOfAccounts | _CorporateGroupChartOfAccounts | $projection.CorporateGroupChartOfAccounts = _CorporateGroupChartOfAccounts.ChartOfAccounts |
| [0..1] | I_GLAccountInChartOfAccounts | _CorporateGroupAccount | $projection.CorporateGroupChartOfAccounts = _CorporateGroupAccount.ChartOfAccounts and $projection.CorporateGroupAccount = _CorporateGroupAccount.GLAccount |
| [0..*] | I_GLAccountGroupText | _GLAccountGroupText | $projection.GLAccountGroup = _GLAccountGroupText.GLAccountGroup and $projection.ChartOfAccounts = _GLAccountGroupText.ChartOfAccounts |
| [0..1] | I_GLAccountType | _GLAccountType | $projection.GLAccountType = _GLAccountType.GLAccountType |
| [0..1] | I_GLAccountSubtype | _GLAccountSubtype | $projection.GLAccountSubtype = _GLAccountSubtype.GLAccountSubtype |
| [0..*] | I_GLAccountTypeText | _GLAccountTypeText | $projection.GLAccountType = _GLAccountTypeText.GLAccountType |
| [1..1] | I_GLAccountText | _MaintTxt | Acct.ChartOfAccounts = _MaintTxt.ChartOfAccounts and $projection.GLAccount = _MaintTxt.GLAccount and _MaintTxt.Language = CoA.MaintenanceLanguage |
| [0..1] | I_GLAcctInCOAImplementStatType | _GLAcctImplementStatus | $projection.glacctcoaimplementstatus = _GLAcctImplementStatus.GLAcctCOAImplementStatus |
| [0..*] | I_GLAccountText | _BankReconAcctTxt | $projection.ChartOfAccounts = _BankReconAcctTxt.ChartOfAccounts and $projection.BankReconciliationAccount = _BankReconAcctTxt.GLAccount |
| [0..1] | I_CostElement | _CostElement | $projection.ChartOfAccounts = _CostElement.ChartOfAccounts and $projection.GLAccount = _CostElement.CostElement and _CostElement.ControllingArea = 'A000' |
| [0..1] | I_UserContactCard | _CreatedBy | $projection.CreatedByUser = _CreatedBy.ContactCardID |
| [0..*] | R_OperatingGLAcctInCoCodeTP | _CompanyCode | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Operating G/L Account Root | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | GeneralLedgerAccount | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | I_GLAccountInChartOfAccounts | ChartOfAccounts | Node Class |
| KEY | GLAccount | I_GLAccountInChartOfAccounts | GLAccount | General Ledger |
| GLAcctCOAImplementStatus | ||||
| GLAccountIsNotProdnRelevant | _NotNeeded | GLAccountIsNotProdnRelevant | G/L Account Not Used | |
| IsBalanceSheetAccount | I_GLAccountInChartOfAccounts | IsBalanceSheetAccount | Is Balance Sheet Account | |
| GLAccountGroup | I_GLAccountInChartOfAccounts | GLAccountGroup | Account Group | |
| CorporateGroupChartOfAccounts | ||||
| CorporateGroupAccount | I_GLAccountInChartOfAccounts | CorporateGroupAccount | Group Account Number | |
| ProfitLossAccountType | I_GLAccountInChartOfAccounts | ProfitLossAccountType | Profit Loss Account Type | |
| RetainedEarningsGLAccount | ||||
| 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 | |
| LastChangeDateTime | I_GLAccountInChartOfAccounts | LastChangeDateTime | Timestamp | |
| GLAccountLogonLangName | ||||
| GLAcctLogonLangLongName | ||||
| GLAccountName | _MaintTxt | GLAccountName | Short Text | |
| GLAccountLongName | _MaintTxt | GLAccountLongName | Long Text | |
| Language | ||||
| GLAccountType | I_GLAccountInChartOfAccounts | GLAccountType | G/L Account Type | |
| GLAccountSubtype | I_GLAccountInChartOfAccounts | GLAccountSubtype | G/L Account Subtype | |
| GLAccountExternal | I_GLAccountInChartOfAccounts | GLAccountExternal | G/L Acct External ID | |
| BankReconciliationAccount | I_GLAccountInChartOfAccounts | BankReconciliationAccount | Reconciliation Acct | |
| IsProfitLossAccount | I_GLAccountInChartOfAccounts | IsProfitLossAccount | Profit Loss Account | |
| _ChartOfAccounts | I_GLAccountInChartOfAccounts | _ChartOfAccounts | ||
| PubSecBudgetCnsmpnType | _PublicSector | PubSecBudgetCnsmpnType | Budget Consumption Type | |
| PubSecBdgtAcctRevnExpnCode | _PublicSector | PubSecBdgtAcctRevnExpnCode | Expense/Revenue | |
| PubSecBudgetIsRelevant | _PublicSector | PubSecBudgetIsRelevant | ||
| PubSecBdgtAcctIsPostgAllowed | _PublicSector | PubSecBdgtAcctIsPostgAllowed | ||
| PubSecBdgtAcctIsBdgtAllowed | _PublicSector | PubSecBdgtAcctIsBdgtAllowed | ||
| PubSecBdgtAcctIsCarryFwd | _PublicSector | PubSecBdgtAcctIsCarryFwd | ||
| PubSecBdgtAcctCarryFwdTo | _PublicSector | PubSecBdgtAcctCarryFwdTo | ||
| CashLedgerAccount | _PublicSector | CashLedgerAccount | Cash Origin Account | |
| SponsoredClass | _PublicSector | SponsoredClass | Sponsored Class | |
| _RetainedEarningsGLAccount | I_GLAccountInChartOfAccounts | _RetainedEarningsGLAccount | ||
| CostElementCategory | _CostElement | CostElementCategory | ||
| UnitOfMeasure | _CostElement | UnitOfMeasure | Unit Protected Qty | |
| ConsumptionQtyIsRecorded | Record Quantity | |||
| _ChartOfAccountsText | _ChartOfAccountsText | |||
| _GLAccountHierarchyNode | _GLAccountHierarchyNode | |||
| _PublicSector | _PublicSector | |||
| _GLAccountGroup | _GLAccountGroup | |||
| _FunctionalArea | _FunctionalArea | |||
| _GlobalCompany | _GlobalCompany | |||
| _CorporateGroupChartOfAccounts | _CorporateGroupChartOfAccounts | |||
| _CorporateGroupAccount | _CorporateGroupAccount | |||
| _GLAccountGroupText | _GLAccountGroupText | |||
| _GLAccountType | _GLAccountType | |||
| _GLAccountTypeText | _GLAccountTypeText | |||
| _GLAccountSubtype | _GLAccountSubtype | |||
| _CompanyCode | _CompanyCode | |||
| _GLAccountText | _GLAccountText | |||
| _GLAcctImplementStatus | _GLAcctImplementStatus | |||
| _BankReconAcctTxt | _BankReconAcctTxt | |||
| _CostElement | _CostElement | |||
| _CreatedBy | _CreatedBy | |||
| _GLAcctInChartOfAcctsStatus | I_GLAccountInChartOfAccounts | _GLAcctInChartOfAcctsStatus |
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 R_OperatingGLAccountTP.
-- 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 R_OperatingGLAccountTP AS
SELECT
Acct.ChartOfAccounts AS ChartOfAccounts,
Acct.GLAccount AS GLAccount,
Acct._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus AS GLAcctCOAImplementStatus,
_NotNeeded.GLAccountIsNotProdnRelevant AS GLAccountIsNotProdnRelevant,
Acct.IsBalanceSheetAccount AS IsBalanceSheetAccount,
Acct.GLAccountGroup AS GLAccountGroup,
Acct._ChartOfAccounts.CorporateGroupChartOfAccounts AS CorporateGroupChartOfAccounts,
Acct.CorporateGroupAccount AS CorporateGroupAccount,
Acct.ProfitLossAccountType AS ProfitLossAccountType,
Acct._RetainedEarningsGLAccount.RetainedEarningsGLAccount AS RetainedEarningsGLAccount,
Acct.SampleGLAccount AS SampleGLAccount,
Acct.AccountIsMarkedForDeletion AS AccountIsMarkedForDeletion,
Acct.AccountIsBlockedForCreation AS AccountIsBlockedForCreation,
Acct.AccountIsBlockedForPosting AS AccountIsBlockedForPosting,
Acct.AccountIsBlockedForPlanning AS AccountIsBlockedForPlanning,
Acct.PartnerCompany AS PartnerCompany,
Acct.FunctionalArea AS FunctionalArea,
Acct.CreationDate AS CreationDate,
Acct.CreatedByUser AS CreatedByUser,
Acct.LastChangeDateTime AS LastChangeDateTime,
Acct._Text[1: Language = $session.system_language].GLAccountName AS GLAccountLogonLangName,
Acct._Text[1: Language = $session.system_language].GLAccountLongName AS GLAcctLogonLangLongName,
_MaintTxt.GLAccountName AS GLAccountName,
_MaintTxt.GLAccountLongName AS GLAccountLongName,
$session.system_language AS Language,
Acct.GLAccountType AS GLAccountType,
Acct.GLAccountSubtype AS GLAccountSubtype,
Acct.GLAccountExternal AS GLAccountExternal,
Acct.BankReconciliationAccount AS BankReconciliationAccount,
Acct.IsProfitLossAccount AS IsProfitLossAccount,
Acct._ChartOfAccounts AS _ChartOfAccounts,
_PublicSector.PubSecBudgetCnsmpnType AS PubSecBudgetCnsmpnType,
_PublicSector.PubSecBdgtAcctRevnExpnCode AS PubSecBdgtAcctRevnExpnCode,
_PublicSector.PubSecBudgetIsRelevant AS PubSecBudgetIsRelevant,
_PublicSector.PubSecBdgtAcctIsPostgAllowed AS PubSecBdgtAcctIsPostgAllowed,
_PublicSector.PubSecBdgtAcctIsBdgtAllowed AS PubSecBdgtAcctIsBdgtAllowed,
_PublicSector.PubSecBdgtAcctIsCarryFwd AS PubSecBdgtAcctIsCarryFwd,
_PublicSector.PubSecBdgtAcctCarryFwdTo AS PubSecBdgtAcctCarryFwdTo,
_PublicSector.CashLedgerAccount AS CashLedgerAccount,
_PublicSector.SponsoredClass AS SponsoredClass,
Acct._RetainedEarningsGLAccount AS _RetainedEarningsGLAccount,
_CostElement.CostElementCategory AS CostElementCategory,
_CostElement.UnitOfMeasure AS UnitOfMeasure,
cast( _CostElement.ConsumptionQtyIsRecorded as xfeld ) AS ConsumptionQtyIsRecorded,
Acct._GLAcctInChartOfAcctsStatus AS _GLAcctInChartOfAcctsStatus
FROM I_GLAccountInChartOfAccounts AS Acct
LEFT OUTER JOIN I_GLAcctInChartOfAcctsProdn AS _NotNeeded ON Acct.ChartOfAccounts = _NotNeeded.ChartOfAccounts AND Acct.GLAccount = _NotNeeded.GLAccount -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON ChartOfAccounts = _GLAccountText.ChartOfAccounts AND GLAccount = _GLAccountText.GLAccount -- association [1..*]
LEFT OUTER JOIN I_ChartOfAccountsText AS _ChartOfAccountsText ON ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts -- association [0..*]
LEFT OUTER JOIN I_GLAccountHierarchyNode AS _GLAccountHierarchyNode ON GLAccount = _GLAccountHierarchyNode.GLAccount AND ChartOfAccounts = _GLAccountHierarchyNode.ChartOfAccounts -- association [0..*]
LEFT OUTER JOIN I_GLAccountForPublicSector AS _PublicSector ON ChartOfAccounts = _PublicSector.ChartOfAccounts AND GLAccount = _PublicSector.GLAccount -- association [0..1]
LEFT OUTER JOIN I_GLAccountGroup AS _GLAccountGroup ON GLAccountGroup = _GLAccountGroup.GLAccountGroup AND ChartOfAccounts = _GLAccountGroup.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_Globalcompany AS _GlobalCompany ON PartnerCompany = _GlobalCompany.Company -- association [1..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _CorporateGroupChartOfAccounts ON CorporateGroupChartOfAccounts = _CorporateGroupChartOfAccounts.ChartOfAccounts -- 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_GLAccountGroupText AS _GLAccountGroupText ON GLAccountGroup = _GLAccountGroupText.GLAccountGroup AND ChartOfAccounts = _GLAccountGroupText.ChartOfAccounts -- association [0..*]
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_GLAccountTypeText AS _GLAccountTypeText ON GLAccountType = _GLAccountTypeText.GLAccountType -- association [0..*]
LEFT OUTER JOIN I_GLAccountText AS _MaintTxt ON Acct.ChartOfAccounts = _MaintTxt.ChartOfAccounts AND GLAccount = _MaintTxt.GLAccount AND _MaintTxt.Language = CoA.MaintenanceLanguage -- association [1..1]
LEFT OUTER JOIN I_GLAcctInCOAImplementStatType AS _GLAcctImplementStatus ON glacctcoaimplementstatus = _GLAcctImplementStatus.GLAcctCOAImplementStatus -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _BankReconAcctTxt ON ChartOfAccounts = _BankReconAcctTxt.ChartOfAccounts AND BankReconciliationAccount = _BankReconAcctTxt.GLAccount -- association [0..*]
LEFT OUTER JOIN I_CostElement AS _CostElement ON ChartOfAccounts = _CostElement.ChartOfAccounts AND GLAccount = _CostElement.CostElement AND _CostElement.ControllingArea = 'A000' -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedBy ON CreatedByUser = _CreatedBy.ContactCardID -- association [0..1]
LEFT OUTER JOIN R_OperatingGLAcctInCoCodeTP AS _CompanyCode ON /* condition not available in parsed metadata */ -- association [0..*]
;
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