P_GLAccountSemTagInCompanyCode

DDL: P_GLACCOUNTSEMTAGINCOMPANYCODE Type: view COMPOSITE

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)

SourceAliasJoin Type
I_GLAccountInCompanyCode companycode inner
I_AccountingPrncpGLAcctSemTag semtag from

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/