P_CAPaymentSearch
P_CAPaymentSearch is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CAPaymentLotItem, I_CAPaymentRunHeader) and exposes 63 fields with key fields CAPaymentLot, CAPaymentLotItem, CAMassRunDate, CAMAssRunID, CAIntPaymentIdentification.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CAPaymentLotItem | I_CAPaymentLotItem | from |
| I_CAPaymentRunHeader | I_CAPaymentRunHeader | union_all |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCAPAYMENTSEARCH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (63)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAPaymentLot | CAPaymentLot | Lot | |
| KEY | CAPaymentLotItem | CAPaymentLotItem | Item | |
| KEY | CAMassRunDate | Date ID | ||
| KEY | CAMAssRunID | |||
| KEY | CAIntPaymentIdentification | Seq. number | ||
| KEY | CAIntAddlPaymentIdentification | Sequence Number | ||
| CADocumentNumber | CADocumentNumber | Document Number | ||
| CARepaymentRequest | CARepaymentRequest | Repaymt Request | ||
| PaymentCardType | PaymentCardType | Payt Card Type | ||
| CABankAccountHolderName | CABankAccountHolderName | Sold-To Party | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CardNumber | CardNumber | Condition Contract | ||
| ValueDate | ValueDate | Value Date | ||
| BankCountry | BankCountry | |||
| BankNumber | BankNumber | Bank number | ||
| BankAccount | BankAccount | |||
| SWIFTCode | SWIFTCode | SWIFT/BIC | ||
| CAPaymentTransIsToBeClarified | CAPaymentTransIsToBeClarified | Clarify | ||
| IBAN | IBAN | |||
| CAPaymentAmountInTransCurrency | Payment Amount | |||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| CreationDate | _PaymentLot | CreationDate | Time Stamp | |
| CACheque | CACheque | Check number | ||
| CANoteToPayeeInPayment | CANoteToPayeeInPayment | Usage Text | ||
| CompanyCode | CompanyCode | Paying Co. Code | ||
| BusinessArea | BusinessArea | Business Area | ||
| CAAuthorizationGroup | CAAuthorizationGroup | AuthorizGroup | ||
| CAPaymentMethod | Payment Method | |||
| PaymentDocumentPostingDate | Payment Date | |||
| PayeeBank | ||||
| PayeeCountry | ||||
| char12asCAPaymentLot | ||||
| KEY | CAPaymentLotItem | Item | ||
| KEY | CAMassRunDate | Date ID | ||
| KEY | CAMassRunID | CAMassRunID | Run ID | |
| KEY | CAIntPaymentIdentification | CAIntPaymentIdentification | Seq. number | |
| KEY | CAIntAddlPaymentIdentification | CAIntAddlPaymentIdentification | Sequence Number | |
| CADocumentNumber | CADocumentNumber | Document Number | ||
| CARepaymentRequest | CARepaymentRequest | Repaymt Request | ||
| PaymentCardType | PaymentCardType | Payt Card Type | ||
| CABankAccountHolderName | CABankAccountHolderName | Sold-To Party | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| CardNumber | CardNumber | Condition Contract | ||
| ValueDate | ValueDate | Value Date | ||
| BankCountry | PayeeBankCountry | |||
| BankNumber | PayeeBankNumber | Bank number | ||
| BankAccount | PayeeBankAccount | |||
| SWIFTCode | SWIFTCode | SWIFT/BIC | ||
| CAPaymentTransIsToBeClarified | Clarify | |||
| IBAN | PayeeIBAN | |||
| CAPaymentAmountInTransCurrency | PaidAmountInPaytCurrency | Payment Amount | ||
| DocumentDate | Journal Entry Date | |||
| CreationDate | Time Stamp | |||
| CACheque | Check number | |||
| CANoteToPayeeInPayment | Usage Text | |||
| CompanyCode | CAPaymentCompanyCode | Paying Co. Code | ||
| BusinessArea | Business Area | |||
| CAAuthorizationGroup | _CAPartner | CAAuthorizationGroup | AuthorizGroup | |
| CAPaymentMethod | CAPaymentMethod | Payment Method | ||
| PaymentDocumentPostingDate | PaymentDocumentPostingDate | Payment Date | ||
| PayeeBank | PayeeBank | |||
| PayeeCountry | PayeeCountry | |||
| CityName | CityName | Name |
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_CAPaymentSearch.
-- 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: PCAPAYMENTSEARCH
CREATE VIEW P_CAPaymentSearch AS
SELECT
CAPaymentLot,
CAPaymentLotItem,
' ' AS CAMassRunDate,
' ' AS CAMAssRunID,
cast(cast(0 as abap.int4) as payno_pay) AS CAIntPaymentIdentification,
cast(cast('' as abap.char(6)) as subno_pay) AS CAIntAddlPaymentIdentification,
CADocumentNumber,
CARepaymentRequest,
PaymentCardType,
CABankAccountHolderName,
TransactionCurrency,
CardNumber,
ValueDate,
BankCountry,
BankNumber,
BankAccount,
SWIFTCode,
CAPaymentTransIsToBeClarified,
IBAN,
cast (CAPaymentAmountInTransCurrency as betrw_gfn_kk preserving type ) AS CAPaymentAmountInTransCurrency,
DocumentDate,
_PaymentLot.CreationDate AS CreationDate,
CACheque,
CANoteToPayeeInPayment,
CompanyCode,
BusinessArea,
CAAuthorizationGroup,
' ' AS CAPaymentMethod,
cast('00000000' as abap.dats( 8 )) AS PaymentDocumentPostingDate,
cast('' as abap.char( 15 )) AS PayeeBank,
' ' AS PayeeCountry,
cast('' as abap.char( 40 )) as CityName AS char12asCAPaymentLot,
CityName
FROM I_CAPaymentLotItem
-- UNION ALL with additional select branch(es): I_CAPaymentRunHeader
;
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