P_LedgerCompanyCode

DDL: P_LEDGERCOMPANYCODE SQL: PFILDCOCODE Type: view BASIC

P_LedgerCompanyCode is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_LedgerCompanyCodeCrcyRoles) and exposes 8 fields with key fields Ledger, AccountingPrinciple, CompanyCode.

Data Sources (1)

SourceAliasJoin Type
I_LedgerCompanyCodeCrcyRoles I_LedgerCompanyCodeCrcyRoles from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFILDCOCODE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey CompanyCode view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger
KEY AccountingPrinciple AccountingPrinciple
KEY CompanyCode CompanyCode
FiscalYearVariant FiscalYearVariant
_Ledger _Ledger
_CompanyCode _CompanyCode
_FiscalYearVariant _FiscalYearVariant
_AccountingPrinciple _AccountingPrinciple
@AbapCatalog.sqlViewName: 'PFILDCOCODE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Private view for main attributes of company code in ledger'

@ObjectModel.representativeKey: 'CompanyCode'

define view P_LedgerCompanyCode as select from I_LedgerCompanyCodeCrcyRoles {

@ObjectModel.foreignKey.association: '_Ledger'
key Ledger,
@ObjectModel.foreignKey.association: '_AccountingPrinciple'
key AccountingPrinciple,    
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
FiscalYearVariant,
    
_Ledger,
_CompanyCode,
_FiscalYearVariant,
_AccountingPrinciple

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGERCOMPANYCODECRCYROLES"
],
"ASSOCIATED":
[
"I_ACCOUNTINGPRINCIPLE",
"I_COMPANYCODE",
"I_FISCALYEARVARIANT",
"I_LEDGER"
],
"BASE":
[
"I_LEDGERCOMPANYCODECRCYROLES"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/