I_Companycodecurrencyrole

DDL: I_COMPANYCODECURRENCYROLE Type: view_entity BASIC Package: FINS_FIS_FICO

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

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
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

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-IS-2CL
CapabilitiesData 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
PackageAccounting 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

Data Sources (1)

SourceAliasJoin Type
finsc_001a_rep comp_finsc_001a from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;