P_GLAccountSemTagInCompanyCode
P_GLAccountSemTagInCompanyCode is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_GLAccountInCompanyCode, I_AccountingPrncpGLAcctSemTag) and exposes 8 fields with key fields GLAccount, CompanyCode, AccountingPrinciple, SemanticTag, ChartOfAccounts.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInCompanyCode | 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 (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GLAccount | I_GLAccountInCompanyCode | GLAccount | |
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingPrinciple | AccountingPrinciple | ||
| KEY | SemanticTag | SemanticTag | ||
| KEY | ChartOfAccounts | I_AccountingPrncpGLAcctSemTag | ChartOfAccounts | |
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| ReconciliationAccountType | ReconciliationAccountType |
@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 I_GLAccountInCompanyCode 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,
ReconciliationAccountType,
cast(
case
when IsOpenItemManaged = 'X'
or ReconciliationAccountType = 'D'
or ReconciliationAccountType = 'K'
or ClearingIsLedgerGroupSpecific = 'X'
then 'X'
else '' end as xopvw ) as AccountIsOpenItemManaged
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGPRNCPGLACCTSEMTAG",
"I_GLACCOUNTINCOMPANYCODE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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