R_LedgerValuationCrcyRole
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)
| Source | Alias | Join Type |
|---|---|---|
| P_LedgerValuationCrcyRole | it | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA