P_CurrencyRoleForLedger
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)
| Source | Alias | Join Type |
|---|---|---|
| I_Ledger | _Ledger | inner |
| I_CurrencyRole | I_CurrencyRole | from |
| I_NonLeadingLedgerCurrencyRole | I_NonLeadingLedgerCurrencyRole | union_all |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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