P_CompanyCodeGLAccountInCOA
Operating Chart of Accounts
P_CompanyCodeGLAccountInCOA is a Composite CDS View that provides data about "Operating Chart of Accounts" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountInCompanyCode, I_CompanyCode) and exposes 4 fields with key fields ChartOfAccounts, GLAccount, CompanyCode. Part of development package RAP_FI_GL_COA.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInCompanyCode | acct | from |
| I_CompanyCode | cocd | right_outer |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.resultSet.sizeCategory | #XS | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.representativeKey | ChartOfAccounts | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | I_CompanyCode | ChartOfAccounts | |
| KEY | GLAccount | I_GLAccountInCompanyCode | GLAccount | |
| KEY | CompanyCode | I_CompanyCode | CompanyCode | |
| CompanyCodeName | I_CompanyCode | CompanyCodeName |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.resultSet.sizeCategory: #XS
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.representativeKey: 'ChartOfAccounts'
@ObjectModel.supportedCapabilities:[#SEARCHABLE_ENTITY,#VALUE_HELP_PROVIDER]
define view entity P_CompanyCodeGLAccountInCOA
as select from I_GLAccountInCompanyCode as acct
right outer join I_CompanyCode as cocd
on acct.CompanyCode = cocd.CompanyCode
{
key cocd.ChartOfAccounts as ChartOfAccounts,
key acct.GLAccount as GLAccount,
key cocd.CompanyCode,
cocd.CompanyCodeName
}
where acct.GLAccount is not initial
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