I_TrmCorrespondence
TRM Correspondence Application Data
I_TrmCorrespondence is a Basic CDS View that provides data about "TRM Correspondence Application Data" in SAP S/4HANA. It reads from 1 data source (tcort_codmd) and exposes 36 fields with key fields TreasuryCorrespncObjectUUID, CompanyCode, FinancialTransaction, CorrespondenceRecipientType, CorrespondenceRecipient. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tcort_codmd | deal | left_outer |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FinancialInstrProdTypeText | _FinancialInstrProdTypeText | $projection.FinancialInstrumentProductType = _FinancialInstrProdTypeText.FinancialInstrumentProductType and _FinancialInstrProdTypeText.Language = $session.system_language |
| [0..1] | I_FinancialInstrTransTypeText | _FinancialInstrTransTypeText | $projection.FinancialInstrumentProductType = _FinancialInstrTransTypeText.FinancialInstrumentProductType and $projection.FinancialInstrTransactionType = _FinancialInstrTransTypeText.FinancialInstrTransactionType and _FinancialInstrTransTypeText.Language = $session.system_language |
| [0..1] | dd07t | _TreasuryCorrespncOperText | $projection.TreasuryCorrespncOperation = _TreasuryCorrespncOperText.domvalue_l and _TreasuryCorrespncOperText.domname = 'FTR_OPER' and _TreasuryCorrespncOperText.as4local = 'A' and _TreasuryCorrespncOperText.ddlanguage = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ITRMCORRESPNC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | TRM Correspondence Application Data | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | TreasuryCorrespncObjectUUID | co | co_uuid | Correspondence Id |
| KEY | CompanyCode | co | company_code | Company Code |
| KEY | FinancialTransaction | co | dealnumber | |
| KEY | CorrespondenceRecipientType | co | recipient_type | Forms Recipient Type: Business partner or Govt agent |
| KEY | CorrespondenceRecipient | co | recipient | To |
| KEY | CorrespondenceChannel | |||
| KEY | CorrespncMessageFileFormat | co | message_format | |
| CorrespondenceObject | co | co_key | ||
| BusinessPartner | co | partnr | Single-Character Flag | |
| TreasuryCorrespondenceProfile | co | profile | WBS sched. prof | |
| TreasuryCorrespondenceClass | co | function | Unit Func. | |
| TreasuryCorrespondenceBPGroup | co | bpgroup | Grouping | |
| Country | co | corr_country | ||
| Language | co | corr_language | ||
| FinancialInstrumentActivity | co | activity | VAT Activity | |
| FinancialInstrActivityCategory | co | activitycat | ||
| TreasuryCorrespncOperation | co | operation | Transaction | |
| TreasuryCorrespncOpName | ||||
| TreasuryContractType | tcort_codmd | contract_type | Document Type | |
| FinancialInstrProductCategory | tcort_codmd | product_cat | Prod. Category | |
| FinancialInstrumentProductType | tcort_codmd | product_type | Product Type | |
| FinancialInstrProdTypeName | _FinancialInstrProdTypeText | FinancialInstrProdTypeName | ||
| FinInstrTransactionCategory | tcort_codmd | transaction_cat | Transaction Cat | |
| FinancialInstrTransactionType | tcort_codmd | transaction_type | Transactn Type | |
| FinancialInstrTransTypeName | _FinancialInstrTransTypeText | FinancialInstrTransTypeName | ||
| Portfolio | tcort_codmd | portfolio | Portfolio | |
| FinancialInstrValuationClass | tcort_codmd | valuation_class | Valuation Class | |
| FinancialInstrumentReference | tcort_codmd | internal_refnce | Internal Ref. | |
| FinancialInstrumentAssignment | tcort_codmd | assignment | Assignment | |
| Trader | tcort_codmd | trader | Trader | |
| FinancialInstrContactPerson | tcort_codmd | contact_person | Navigate to Contact | |
| FinancialInstrumentGuarantor | tcort_codmd | guarantor | Guarantor Ctr. | |
| FinInstrExternalReference | tcort_codmd | external_refnce | External Ref. | |
| CorrespondenceDeliveryDate | ||||
| SecurityAccount | tcort_codmd | security_account | Securities Acct | |
| SecurityClass | tcort_codmd | security_id | Security Class |
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_TrmCorrespondence.
-- 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: ITRMCORRESPNC
CREATE VIEW I_TrmCorrespondence AS
SELECT
co.co_uuid AS TreasuryCorrespncObjectUUID,
co.company_code AS CompanyCode,
co.dealnumber AS FinancialTransaction,
co.recipient_type AS CorrespondenceRecipientType,
co.recipient AS CorrespondenceRecipient,
cast(co.channel as ftr_cochannel) AS CorrespondenceChannel,
co.message_format AS CorrespncMessageFileFormat,
co.co_key AS CorrespondenceObject,
co.partnr AS BusinessPartner,
co.profile AS TreasuryCorrespondenceProfile,
co.function AS TreasuryCorrespondenceClass,
co.bpgroup AS TreasuryCorrespondenceBPGroup,
co.corr_country AS Country,
co.corr_language AS Language,
co.activity AS FinancialInstrumentActivity,
co.activitycat AS FinancialInstrActivityCategory,
co.operation AS TreasuryCorrespncOperation,
cast(_TreasuryCorrespncOperText.ddtext as ftr_cooperation_text) AS TreasuryCorrespncOpName,
deal.contract_type AS TreasuryContractType,
deal.product_cat AS FinancialInstrProductCategory,
deal.product_type AS FinancialInstrumentProductType,
_FinancialInstrProdTypeText.FinancialInstrProdTypeName AS FinancialInstrProdTypeName,
deal.transaction_cat AS FinInstrTransactionCategory,
deal.transaction_type AS FinancialInstrTransactionType,
_FinancialInstrTransTypeText.FinancialInstrTransTypeName AS FinancialInstrTransTypeName,
deal.portfolio AS Portfolio,
deal.valuation_class AS FinancialInstrValuationClass,
deal.internal_refnce AS FinancialInstrumentReference,
deal.assignment AS FinancialInstrumentAssignment,
deal.trader AS Trader,
deal.contact_person AS FinancialInstrContactPerson,
deal.guarantor AS FinancialInstrumentGuarantor,
deal.external_refnce AS FinInstrExternalReference,
$session.system_date AS CorrespondenceDeliveryDate,
deal.security_account AS SecurityAccount,
deal.security_id AS SecurityClass
LEFT OUTER JOIN tcort_codmd AS deal ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FinancialInstrProdTypeText AS _FinancialInstrProdTypeText ON FinancialInstrumentProductType = _FinancialInstrProdTypeText.FinancialInstrumentProductType AND _FinancialInstrProdTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_FinancialInstrTransTypeText AS _FinancialInstrTransTypeText ON FinancialInstrumentProductType = _FinancialInstrTransTypeText.FinancialInstrumentProductType AND FinancialInstrTransactionType = _FinancialInstrTransTypeText.FinancialInstrTransactionType AND _FinancialInstrTransTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN dd07t AS _TreasuryCorrespncOperText ON TreasuryCorrespncOperation = _TreasuryCorrespncOperText.domvalue_l AND _TreasuryCorrespncOperText.domname = 'FTR_OPER' AND _TreasuryCorrespncOperText.as4local = 'A' AND _TreasuryCorrespncOperText.ddlanguage = $session.system_language -- 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