I_GLAcctInCOACompanyCode

DDL: I_GLACCTINCOACOMPANYCODE SQL: IGLACCTCOACOCD Type: view COMPOSITE Package: RAP_FI_GL_COA

Operating CoA GL Acct in Company Code

I_GLAcctInCOACompanyCode is a Composite CDS View that provides data about "Operating CoA GL Acct in Company Code" in SAP S/4HANA. It reads from 1 data source (I_GLAccountInChartOfAccounts) and exposes 18 fields with key fields ChartOfAccounts, GLAccount, CompanyCode. Part of development package RAP_FI_GL_COA.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountInChartOfAccounts AcctCOA from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IGLACCTCOACOCD view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Operating CoA GL Acct in Company Code view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts I_GLAccountInChartOfAccounts ChartOfAccounts
KEY GLAccount I_GLAccountInChartOfAccounts GLAccount G/L Account Number
KEY CompanyCode AcctCC CompanyCode
GLAccountName G/L Account Short Text
GLAccountType I_GLAccountInChartOfAccounts GLAccountType G/L Account Type
GLAccountTypeName G/L Account Type Name
GLAccountGroup I_GLAccountInChartOfAccounts GLAccountGroup G/L Account Group
AccountGroupName G/L Account Group Name
CorporateGroupAccount I_GLAccountInChartOfAccounts CorporateGroupAccount
CorporateGroupAccountName
GLAccountLongName G/L Account Long Text
AccountIsMarkedForDeletion I_GLAccountInChartOfAccounts AccountIsMarkedForDeletion
GLAccountExternal I_GLAccountInChartOfAccounts GLAccountExternal
GLAccountSubtype I_GLAccountInChartOfAccounts GLAccountSubtype
BankReconciliationAccount I_GLAccountInChartOfAccounts BankReconciliationAccount
ProfitLossAccountType I_GLAccountInChartOfAccounts ProfitLossAccountType P&L Statement Acct
GLAcctCOAImplementStatus
GLAcctCOAImplementStatusName
@AbapCatalog.sqlViewName: 'IGLACCTCOACOCD'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #COMPOSITE  
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #M,
  dataClass: #MASTER }

@EndUserText.label: 'Operating CoA GL Acct in Company Code'
define view I_GLAcctInCOACompanyCode as select from I_GLAccountInChartOfAccounts as AcctCOA
               left outer to many join I_GLAccountInCompanyCode as AcctCC on
                                                            AcctCOA.GLAccount = AcctCC.GLAccount
                                                            
     association to I_CompanyCode as CC on AcctCC.CompanyCode = CC.CompanyCode                                                              
//                                                            and  AcctCOA.ChartOfAccounts = 'YCOA'


       // association to parent R_OperatingChartOfAccountsTP as _root on $projection.ChartOfAccounts   = _root.ChartOfAccounts                                

                {
               
    @Consumption.filter.mandatory
    @UI.textArrangement: #TEXT_LAST
    @Consumption.valueHelpDefinition: [{ entity: { name:    'P_OperatingChartOfAccounts',
                                                   element: 'ChartOfAccounts' } 
                                                   }]
    @Consumption.semanticObject:      'ChartOfAccounts'
    @Consumption.filter.selectionType: #SINGLE
    
    key AcctCOA.ChartOfAccounts,
        
    @EndUserText.label: 'G/L Account Number'                         
    @EndUserText.quickInfo: 'G/L Account Number'    
    @Consumption.semanticObject: 'GLAccount'    
    @Consumption.valueHelpDefinition: [{ entity: { name:    'I_GLAccount',
                                                 element: 'GLAccount' } }]      
    @Consumption.filter.mandatory  

    key AcctCOA.GLAccount,
    key AcctCC.CompanyCode,
     
    @UI: { lineItem: [ { 
    position: 25,
                       importance: #MEDIUM
                        } ],
    identification: [ { position: 25 } ] }
 
    @EndUserText.label: 'G/L Account Short Text'                         

    AcctCOA._Text[1: Language = $session.system_language].GLAccountName as GLAccountName,
    
    @UI: { lineItem: [ { position: 30,
                       importance: #MEDIUM
                        } ],
    identification: [ { position: 30 } ] }
 
    @EndUserText.label: 'G/L Account Type'                         
    @EndUserText.quickInfo: 'G/L Account Type'
    @ObjectModel.text.element: ['GLAccountTypeName']
    @UI.textArrangement: #TEXT_LAST
    AcctCOA.GLAccountType                                                   ,
    @Semantics.text: true     
    @EndUserText.label: 'G/L Account Type Name'                         
    @EndUserText.quickInfo: 'G/L Account Type Name'          
    AcctCOA._GLAccountType._GLAccountTypeText[1: Language =  $session.system_language].GLAccountTypeName as GLAccountTypeName,
      
    @UI: { lineItem: [ { position: 40,
                         importance: #MEDIUM                          } ],
     identification: [ { position: 40 } ] }
    @EndUserText.label: 'G/L Account Group'                         
    @EndUserText.quickInfo: 'G/L Account Group'
    @ObjectModel.text.element: ['AccountGroupName']
    @UI.textArrangement: #TEXT_LAST      
    AcctCOA.GLAccountGroup                                                  ,
    @Semantics.text: true
    @EndUserText.label: 'G/L Account Group Name'                         
    @EndUserText.quickInfo: 'G/L Account Group Name' 
    AcctCOA._GLAccountGroupText[1: Language =  $session.system_language].AccountGroupName as AccountGroupName,
      
    @UI: { lineItem: [ { position: 50,
                       importance: #MEDIUM  } ],
    identification: [ { position: 50 } ] }
    @ObjectModel.text.element: ['CorporateGroupAccountName']
    @UI.textArrangement: #TEXT_LAST     
    AcctCOA.CorporateGroupAccount                                           as CorporateGroupAccount,
    AcctCOA._CorporateGroupAccount._Text[1: Language = $session.system_language].GLAccountName as CorporateGroupAccountName,        
    @EndUserText.label: 'G/L Account Long Text'                         
    @EndUserText.quickInfo: 'G/L Account Long Text'       
    AcctCOA._Text[1: Language = $session.system_language].GLAccountLongName as GLAccountLongName,

//      _root.FinancialStatementHierarchy as FinancialStatementHierarchy, 

    
    AcctCOA.AccountIsMarkedForDeletion                                      as AccountIsMarkedForDeletion,                                     
    AcctCOA.GLAccountExternal                                               as GLAccountExternal,
    AcctCOA.GLAccountSubtype                                                as GLAccountSubtype ,
    AcctCOA.BankReconciliationAccount                                       as BankReconciliationAccount,
    @EndUserText.label: 'P&L Statement Acct'                         
    AcctCOA.ProfitLossAccountType                                           as ProfitLossAccountType,
    AcctCOA._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus            as GLAcctCOAImplementStatus,
    AcctCOA._GLAcctInChartOfAcctsStatus._GLAccountImpStTypeText[1: Language = $session.system_language].GLAcctCOAImplementStatusName as GLAcctCOAImplementStatusName

//    _root

//    _ChartOfAccounts

//    _GLAcct  

} 
where CC.ChartOfAccounts =  AcctCOA.ChartOfAccounts
//where AcctCOA.ChartOfAccounts = _root.ChartOfAccounts