I_TreasuryPaymentRequest
Treasury Payment Request
I_TreasuryPaymentRequest is a Basic CDS View that provides data about "Treasury Payment Request" in SAP S/4HANA. It reads from 1 data source (trprt_payments) and exposes 44 fields. It has 5 associations to related views. Part of development package FTR_GENERAL_CORE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| trprt_payments | payment | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Housebank | _HouseBank | payment.company_code = _HouseBank.CompanyCode and payment.house_bank = _HouseBank.HouseBank |
| [0..1] | I_HouseBankAccountText | _HouseBankAccountText | payment.company_code = _HouseBankAccountText.CompanyCode and payment.house_bank = _HouseBankAccountText.HouseBank and payment.house_bank_acc = _HouseBankAccountText.HouseBankAccount and _HouseBankAccountText.Language = $session.system_language |
| [0..1] | I_Supplier | _Supplier | payment.lifnr = _Supplier.Supplier |
| [0..1] | I_Customer | _Customer | payment.kunnr = _Customer.Customer |
| [0..1] | I_TrsyAcctItemPositionContext | _TrsyAcctItemPosContext | payment.position_oid = _TrsyAcctItemPosContext.TrsyPositionContextUUID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Treasury Payment Request | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.authorizationCheck | #MANDATORY | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PaymentCompanyCode | trprt_payments | company_code | Company Code | |
| PaymentRequest | ||||
| PaytReqOriglReferenceDocument | ||||
| TreasuryBusinessTransaction | ||||
| TreasuryValuationArea | trprt_payments | valuation_area | Valuation Area | |
| TreasuryTransactionFlow | trprt_payments | flow_number | Flow Number | |
| AccountingDocument | trprt_payments | belnr | SD Document | |
| FiscalYear | trprt_payments | posting_year | Year in which the Impariment is posted for column 16 | |
| PaymentCurrency | trprt_payments | payment_curr | Payment Crcy | |
| AmountInPaymentCurrency | trprt_payments | payment_amt | Payout Amount | |
| PaymentDate | trprt_payments | payment_date | Pymt Date | |
| TreasuryIndividualPayment | trprt_payments | sprsng | Individual pmnt | |
| TrsyPaytGroupingSameDrctnIsRqd | trprt_payments | scspay | Same Direction | |
| TreasuryPaymentFlowDirection | trprt_payments | sign | Type of SIGN component in row type of a Ranges type | |
| TreasuryPaymentRequestGrouping | ||||
| TrsyPaytRequestGroupingName | ||||
| PaymentRequestPaymentGroup | ||||
| HouseBank | trprt_payments | house_bank | House Bank | |
| HouseBankAccount | trprt_payments | house_bank_acc | House Bank Acct | |
| PayerPayee | trprt_payments | rpzahl | Payer/Payee | |
| PayerPayeeFullName | ||||
| BPBankAccountInternalID | trprt_payments | rpbank | Partner Bank | |
| ConsideredPaymentMethods | trprt_payments | zwels | Pymt Meth. | |
| PaytReqAdditionalInstructions | ||||
| PaytReqAddlInstructionsName | ||||
| Customer | trprt_payments | kunnr | Stock customer | |
| Supplier | trprt_payments | lifnr | Vendor no. | |
| GLAccount | trprt_payments | gl_account | G/L Acct | |
| BankClearingGLAccount | trprt_payments | clearing_acc | Bank G/L account | |
| ReverseDocumentPostingDate | ||||
| TrsyPaytRequestReleaseStatus | ||||
| TrsyPaytRequestRelStatusName | ||||
| TreasuryPaymentRequestStatus | ||||
| TrsyPaymentRequestStatusName | ||||
| JournalEntryItemText | trprt_payments | sgtxt | Text | |
| TrsyPaytReqItemAdditionalText | ||||
| DataExchangeInstructionKey | trprt_payments | dtaws | Instruction Key | |
| PaymentReason | trprt_payments | payment_reason | Reason Code | |
| TrsyPositionContextUUID | trprt_payments | position_oid | DB Object ID | |
| _HouseBank | _HouseBank | |||
| _HouseBankAccountText | _HouseBankAccountText | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _TrsyAcctItemPosContext | _TrsyAcctItemPosContext |
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_TreasuryPaymentRequest.
-- 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_TreasuryPaymentRequest AS
SELECT
payment.company_code AS PaymentCompanyCode,
cast(payment.prq_keyno as ftr_gen_payment_request) AS PaymentRequest,
cast(payment.payment_awkey as ftr_gen_payment_req_ref_key) AS PaytReqOriglReferenceDocument,
cast(payment.bustransid as ftr_gen_business_transaction) AS TreasuryBusinessTransaction,
payment.valuation_area AS TreasuryValuationArea,
payment.flow_number AS TreasuryTransactionFlow,
payment.belnr AS AccountingDocument,
payment.posting_year AS FiscalYear,
payment.payment_curr AS PaymentCurrency,
payment.payment_amt AS AmountInPaymentCurrency,
payment.payment_date AS PaymentDate,
payment.sprsng AS TreasuryIndividualPayment,
payment.scspay AS TrsyPaytGroupingSameDrctnIsRqd,
payment.sign AS TreasuryPaymentFlowDirection,
cast(payment.sprgrd as ftr_gen_payment_grouping) AS TreasuryPaymentRequestGrouping,
cast(_PaymentGroupingDefinitionText.ddtext as ftr_gen_payment_grouping_name) AS TrsyPaytRequestGroupingName,
cast(payment.paygr as ftr_gen_payreq_group_field) AS PaymentRequestPaymentGroup,
payment.house_bank AS HouseBank,
payment.house_bank_acc AS HouseBankAccount,
payment.rpzahl AS PayerPayee,
cast (_PayerPayee.PayerPayeeFullName as ftr_gen_payerpayee_full_name) AS PayerPayeeFullName,
payment.rpbank AS BPBankAccountInternalID,
payment.zwels AS ConsideredPaymentMethods,
cast(payment.rpcode as ftr_gen_pymnt_req_add_instruct) AS PaytReqAdditionalInstructions,
cast(payment.rp_text as ftr_gen_pymnt_req_add_ins_name) AS PaytReqAddlInstructionsName,
payment.kunnr AS Customer,
payment.lifnr AS Supplier,
payment.gl_account AS GLAccount,
payment.clearing_acc AS BankClearingGLAccount,
cast(payment.reversal_date as ftr_gen_reversal_date) AS ReverseDocumentPostingDate,
cast(payment.release_state as ftr_gen_payment_req_rel_status) AS TrsyPaytRequestReleaseStatus,
cast(_PaymentRequestRelStatusText.ddtext as ftr_gen_pymnt_req_rel_st_name) AS TrsyPaytRequestRelStatusName,
cast(payment.payment_state as ftr_gen_pymnt_req_status) AS TreasuryPaymentRequestStatus,
cast(_PaymentRequestStatusText.ddtext as ftr_gen_pymnt_req_status_name) AS TrsyPaymentRequestStatusName,
payment.sgtxt AS JournalEntryItemText,
cast(payment.swift_text as ftr_gen_payrq_item_add_text ) AS TrsyPaytReqItemAdditionalText,
payment.dtaws AS DataExchangeInstructionKey,
payment.payment_reason AS PaymentReason,
payment.position_oid AS TrsyPositionContextUUID
FROM trprt_payments AS payment
LEFT OUTER JOIN I_Housebank AS _HouseBank ON payment.company_code = _HouseBank.CompanyCode AND payment.house_bank = _HouseBank.HouseBank -- association [0..1]
LEFT OUTER JOIN I_HouseBankAccountText AS _HouseBankAccountText ON payment.company_code = _HouseBankAccountText.CompanyCode AND payment.house_bank = _HouseBankAccountText.HouseBank AND payment.house_bank_acc = _HouseBankAccountText.HouseBankAccount AND _HouseBankAccountText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON payment.lifnr = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON payment.kunnr = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_TrsyAcctItemPositionContext AS _TrsyAcctItemPosContext ON payment.position_oid = _TrsyAcctItemPosContext.TrsyPositionContextUUID -- 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