I_TreasuryLedgerTransaction
Treasury Ledger Transaction
I_TreasuryLedgerTransaction (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
TreasuryLedgerTransaction · Financial Operations
I_TreasuryLedgerTransaction is a Basic CDS View that provides data about "Treasury Ledger Transaction" in SAP S/4HANA. It reads from 1 data source (trlt_transaction) and exposes 16 fields with key field TreasuryLedgerTransaction. It has 1 association to related views.
SAP Help Documentation
| Category | CDS Views for Transactional Data |
|---|
This CDS view retrieves all treasury ledger transactions in the system. A treasury ledger transaction is a business transaction in the treasury ledger. A business transaction is a business event that implies a change in quantity or value. In the context of the treasury ledger a business transaction carries treasury ledger specific information, for example the valuation area. The valuation area usually represents an accounting principle. This CDS view provides the data to answer the following business questions: Which treasury ledger transactions exist in the system? What is the business transaction category of a treasury ledger transaction? What is the original business transaction? What is the status of a treasury ledger transaction? What is the posting date of a treasury ledger transaction? 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 .
Structure
Important Fields Important fields in this view include the following: Field Name Is Key Data Element Label Comment TreasuryLedgerTransaction X FTR_GEN_TRL_TRANS TRL Transaction Treasury Ledger Transaction TreasuryBusinessTransCategory FTR_GEN_BUSINESS_TRANS_CATEG Business Trans. Cat. Business Transaction Category Examples: 4002 Purchase OTC transaction 4003 Sell OTC transaction 4004 Exercise/expiration/termination OTC transactions 4005 OTC Transaction: Change in Nominal Value 4006 OTC Transaction: Cash Settlement TreasuryPositionLedgerDate TPM_TRLDATE TRL Date Treasury Ledger Date TreasuryBusinessTransaction FTR_GEN_BUSINESS_TRANSACTION Business Transaction Identifier of the Distributor Business Transaction TrsyBusTransactionCreationDate TPM_BT_CREATE_DATE Creation Date Creation Date of the Operative Business Transaction TrsyBusTransactionCreationTime TPM_BT_CREATE_TIME Creation Time Creation Time of the Operative Business Transaction TrsyDerivedBusinessTransStatus FTR_GEN_TRLTRANSTATE TRL Trans.State Gives for all treasury ledger (business) transactions the status of the derived business transactions: If the treasury ledger transaction is a derived business transaction, the status gives the information whether the derived business transaction is up to date. If the treasury ledger transaction is an operational business transaction the status gives the information whether the related derived business transaction is up to date. TreasuryBusinessTransStatus FTR_GEN_TRL_BOOKINGSTATE Posting Status Posting Status Treasury Ledger Business Transaction TreasuryValuationArea TPM_VAL_AREA Valuation Area Treasury Valuation Area CompanyCode BUKRS Company Code Company Code OriglTrsyBusinessTransaction FTR_GEN_BUSTRANSID_ORIG Orig. Business Trans Original Business Transaction PostingDate TPM_FI_POSTING_DATE FI Posting Date Different FI Posting Date PostingReversalDate TPM_FI_REVERSAL_DATE FI Reversal Date Different FI Reversal Date TreasuryUserStatisticsUUID FTR_GEN_USER_DATA_GUID User Data (GUID) User Data (GUID)
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | FIN-FSCM-TRM |
| Capabilities | Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select |
| 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 |
|---|---|---|
| trlt_transaction | trlt_transaction | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_TrsyLedgerTransactionFlow | _TrlFlow | $projection.TreasuryLedgerTransaction = _TrlFlow.TreasuryLedgerTransaction |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.sapObjectNodeType.name | TreasuryLedgerTransaction | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Treasury Ledger Transaction | view | |
| VDM.viewType | #BASIC | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TreasuryLedgerTransaction | Treasury Ledger Transaction | ||
| TreasuryBusinessTransCategory | Business Transaction Category | |||
| TreasuryPositionLedgerDate | trldate | Treasury Ledger Date | ||
| TreasuryBusinessTransaction | Identifier of the Distributor Business Transaction | |||
| TrsyBusTransactionCreationDate | Creation Date of the Operative Business Transaction | |||
| TrsyBusTransactionCreationTime | Creation Time of the Operative Business Transaction | |||
| TrsyDerivedBusinessTransStatus | Status of Derived Business Transaction | |||
| TreasuryBusinessTransStatus | Posting Status Treasury Ledger Business Transaction | |||
| TreasuryValuationArea | valuation_area | Treasury Valuation Area | ||
| CompanyCode | Accounting Code | |||
| OriglTrsyBusinessTransaction | Original Business Transaction | |||
| PostingDate | fi_post_date | Different FI Posting Date | ||
| PostingReversalDate | fi_rev_date | Different FI Reversal Date | ||
| TrsyIntragroupTransacStatus | Intragroup Transaction Status | |||
| TreasuryUserStatisticsUUID | User Data (GUID) | |||
| _TrlFlow | _TrlFlow |
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_TreasuryLedgerTransaction.
-- 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_TreasuryLedgerTransaction AS
SELECT
cast(os_guid as ftr_gen_trl_trans preserving type ) AS TreasuryLedgerTransaction,
cast( bustranscat as ftr_gen_business_trans_categ preserving type ) AS TreasuryBusinessTransCategory,
trldate AS TreasuryPositionLedgerDate,
cast( bustransid as ftr_gen_business_transaction preserving type ) AS TreasuryBusinessTransaction,
cast( create_date as tpm_bt_create_date preserving type ) AS TrsyBusTransactionCreationDate,
cast( create_time as tpm_bt_create_time preserving type ) AS TrsyBusTransactionCreationTime,
cast( bustransstate as ftr_gen_trltranstate preserving type ) AS TrsyDerivedBusinessTransStatus,
cast( booking_state as ftr_gen_trl_bookingstate preserving type ) AS TreasuryBusinessTransStatus,
valuation_area AS TreasuryValuationArea,
cast( tr_acc_code as bukrs preserving type ) AS CompanyCode,
cast( refbustransid as ftr_gen_bustransid_orig preserving type ) AS OriglTrsyBusinessTransaction,
fi_post_date AS PostingDate,
fi_rev_date AS PostingReversalDate,
cast( igt_status as ftr_gen_igt_status preserving type ) AS TrsyIntragroupTransacStatus,
cast( user_data_oid as ftr_gen_user_data_guid preserving type ) AS TreasuryUserStatisticsUUID
FROM trlt_transaction
LEFT OUTER JOIN I_TrsyLedgerTransactionFlow AS _TrlFlow ON TreasuryLedgerTransaction = _TrlFlow.TreasuryLedgerTransaction -- association [0..*]
;
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