P_GLAccountSemTagInCompanyCode
Get GLaccount in one company code according to semantic tag
P_GLAccountSemTagInCompanyCode is a Composite CDS View that provides data about "Get GLaccount in one company code according to semantic tag" in SAP S/4HANA. It reads from 2 data sources (P_FinClsgGLAccountInCoCode, I_AccountingPrncpGLAcctSemTag) and exposes 10 fields with key fields GLAccount, CompanyCode, AccountingPrinciple, SemanticTag, ChartOfAccounts. Part of development package FINS_FI_CLS_CUSTOMIZING.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_FinClsgGLAccountInCoCode | companycode | inner |
| I_AccountingPrncpGLAcctSemTag | semtag | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGLACCTBUKRS | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.representativeKey | CompanyCode | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GLAccount | P_FinClsgGLAccountInCoCode | GLAccount | |
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingPrinciple | AccountingPrinciple | ||
| KEY | SemanticTag | SemanticTag | ||
| KEY | ChartOfAccounts | I_AccountingPrncpGLAcctSemTag | ChartOfAccounts | |
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| GLAccountCurrency | GLAccountCurrency | |||
| ReconciliationAccountType | ReconciliationAccountType | |||
| AccountIsOpenItemManaged | AccountIsOpenItemManaged |
@AbapCatalog: {
sqlViewName: 'PGLACCTBUKRS',
preserveKey: true,
compiler:{ compareFilter: true }
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel: {
representativeKey: 'CompanyCode',
usageType: {
dataClass: #CUSTOMIZING,
serviceQuality: #D,
sizeCategory: #M
}
}
define view P_GLAccountSemTagInCompanyCode
as select from I_AccountingPrncpGLAcctSemTag as semtag
inner join P_FinClsgGLAccountInCoCode as companycode on semtag.GLAccount = companycode.GLAccount
{
//companycode
key companycode.GLAccount,
key CompanyCode,
//semtag
key AccountingPrinciple,
key SemanticTag,
key semtag.ChartOfAccounts as ChartOfAccounts, //change by SCHWANJO please check
ValidityStartDate,
ValidityEndDate,
GLAccountCurrency,
ReconciliationAccountType,
AccountIsOpenItemManaged
}
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