R_LedgerValuationCrcyRole

DDL: R_LEDGERVALUATIONCRCYROLE SQL: RLDGRVALNCRROLE Type: view BASIC Package: FINS_ML_VDM

Currency Role

R_LedgerValuationCrcyRole is a Basic CDS View that provides data about "Currency Role" in SAP S/4HANA. It reads from 1 data source (P_LedgerValuationCrcyRole) and exposes 11 fields with key fields LedgerValuationCurrencyRole, CurrencyRole, Ledger, AccountingValuationView, AccountingValuationSubview. It has 4 associations to related views. Part of development package FINS_ML_VDM.

Data Sources (1)

SourceAliasJoin Type
P_LedgerValuationCrcyRole it from

Associations (4)

CardinalityTargetAliasCondition
[0..1] finsc_valutypt _finsc_valutypt _finsc_valutypt.valutyp = it.valutyp and _finsc_valutypt.langu = $session.system_language
[0..1] finsc_valsubtypt _finsc_valusubtypt _finsc_valusubtypt.valusubtype = it.valusubtyp and _finsc_valusubtypt.langu = $session.system_language
[0..1] finsc_curtypet _Text _Text.curtype = CurrencyRole and _Text.langu = $session.system_language
[0..1] finsc_curtypet _LegalCurrTypeText _LegalCurrTypeText.curtype = it.legal_curtype and _LegalCurrTypeText.langu = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName RLDGRVALNCRROLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.compiler.compareFilter true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
EndUserText.label Currency Role view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY LedgerValuationCurrencyRole P_LedgerValuationCrcyRole curtype Currency Type
KEY CurrencyRole Curr./Val. Type
KEY Ledger P_LedgerValuationCrcyRole Ledger Ledger
KEY AccountingValuationView P_LedgerValuationCrcyRole valutyp Valuation Views
KEY AccountingValuationSubview P_LedgerValuationCrcyRole valusubtyp Subtype Val
AccountingValuationViewName _finsc_valutypt name Zone name
AccountingValuationSubviewName _finsc_valusubtypt name Zone name
LegalCurrencyRole
LedgerName
LegalCurrencyRoleName
CurrencyRoleName

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view R_LedgerValuationCrcyRole.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: RLDGRVALNCRROLE

CREATE VIEW R_LedgerValuationCrcyRole AS
SELECT
  it.curtype AS LedgerValuationCurrencyRole,
  cast(CurrencyRole as fins_ext_curtype) AS CurrencyRole,
  it.Ledger AS Ledger,
  it.valutyp AS AccountingValuationView,
  it.valusubtyp AS AccountingValuationSubview,
  _finsc_valutypt.name AS AccountingValuationViewName,
  _finsc_valusubtypt.name AS AccountingValuationSubviewName,
  cast(it.legal_curtype as fml_legal_curtype) AS LegalCurrencyRole,
  cast(_Ledger._Text[1: Language = $session.system_language].LedgerName as fins_ledgername) AS LedgerName,
  cast( _LegalCurrTypeText.name as fins_legalcurrencytypename ) AS LegalCurrencyRoleName,
  cast( _Text.name as fins_currencytypename ) AS CurrencyRoleName
FROM P_LedgerValuationCrcyRole AS it
LEFT OUTER JOIN finsc_valutypt AS _finsc_valutypt ON _finsc_valutypt.valutyp = it.valutyp AND _finsc_valutypt.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN finsc_valsubtypt AS _finsc_valusubtypt ON _finsc_valusubtypt.valusubtype = it.valusubtyp AND _finsc_valusubtypt.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN finsc_curtypet AS _Text ON _Text.curtype = CurrencyRole AND _Text.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN finsc_curtypet AS _LegalCurrTypeText ON _LegalCurrTypeText.curtype = it.legal_curtype AND _LegalCurrTypeText.langu = $session.system_language  -- association [0..1]
;