P_IRM_Financial_Transaction
P_IRM_Financial_Transaction is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (vtbfha, vtbfhazu) and exposes 16 fields with key fields CompanyCode, FinancialTransaction, FinancialInstrumentActivity. It has 3 associations to related views.
Data Sources (2)
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Currency | _Currency | $projection.TransactionCurrency = _Currency.Currency |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_SecurityAccount | _SecurityAccount | $projection.CompanyCode = _SecurityAccount.CompanyCode and $projection.SecurityAccount = _SecurityAccount.SecurityAccount |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFINTRANS | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | vtbfha | bukrs | Value |
| KEY | FinancialTransaction | vtbfha | rfha | Transaction |
| KEY | FinancialInstrumentActivity | vtbfha | rfhazul | Active activity |
| TreasuryContractType | vtbfha | rantyp | Contract Type | |
| FinancialInstrProductCategory | ||||
| FinancialInstrumentProductType | vtbfha | sgsart | Product Type | |
| FinancialInstrTransactionType | ||||
| Counterparty | ||||
| DifferentiationPortfolio | vtbfha | rportb | Portfolio | |
| TransactionCurrency | vtbfha | wgschft | Trans. Crcy | |
| SecurityAccount | vtbfha | rldepo | Securities Acct | |
| TermStartDate | vtbfha | dblfz | Term Start | |
| TermEndDate | vtbfhazu | delfz | Term End | |
| _Currency | _Currency | |||
| _CompanyCode | _CompanyCode | |||
| _SecurityAccount | _SecurityAccount |
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 P_IRM_Financial_Transaction.
-- 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: PFINTRANS
CREATE VIEW P_IRM_Financial_Transaction AS
SELECT
FinancialTransaction.bukrs AS CompanyCode,
FinancialTransaction.rfha AS FinancialTransaction,
FinancialTransaction.rfhazul AS FinancialInstrumentActivity,
FinancialTransaction.rantyp AS TreasuryContractType,
cast(FinancialTransaction.sanlf as ftr_gen_fin_instr_prod_categ) AS FinancialInstrProductCategory,
FinancialTransaction.sgsart AS FinancialInstrumentProductType,
cast(FinancialTransaction.sfhaart as ftr_gen_transaction_type) AS FinancialInstrTransactionType,
cast(FinancialTransaction.kontrh as rkontrah_new) AS Counterparty,
FinancialTransaction.rportb AS DifferentiationPortfolio,
FinancialTransaction.wgschft AS TransactionCurrency,
FinancialTransaction.rldepo AS SecurityAccount,
FinancialTransaction.dblfz AS TermStartDate,
TransactionHistory.delfz AS TermEndDate
FROM vtbfha AS FinancialTransaction
INNER JOIN vtbfhazu AS TransactionHistory ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_SecurityAccount AS _SecurityAccount ON CompanyCode = _SecurityAccount.CompanyCode AND SecurityAccount = _SecurityAccount.SecurityAccount -- 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