I_TrsyBookValManualValuation
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
| Category | CDS Views for Transactional Data |
|---|
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.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FIN-FSCM-TRM-TM-AC |
| Capabilities | Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction |
| Package | Financial Operations for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tlvt_manual_val | tlvt_manual_val | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA