P_CurrencyRoleForLedger

DDL: P_CURRENCYROLEFORLEDGER SQL: PFICURRROLELD Type: view COMPOSITE

P_CurrencyRoleForLedger is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_Ledger, I_CurrencyRole, I_NonLeadingLedgerCurrencyRole) and exposes 6 fields with key fields Ledger, CurrencyRole, CurrencyRole.

Data Sources (3)

SourceAliasJoin Type
I_Ledger _Ledger inner
I_CurrencyRole I_CurrencyRole from
I_NonLeadingLedgerCurrencyRole I_NonLeadingLedgerCurrencyRole union_all

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PFICURRROLELD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey CurrencyRole view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_Ledger Ledger
KEY CurrencyRole CurrencyRole
LegalCurrencyRole LegalCurrencyRole
KEY CurrencyRole CurrencyRole
LegalCurrencyRole LegalCurrencyRole
_Text _Text
@AbapCatalog.sqlViewName: 'PFICURRROLELD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'CurrencyRole'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {
  dataClass: #CUSTOMIZING,
  serviceQuality: #A,
  sizeCategory: #S
}
//@EndUserText.label: 'Private view for external currency roles'

define view P_CurrencyRoleForLedger 
as select from I_CurrencyRole 
inner join I_Ledger as _Ledger  on _Ledger.IsLeadingLedger ='X' 
{  
     key _Ledger.Ledger,
@ObjectModel.text.association: '_Text' 
     key CurrencyRole,
     LegalCurrencyRole,
     I_CurrencyRole._Text
     
}


union all select from I_NonLeadingLedgerCurrencyRole
{
     key Ledger,
@ObjectModel.text.association: '_Text' 
     key CurrencyRole,
     LegalCurrencyRole,
    _Text
    
}   
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CURRENCYROLE",
"I_LEDGER",
"I_NONLEADINGLEDGERCURRENCYROLE"
],
"ASSOCIATED":
[
"I_CURRENCYROLETEXT"
],
"BASE":
[
"I_CURRENCYROLE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/