I_CorrespncAddlCurrencyRole is a Basic CDS View that provides data about "Additional Currency Role for Correspondence" in SAP S/4HANA. It reads from 2 data sources (finsc_ld_cmp, I_Ledger) and exposes 6 fields with key fields Ledger, CompanyCode. It has 2 associations to related views.
@AbapCatalog.sqlViewName: 'ICORRADDCURROLE'
@AbapCatalog.compiler.compareFilter: true@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #NOT_REQUIRED@ObjectModel.usageType.dataClass: #MIXED@ObjectModel.usageType.serviceQuality: #C@ObjectModel.usageType.sizeCategory: #M@VDM.viewType: #BASIC@ClientHandling.algorithm: #SESSION_VARIABLE@EndUserText.label: 'Additional Currency Role for Correspondence'
defineview I_CorrespncAddlCurrencyRole
asselectfrom finsc_ld_cmp
innerjoin I_Ledger on I_Ledger.IsLeadingLedger = 'X'
and I_Ledger.Ledger = finsc_ld_cmp.rldnr
association [1..1] to I_CurrencyRole as _AdditionalCurrency1Role on _AdditionalCurrency1Role.CurrencyRole = $projection.AdditionalCurrency1Role
association [1..1] to I_CurrencyRole as _AdditionalCurrency2Role on _AdditionalCurrency2Role.CurrencyRole = $projection.AdditionalCurrency2Role
{
key finsc_ld_cmp.rldnr as Ledger,
key finsc_ld_cmp.bukrs as CompanyCode,
casewhen finsc_ld_cmp.curposk = '2' then finsc_ld_cmp.curtpk
when finsc_ld_cmp.curposo = '2' then finsc_ld_cmp.curtpo
when finsc_ld_cmp.curposv = '2' then finsc_ld_cmp.curtpv
when finsc_ld_cmp.curposb = '2' then finsc_ld_cmp.curtpb
when finsc_ld_cmp.curposc = '2' then finsc_ld_cmp.curtpc
when finsc_ld_cmp.curposd = '2' then finsc_ld_cmp.curtpd
when finsc_ld_cmp.curpose = '2' then finsc_ld_cmp.curtpe
when finsc_ld_cmp.curposf = '2' then finsc_ld_cmp.curtpf
when finsc_ld_cmp.curposg = '2' then finsc_ld_cmp.curtpg
else ' '
endas AdditionalCurrency1Role,
casewhen finsc_ld_cmp.curposk = '3' then finsc_ld_cmp.curtpk
when finsc_ld_cmp.curposo = '3' then finsc_ld_cmp.curtpo
when finsc_ld_cmp.curposv = '3' then finsc_ld_cmp.curtpv
when finsc_ld_cmp.curposb = '3' then finsc_ld_cmp.curtpb
when finsc_ld_cmp.curposc = '3' then finsc_ld_cmp.curtpc
when finsc_ld_cmp.curposd = '3' then finsc_ld_cmp.curtpd
when finsc_ld_cmp.curpose = '3' then finsc_ld_cmp.curtpe
when finsc_ld_cmp.curposf = '3' then finsc_ld_cmp.curtpf
when finsc_ld_cmp.curposg = '3' then finsc_ld_cmp.curtpg
else ' '
endas AdditionalCurrency2Role,
_AdditionalCurrency1Role,
_AdditionalCurrency2Role
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGER",
"FINSC_LD_CMP"
],
"ASSOCIATED":
[
"I_CURRENCYROLE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/