I_Companycodecurrencyrole
Currency Role of Company Code
I_Companycodecurrencyrole (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.
CompanyCodeCurrencyRole · Accounting and Financial Close
I_Companycodecurrencyrole is a Basic CDS View (Dimension) that provides data about "Currency Role of Company Code" in SAP S/4HANA. It reads from 1 data source (finsc_001a_rep) and exposes 6 fields with key fields CompanyCode, CurrencyRole. It has 3 associations to related views. Part of development package FINS_FIS_FICO.
SAP Help Documentation
| Category | CDS Views for Master Data |
|---|---|
| Data Category | Dimension |
This CDS view is designed to provide a structured representation of the currency roles associated with company codes. It serves as a master data view that links company codes to their respective currency roles and currencies, facilitating analytical and reporting tasks related to financial data management. This CDS view provides the data to answer the following business questions: What are the currency roles assigned to each company code within the organization? Which currencies are associated with specific company codes and their roles? How can we extract and analyze currency role data for company codes in financial reporting? What is the relationship between company codes and their currency roles in the context of financial operations? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view don't need any special authorization.
Structure
Important Fields Important fields in this view include the following: Field Name Description CURRENCYROLE Curr./Val. Type COMPANYCODE Company Code CURRENCY Currency
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Accounting and Financial Close |
| Application Component | FI-GL-IS-2CL |
| Capabilities | Data Source for Data Extraction,Analytical Dimension,Association Target for Defining CDS Entities,Data Source in SQL Select,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view is designed to represent a hierarchical structure of company codes within an organization. It provides a parent-child hierarchy of company codes, allowing users to understand the relationships and structure of company codes in a hierarchical format. This view is particularly useful for analytical purposes, enabling users to analyze data based on the hierarchical organization of company codes.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is the hierarchical structure of company codes within the organization?</p></li> <li><p>How are company codes related to each other in terms of parent-child relationships?</p></li> <li><p>What are the validity periods for each node in the company code hierarchy?</p></li> <li><p>How can I retrieve text descriptions and additional details for each company code hierarchy node?</p></li> <li><p>How can I identify the sequence and level of each node within the company code hierarchy?</p></li> <li><p>What are the node types and values associated with each hierarchy node?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| finsc_001a_rep | comp_finsc_001a | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _Currency | comp_finsc_001a.waers = _Currency.Currency |
| [0..1] | I_CompanyCode | _CompanyCode | comp_finsc_001a.bukrs = _CompanyCode.CompanyCode |
| [0..1] | I_CurrencyRole | _CurrencyRole | comp_finsc_001a.curtype = _CurrencyRole.CurrencyRole |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.entityBuffer.definitionAllowed | false | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Analytics.technicalName | IFICCCUR | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Currency Role of Company Code | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.representativeKey | CurrencyRole | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.sapObjectNodeType.name | CompanyCodeCurrencyRole | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | finsc_001a_rep | bukrs | Company Code |
| KEY | CurrencyRole | finsc_001a_rep | curtype | Currency Type |
| Currency | finsc_001a_rep | waers | Transaction Currency | |
| _CompanyCode | _CompanyCode | |||
| _CurrencyRole | _CurrencyRole | |||
| _Currency | _Currency |
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_Companycodecurrencyrole.
-- 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_Companycodecurrencyrole AS
SELECT
comp_finsc_001a.bukrs AS CompanyCode,
comp_finsc_001a.curtype AS CurrencyRole,
comp_finsc_001a.waers AS Currency
FROM finsc_001a_rep AS comp_finsc_001a
LEFT OUTER JOIN I_Currency AS _Currency ON comp_finsc_001a.waers = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON comp_finsc_001a.bukrs = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CurrencyRole AS _CurrencyRole ON comp_finsc_001a.curtype = _CurrencyRole.CurrencyRole -- 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