I_LedgerCompanyCodeCrcyRolesVH
Currency Types for Ledger and Company Code
I_LedgerCompanyCodeCrcyRolesVH is a Composite CDS View (Dimension) that provides data about "Currency Types for Ledger and Company Code" in SAP S/4HANA. It reads from 1 data source (P_LedgerCompanyCodeCrcyRoles) and exposes 10 fields with key fields Ledger, CompanyCode, CurrencyRole. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_LedgerCompanyCodeCrcyRoles | P_LedgerCompanyCodeCrcyRoles | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Companycodecurrencyrole | _CompanyCodeCurrencyRole | $projection.CurrencyRole = _CompanyCodeCurrencyRole.CurrencyRole and $projection.CompanyCode = _CompanyCodeCurrencyRole.CompanyCode |
| [0..*] | I_CurrencyRoleText | _Text | $projection.CurrencyRole = _Text.CurrencyRole |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.technicalName | IFILDGRCCCRVH | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| EndUserText.label | Currency Types for Ledger and Company Code | view | |
| ObjectModel.representativeKey | CurrencyRole | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.modelingPattern | #VALUE_HELP_PROVIDER | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Consumption.ranked | true | view | |
| Search.searchable | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.allowExtensions | true | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | CurrencyRole | Curr./Val. Type | ||
| CurrencyRoleName | ||||
| Currency | _CompanyCodeCurrencyRole | Currency | Valuation Crcy | |
| AccountingValuationView | _CurrencyRole | AccountingValuationView | ||
| _CurrencyRole | _CurrencyRole | |||
| _Ledger | _Ledger | |||
| _CompanyCode | _CompanyCode | |||
| _Text | _Text |
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 I_LedgerCompanyCodeCrcyRolesVH.
-- 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.
CREATE VIEW I_LedgerCompanyCodeCrcyRolesVH AS
SELECT
Ledger,
CompanyCode,
cast(CurrencyRole as fins_curtp preserving type ) AS CurrencyRole,
cast( _Text[1: Language = $session.system_language].CurrencyRoleName as fis_crcyrole_txt ) AS CurrencyRoleName,
_CompanyCodeCurrencyRole.Currency AS Currency,
_CurrencyRole.AccountingValuationView AS AccountingValuationView
FROM P_LedgerCompanyCodeCrcyRoles
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Companycodecurrencyrole AS _CompanyCodeCurrencyRole ON CurrencyRole = _CompanyCodeCurrencyRole.CurrencyRole AND CompanyCode = _CompanyCodeCurrencyRole.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CurrencyRoleText AS _Text ON CurrencyRole = _Text.CurrencyRole -- association [0..*]
;
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