R_PaymentAdviceTP
Payment Advice
R_PaymentAdviceTP is a Transactional CDS View that provides data about "Payment Advice" in SAP S/4HANA. It reads from 1 data source (I_PaymentAdvice) and exposes 37 fields with key fields CompanyCode, PaymentAdviceAccountType, PaymentAdviceAccount, PaymentAdvice. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PaymentAdvice | I_PaymentAdvice | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | R_PaymentAdviceItemTP | _PaymentAdviceItem | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Payment Advice | view | |
| ObjectModel.sapObjectNodeType.name | PaymentAdvice | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | PaymentAdviceAccountType | PaymentAdviceAccountType | Account Type | |
| KEY | PaymentAdviceAccount | PaymentAdviceAccount | Account | |
| KEY | PaymentAdvice | PaymentAdvice | Payment Advice Number | |
| PaymentAdviceAttachmentKey | ||||
| PaymentDocument | PaymentDocument | Payment Document Number | ||
| AccountByShipper | AccountByShipper | Payee's Account at the Customer | ||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| PaymentDate | PaymentDate | Payment Date | ||
| PaidAmountInPaytCurrency | PaidAmountInPaytCurrency | Payment Amount | ||
| CashDiscountAmountInPaytCrcy | CashDiscountAmountInPaytCrcy | Cash Discount Amount | ||
| PartnerBankCountry | PartnerBankCountry | Part. Ctry/Rgn | ||
| PartnerBankSWIFTCode | PartnerBankSWIFTCode | Partner SWIFT | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| PaymentAdviceHeaderText | PaymentAdviceHeaderText | Payment Advice Header Text | ||
| PaymentAdviceType | PaymentAdviceType | Payt Adv. Type | ||
| PaymentAdviceStatus | PaymentAdviceStatus | Payment Advice Status | ||
| PaytAdvcDiffDeterminationRule | PaytAdvcDiffDeterminationRule | Reason Code Conversion | ||
| PaymentAdviceSelectionRule | PaymentAdviceSelectionRule | Selection Rule | ||
| OriginalReferenceDocument | OriginalReferenceDocument | Reference Key | ||
| ReferenceDocumentType | ReferenceDocumentType | Reference Document Type | ||
| FeeAmountInTransactionCrcy | FeeAmountInTransactionCrcy | AC Fees | ||
| PaymentTransaction | PaymentTransaction | Bus Trans Code | ||
| BillOfExchangeFailureDate | BillOfExchangeFailureDate | Date in Japan | ||
| BankReference | BankReference | Payment Reference | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| _PaymentAdviceItem | _PaymentAdviceItem | |||
| _Customer | _Customer | |||
| _CustomerCompany | _CustomerCompany | |||
| _Supplier | _Supplier | |||
| _SupplierCompany | _SupplierCompany | |||
| _BusinessPartner | _BusinessPartner |
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_PaymentAdviceTP.
-- 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_PaymentAdviceTP AS
SELECT
CompanyCode,
PaymentAdviceAccountType,
PaymentAdviceAccount,
PaymentAdvice,
cast ( concat(concat(concat(concat(concat(concat(CompanyCode, '_'),PaymentAdviceAccountType), '_'), PaymentAdviceAccount), '_'), PaymentAdvice) as far_pa_ref_id ) AS PaymentAdviceAttachmentKey,
PaymentDocument,
AccountByShipper,
PaymentCurrency,
PaymentDate,
PaidAmountInPaytCurrency,
CashDiscountAmountInPaytCrcy,
PartnerBankCountry,
PartnerBankSWIFTCode,
CreatedByUser,
CreationDate,
CreationTime,
LastChangeDate,
LastChangeDateTime,
LastChangedByUser,
PaymentAdviceHeaderText,
PaymentAdviceType,
PaymentAdviceStatus,
PaytAdvcDiffDeterminationRule,
PaymentAdviceSelectionRule,
OriginalReferenceDocument,
ReferenceDocumentType,
FeeAmountInTransactionCrcy,
PaymentTransaction,
BillOfExchangeFailureDate,
BankReference,
BusinessPartnerName
FROM I_PaymentAdvice
LEFT OUTER JOIN R_PaymentAdviceItemTP AS _PaymentAdviceItem ON /* condition not available in parsed metadata */ -- association [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