I_TrsyBookValManualValuation

DDL: I_TRSYBOOKVALMANUALVALUATION Type: view_entity BASIC

Trsy Book Values for Manual Valuation

I_TrsyBookValManualValuation (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

TrsyBookValuesManualValuation · Financial Operations

I_TrsyBookValManualValuation is a Basic CDS View that provides data about "Trsy Book Values for Manual Valuation" in SAP S/4HANA. It reads from 1 data source (tlvt_manual_val) and exposes 32 fields with key fields KeyDate, TreasuryValuationArea, TreasuryValuationClass, CompanyCode, SecurityAccount. It has 6 associations to related views.

SAP Help Documentation

CategoryCDS Views for Transactional Data
Purpose
This CDS view allows users to read book values for treasury positions for a specific key date for the manual valuation function. It displays the contents of the table TLVT_MANUAL_VAL . 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 must have the following authorization objects assigned: T_POS_ASS (Treasury Position Assignment)

Structure
Important Fields Important fields in this view include the following: Field Name Description VALUATIONCURRENCY Valuation Currency COSTEXCLDBOOKVALAMTINVALNCRCY NBV Excl.Costs in VC POSITIONCURRENCY Position Currency COSTEXCLDBOOKVALUEAMTINPOSCRCY NBV Excl.Costs in PC TRSYPOSCUSTOMDIFFNTNTERM5 Custom Diff. Term 5 TRSYPOSCUSTOMDIFFNTNTERM4 Custom Diff. Term 4 TRSYPOSCUSTOMDIFFNTNTERM3 Custom Diff. Term 3 TRSYPOSCUSTOMDIFFNTNTERM2 Custom Diff. Term 2 TRSYPOSCUSTOMDIFFNTNTERM1 Custom Diff. Term 1 FUNCTIONALAREA Functional Area PROFITCENTER Profit Center COSTCENTER Cost Center WBSELEMENTINTERNALID WBS Internal ID GRANTID Grant FUND Fund FINANCIALTRANSACTION Transaction TREASURYPOSITIONLOTUUID Lot SECURITYACCOUNTGROUP Sec. Account Group PORTFOLIO Portfolio SECURITYCLASS Security Class SECURITYACCOUNT Securities Account COMPANYCODE Company Code TREASURYVALUATIONCLASS Valuation Class TREASURYVALUATIONAREA Valuation Area KEYDATE Key Date

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentFIN-FSCM-TRM-TM-AC
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
tlvt_manual_val tlvt_manual_val from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_FinancialTransaction _FinancialTransaction $projection.FinancialTransaction = _FinancialTransaction.FinancialTransaction and $projection.CompanyCode = _FinancialTransaction.CompanyCode
[0..1] I_SecurityClassBasic _SecurityClass $projection.SecurityClass = _SecurityClass.SecurityClass
[0..1] I_SecurityAccount _SecurityAccount $projection.SecurityAccount = _SecurityAccount.SecurityAccount and $projection.CompanyCode = _SecurityAccount.CompanyCode
[0..1] I_Currency _PositionCurrency $projection.PositionCurrency = _PositionCurrency.Currency
[0..1] I_Currency _ValuationCurrency $projection.PositionCurrency = _ValuationCurrency.Currency

Annotations (9)

NameValueLevelField
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.sapObjectNodeType.name TrsyBookValuesManualValuation view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Trsy Book Values for Manual Valuation view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY KeyDate key_date Key Date for Valuation
KEY TreasuryValuationArea valuation_area Treasury Valuation Area
KEY TreasuryValuationClass Valuation Class
KEY CompanyCode company_code Company Code
KEY SecurityAccount Security Account
KEY SecurityClass Security Class
KEY LoanContract Loan Contract Number
KEY Portfolio portfolio Portfolio
KEY SecurityAccountGroup Securities Account Group
KEY TreasuryPositionLotUUID lot_id Identifier of the Lot
KEY FinancialTransaction deal_number Financial Transaction
KEY Fund fund Sender Fund
KEY GrantID grant_nbr Receiver Grant
KEY WBSElementInternalID WBS Internal ID
KEY CostCenter cost_center Posted Cost Center
KEY ProfitCenter profit_center Profit Center
KEY FunctionalArea functional_area Functional Area
KEY TrsyPosCustomDiffntnTerm1 Custom Differentiation Term 1 (Value)
KEY TrsyPosCustomDiffntnTerm2 Custom Differentiation Term 2 (Value)
KEY TrsyPosCustomDiffntnTerm3 Custom Differentiation Term 3 (Value)
KEY TrsyPosCustomDiffntnTerm4 Custom Differentiation Term 4 (Value)
KEY TrsyPosCustomDiffntnTerm5 Custom Differentiation Term 5 (Value)
CostExcldBookValueAmtInPosCrcy obv_ec_pc New Book Value Excluding Costs in Position Currency
PositionCurrency position_curr Transaction Currency
CostExcldBookValAmtInValnCrcy obv_ec_vc New Book Value Excluding Costs in Valuation Currency
ValuationCurrency valuation_curr Valuation Currency
_SecurityClass _SecurityClass
_CompanyCode _CompanyCode
_SecurityAccount _SecurityAccount
_FinancialTransaction _FinancialTransaction
_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_TrsyBookValManualValuation.
-- 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_TrsyBookValManualValuation AS
SELECT
  key_date AS KeyDate,
  valuation_area AS TreasuryValuationArea,
  cast( valuation_class as ftr_gen_valuation_class preserving type ) AS TreasuryValuationClass,
  company_code AS CompanyCode,
  cast(security_account as ftr_gen_security_account preserving type ) AS SecurityAccount,
  cast(security_id as ftr_gen_security_class preserving type ) AS SecurityClass,
  cast(loans_contract as ftr_gen_loan_contract preserving type ) AS LoanContract,
  Portfolio,
  cast( account_group as ftr_gen_sec_account_group preserving type ) AS SecurityAccountGroup,
  lot_id AS TreasuryPositionLotUUID,
  deal_number AS FinancialTransaction,
  Fund,
  grant_nbr AS GrantID,
  cast(wbs_element as ps_s4_pspnr preserving type) AS WBSElementInternalID,
  cost_center AS CostCenter,
  profit_center AS ProfitCenter,
  functional_area AS FunctionalArea,
  cast(custom_diff_term_1 as tpm_cust_diff_term_1_value preserving type ) AS TrsyPosCustomDiffntnTerm1,
  cast(custom_diff_term_2 as tpm_cust_diff_term_2_value preserving type ) AS TrsyPosCustomDiffntnTerm2,
  cast( custom_diff_term_3 as tpm_cust_diff_term_3_value preserving type ) AS TrsyPosCustomDiffntnTerm3,
  cast(custom_diff_term_4 as tpm_cust_diff_term_4_value preserving type ) AS TrsyPosCustomDiffntnTerm4,
  cast(custom_diff_term_5 as tpm_cust_diff_term_5_value preserving type ) AS TrsyPosCustomDiffntnTerm5,
  obv_ec_pc AS CostExcldBookValueAmtInPosCrcy,
  position_curr AS PositionCurrency,
  obv_ec_vc AS CostExcldBookValAmtInValnCrcy,
  valuation_curr AS ValuationCurrency
FROM tlvt_manual_val
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_FinancialTransaction AS _FinancialTransaction ON FinancialTransaction = _FinancialTransaction.FinancialTransaction AND CompanyCode = _FinancialTransaction.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_SecurityClassBasic AS _SecurityClass ON SecurityClass = _SecurityClass.SecurityClass  -- association [0..1]
LEFT OUTER JOIN I_SecurityAccount AS _SecurityAccount ON SecurityAccount = _SecurityAccount.SecurityAccount AND CompanyCode = _SecurityAccount.CompanyCode  -- 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 PositionCurrency = _ValuationCurrency.Currency  -- association [0..1]
;