I_TrsySmltdValnPosValues

DDL: I_TRSYSMLTDVALNPOSVALUES SQL: ITRSYSVPV Type: view BASIC

Treasury Simulated Valuation: Pos Values

I_TrsySmltdValnPosValues is a Basic CDS View that provides data about "Treasury Simulated Valuation: Pos Values" in SAP S/4HANA. It reads from 1 data source (tsvt_key_figures) and exposes 18 fields with key field TrsyPosSmltdValnPosValUUID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tsvt_key_figures tsvt_key_figures from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_TrsyPosSimulatedValuation _TrsyPosSimulatedValuation $projection.TrsyPosSmltdValuationUUID = _TrsyPosSimulatedValuation.TrsyPosSmltdValuationUUID
[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 (15)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.sqlViewName ITRSYSVPV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey TrsyPosSmltdValnPosValUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
EndUserText.label Treasury Simulated Valuation: Pos Values view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY TrsyPosSmltdValnPosValUUID Lot
TrsyPosSmltdValuationUUID DB Object ID
TrsySubPosition GUID
TrsyLdgrPosComp pos_comp Position comp.
TrsySmltdPerEndClsKeyFigCat key_figure_category Key Figure Category
QuantityInPieces Units (Short)
NominalCurrency Nominal Crcy
NominalAmountInNominalCurrency nominal_amt Nominal Amount
OriglNominalAmtInNominalCrcy nominal_org_amt Original Nom.Amt PC
PositionCurrency Transaction Currency
AmountInPositionCurrency Transact.Crcy Amount
IndexCleanAmountInPositionCrcy Index-Clean
ValuationCurrency Valuation Currency
AmountInValuationCurrency Amount ValnCrcy
_TrsyPosSimulatedValuation _TrsyPosSimulatedValuation
_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_TrsySmltdValnPosValues.
-- 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: ITRSYSVPV

CREATE VIEW I_TrsySmltdValnPosValues AS
SELECT
  cast (os_guid as ftr_gen_sim_val_pos_val_uuid preserving type) AS TrsyPosSmltdValnPosValUUID,
  cast (simulation_oid as ftr_gen_sim_val_uuid preserving type) AS TrsyPosSmltdValuationUUID,
  cast (subposition_oid as ftr_gen_subpos_uuid preserving type) AS TrsySubPosition,
  pos_comp AS TrsyLdgrPosComp,
  key_figure_category AS TrsySmltdPerEndClsKeyFigCat,
  cast (units as ftr_gen_quantity_in_units_l) AS QuantityInPieces,
  cast (nominal_curr as ftr_gen_nominal_currency preserving type) AS NominalCurrency,
  nominal_amt AS NominalAmountInNominalCurrency,
  nominal_org_amt AS OriglNominalAmtInNominalCrcy,
  cast (position_curr as ftr_gen_position_crcy preserving type) AS PositionCurrency,
  cast (position_amt as ftr_gen_amount_position_crcy preserving type) AS AmountInPositionCurrency,
  cast (posamt_idx_clean as ftr_gen_idxcln_amnt_pstn_crcy preserving type) AS IndexCleanAmountInPositionCrcy,
  cast (valuation_curr as ftr_gen_valuation_currency preserving type) AS ValuationCurrency,
  cast (valuation_amt as ftr_gen_amount_valuation_crcy preserving type) AS AmountInValuationCurrency
FROM tsvt_key_figures
LEFT OUTER JOIN I_TrsyPosSimulatedValuation AS _TrsyPosSimulatedValuation ON TrsyPosSmltdValuationUUID = _TrsyPosSimulatedValuation.TrsyPosSmltdValuationUUID  -- association [1..1]
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]
;