I_LedgerCompanyCodeCrcyRolesVH

DDL: I_LEDGERCOMPANYCODECRCYROLESVH Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
P_LedgerCompanyCodeCrcyRoles P_LedgerCompanyCodeCrcyRoles from

Associations (4)

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

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

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