P_LedgerValuationCrcyRole

DDL: P_LEDGERVALUATIONCRCYROLE SQL: PLDGRVALNCURROLE Type: view BASIC

P_LedgerValuationCrcyRole is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (finsc_curtype) and exposes 7 fields with key fields curtype, Ledger, ext_curtypeendasCurrencyRole, valutyp. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
finsc_curtype it from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Ledger _Ledger $projection.Ledger = _Ledger.Ledger

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PLDGRVALNCURROLE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY curtype curtype Currency Type
KEY Ledger finsc_curtype rldnr Ledger (Compat.)
KEY ext_curtypeendasCurrencyRole
KEY valutyp valutyp Valuation Views
ext_curtype finsc_curtype ext_curtype Crcy.Type/Val.View
valusubtyp valusubtyp Subtype Val
_Ledger _Ledger

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 P_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: PLDGRVALNCURROLE

CREATE VIEW P_LedgerValuationCrcyRole AS
SELECT
  curtype,
  it.rldnr AS Ledger,
  case it.ext_curtype when '' then curtype else it.ext_curtype end as CurrencyRole AS ext_curtypeendasCurrencyRole,
  valutyp,
  it.ext_curtype AS ext_curtype,
  valusubtyp
FROM finsc_curtype AS it
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger  -- association [0..1]
;