P_CAPaymentSearch

DDL: P_CAPAYMENTSEARCH SQL: PCAPAYMENTSEARCH Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_CAPaymentLotItem I_CAPaymentLotItem from
I_CAPaymentRunHeader I_CAPaymentRunHeader union_all

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;