R_FinancialTransactionNPV
Financial Transaction Net Present Value
R_FinancialTransactionNPV is a Basic CDS View that provides data about "Financial Transaction Net Present Value" in SAP S/4HANA. It reads from 1 data source (vtvbar) and exposes 30 fields with key fields CompanyCode, FinancialTransaction, FinancialTransactionNPVType, NetPresentValueValidityDate. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vtvbar | vtvbar | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_FinancialTransaction | _FinancialTransaction | $projection.CompanyCode = _FinancialTransaction.CompanyCode and $projection.FinancialTransaction = _FinancialTransaction.FinancialTransaction |
| [1..1] | I_FinancialTransactionNPVType | _NPVType | $projection.FinancialTransactionNPVType = _NPVType.FinancialTransactionNPVType |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_TreasuryContractType | _TreasuryContractType | $projection.TreasuryContractType = _TreasuryContractType.TreasuryContractType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Financial Transaction Net Present Value | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Value | |
| KEY | FinancialTransaction | rfha | Transaction | |
| KEY | FinancialTransactionNPVType | okuart | Price / NPV Type | |
| KEY | NetPresentValueValidityDate | databs | Effective From | |
| TreasuryContractType | rantyp | Contract Type | ||
| NetPresentValueAmountInNPVCrcy | NPV | |||
| NetPresentValueCurrency | wbarwert | Currency of NPV | ||
| IntrinsicValueAmountInNPVCrcy | Intr. Value DC | |||
| TimeValueAmountInNPVCrcy | Time Value DC | |||
| CleanPriceAmountInNPVCrcy | Clean Price DC | |||
| IncomingNPVAmountInNPVCrcy | NPV-Incoming Side | |||
| OutgoingNPVAmountInNPVCrcy | NPV-Outgoing Side | |||
| RiskFreeNPVAmountInNPVCrcy | Risk-Free NPV | |||
| CreditValueAdjmtAmtInNPVCrcy | cva | CVA | ||
| DebitValueAdjmtAmtInNPVCrcy | dva | DVA | ||
| CreditValueAdjustmentType | cva_type | CVA/DVA Type | ||
| CreatedByUser | create_name | Last Changed By | ||
| CreationTransactionCode | Transaction Code | |||
| LastChangedByUser | change_name | Last Changed By | ||
| ChangeTransactionCode | Transaction Code | |||
| FinTransNPVCreationDate | create_date | Time Stamp | ||
| FinTransNPVCreationTime | create_time | Time | ||
| FinTransNPVChangeDate | change_date | Time Stamp | ||
| FinTransNPVChangeTime | change_time | Time Stamp | ||
| FinTransNPVCalculationLogUUID | log_guid | Log GUID | ||
| FinancialTransactionNPVHash | check_sum | Hash Value | ||
| _FinancialTransaction | _FinancialTransaction | |||
| _NPVType | _NPVType | |||
| _CompanyCode | _CompanyCode | |||
| _TreasuryContractType | _TreasuryContractType |
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 R_FinancialTransactionNPV.
-- 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 R_FinancialTransactionNPV AS
SELECT
bukrs AS CompanyCode,
rfha AS FinancialTransaction,
okuart AS FinancialTransactionNPVType,
databs AS NetPresentValueValidityDate,
rantyp AS TreasuryContractType,
cast( barwert as ftr_npv ) AS NetPresentValueAmountInNPVCrcy,
wbarwert AS NetPresentValueCurrency,
cast( intrinsic_value as ftr_npv_intrinsic_value ) AS IntrinsicValueAmountInNPVCrcy,
cast( time_value as ftr_npv_time_value ) AS TimeValueAmountInNPVCrcy,
cast( clean_price as ftr_npv_clean_price ) AS CleanPriceAmountInNPVCrcy,
cast( barwert_in as ftr_npv_incoming ) AS IncomingNPVAmountInNPVCrcy,
cast( barwert_out as ftr_npv_outgoing ) AS OutgoingNPVAmountInNPVCrcy,
cast( barwert_rf as ftr_npv_riskfree ) AS RiskFreeNPVAmountInNPVCrcy,
cva AS CreditValueAdjmtAmtInNPVCrcy,
dva AS DebitValueAdjmtAmtInNPVCrcy,
cva_type AS CreditValueAdjustmentType,
create_name AS CreatedByUser,
cast( create_tcode as ftr_npv_creation_tcode preserving type ) AS CreationTransactionCode,
change_name AS LastChangedByUser,
cast( change_tcode as ftr_npv_change_tcode preserving type ) AS ChangeTransactionCode,
create_date AS FinTransNPVCreationDate,
create_time AS FinTransNPVCreationTime,
change_date AS FinTransNPVChangeDate,
change_time AS FinTransNPVChangeTime,
log_guid AS FinTransNPVCalculationLogUUID,
check_sum AS FinancialTransactionNPVHash
FROM vtvbar
LEFT OUTER JOIN I_FinancialTransaction AS _FinancialTransaction ON CompanyCode = _FinancialTransaction.CompanyCode AND FinancialTransaction = _FinancialTransaction.FinancialTransaction -- association [1..1]
LEFT OUTER JOIN I_FinancialTransactionNPVType AS _NPVType ON FinancialTransactionNPVType = _NPVType.FinancialTransactionNPVType -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_TreasuryContractType AS _TreasuryContractType ON TreasuryContractType = _TreasuryContractType.TreasuryContractType -- association [1..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