I_TreasuryLedgerFlow

DDL: I_TREASURYLEDGERFLOW SQL: ITRLTFLOW Type: view BASIC

Treasury Ledger Flow

I_TreasuryLedgerFlow is a Basic CDS View that provides data about "Treasury Ledger Flow" in SAP S/4HANA. It reads from 1 data source (trlt_flow) and exposes 34 fields with key fields TreasuryLedgerTransaction, TreasuryLedgerFlow. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
trlt_flow trlt_flow from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Currency _NominalCurrency $projection.NominalCurrency = _NominalCurrency.Currency
[0..1] I_Currency _PositionCurrency $projection.PositionCurrency = _PositionCurrency.Currency
[0..1] I_Currency _ValuationCurrency $projection.ValuationCurrency = _ValuationCurrency.Currency

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ITRLTFLOW view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Treasury Ledger Flow view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY TreasuryLedgerTransaction transaction_oid DB Object ID
KEY TreasuryLedgerFlow trlflownumber Flow Number
TreasuryTransactionFlow flownumber Flow Number
TrsyPosTransfSourceTargetCode sourcetarget_flg Source / Target
TreasuryPositionTransferGroup transfer_group Transfer group
TreasuryUpdateType flowtype Update Type
TreasuryPositionTransferFactor amount_factor Val.Coefficient
TrsyPosQuantityChangeCategory quant_cat Quan. Cat
TrsyPosAmountChangeCategory amount_cat Position Change Cat.
QuantityInPieces Units (Short)
NominalAmountInNominalCurrency nominal_amt Nominal Amount
OriglNominalAmtInNominalCrcy nominal_org_amt Original Nom.Amt PC
NominalCurrency nominal_curr Nominal Crcy
IndexCleanRpaytAmtInPosCrcy posamt_idx_clean Index-Clean
AmountInPositionCurrency position_amt Transact.Crcy Amount
PositionCurrency position_curr Transaction Currency
AmountInValuationCurrency valuation_amt Amount ValnCrcy
ValuationCurrency valuation_curr Valuation Currency
CalculationDate calculation_date Calculat. date
CalcDateIsAsEndDateInclusive calc_date_incl Inclusive Ind.
DueDate due_date Net Due Date
CalculationPeriodStartDate calc_begin CalculationFrom
CalculationPeriodEndDate calc_end Calculation To
EffectiveInterestRate eff_int_rate_u Used Effect.Int.Rate
EffctvIntrstRateRdmptnSched sched_eff_rate RS for EIR
NextEffectiveInterestRate eff_int_rate_n New Effect.Int.Rate
FixedRedemptionSchedule sched_fix Fixed RS
CalculationBasis bbasis Base Amount
TreasuryPosition position_oid DB Object ID
TreasuryPositionLedgerDate trldate TRL Date
TrsySubPosition subposition_oid GUID
_NominalCurrency _NominalCurrency
_PositionCurrency _PositionCurrency
_ValuationCurrency _ValuationCurrency

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_TreasuryLedgerFlow.
-- 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: ITRLTFLOW

CREATE VIEW I_TreasuryLedgerFlow AS
SELECT
  transaction_oid AS TreasuryLedgerTransaction,
  trlflownumber AS TreasuryLedgerFlow,
  flownumber AS TreasuryTransactionFlow,
  sourcetarget_flg AS TrsyPosTransfSourceTargetCode,
  transfer_group AS TreasuryPositionTransferGroup,
  flowtype AS TreasuryUpdateType,
  amount_factor AS TreasuryPositionTransferFactor,
  quant_cat AS TrsyPosQuantityChangeCategory,
  amount_cat AS TrsyPosAmountChangeCategory,
  cast(units as ftr_gen_quantity_in_units_l) AS QuantityInPieces,
  nominal_amt AS NominalAmountInNominalCurrency,
  nominal_org_amt AS OriglNominalAmtInNominalCrcy,
  nominal_curr AS NominalCurrency,
  posamt_idx_clean AS IndexCleanRpaytAmtInPosCrcy,
  position_amt AS AmountInPositionCurrency,
  position_curr AS PositionCurrency,
  valuation_amt AS AmountInValuationCurrency,
  valuation_curr AS ValuationCurrency,
  calculation_date AS CalculationDate,
  calc_date_incl AS CalcDateIsAsEndDateInclusive,
  due_date AS DueDate,
  calc_begin AS CalculationPeriodStartDate,
  calc_end AS CalculationPeriodEndDate,
  eff_int_rate_u AS EffectiveInterestRate,
  sched_eff_rate AS EffctvIntrstRateRdmptnSched,
  eff_int_rate_n AS NextEffectiveInterestRate,
  sched_fix AS FixedRedemptionSchedule,
  bbasis AS CalculationBasis,
  position_oid AS TreasuryPosition,
  trldate AS TreasuryPositionLedgerDate,
  subposition_oid AS TrsySubPosition
FROM trlt_flow
LEFT OUTER JOIN I_Currency AS _NominalCurrency ON NominalCurrency = _NominalCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PositionCurrency ON PositionCurrency = _PositionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ValuationCurrency ON ValuationCurrency = _ValuationCurrency.Currency  -- association [0..1]
;