C_CAPaymentRunSearch

DDL: C_CAPAYMENTRUNSEARCH Type: view_entity CONSUMPTION

Zahlungen im Zahllauf suchen

C_CAPaymentRunSearch is a Consumption CDS View that provides data about "Zahlungen im Zahllauf suchen" in SAP S/4HANA. It reads from 1 data source (I_CAPaymentRunHeader) and exposes 104 fields with key fields CAMassRunDate, CAMassRunID, CAIntPaymentIdentification, CAIntAddlPaymentIdentification. It has 13 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CAPaymentRunHeader I_CAPaymentRunHeader from

Associations (13)

CardinalityTargetAliasCondition
[1..*] I_CAPaymentRunItemEnhanced _PaymentRunItem $projection.CAMassRunDate = _PaymentRunItem.CAMassRunDate and $projection.CAMassRunID = _PaymentRunItem.CAMassRunID and $projection.CAIntPaymentIdentification = _PaymentRunItem.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _PaymentRunItem.CAIntAddlPaymentIdentification
[0..1] I_CAPaymentMethod _PaymentMethod $projection.CAPaymentMethod = _PaymentMethod.CAPaymentMethod and $projection.PayeeCountry = _PaymentMethod.Country
[0..1] I_CADocument _DocHeader $projection.CADocumentNumber = _DocHeader.CADocumentNumber
[0..1] I_CAPaymentOrder _PaymentOrder $projection.CAPaymentOrder = _PaymentOrder.CAPaymentOrder
[0..1] I_CADocumentGLItemPaymentData _CADocumentGLItemPaymentData $projection.CADocumentNumber = _CADocumentGLItemPaymentData.CADocumentNumber
[0..1] I_Bank _Bank $projection.PayeeBankCountry = _Bank.BankCountry and $projection.PayeeBank = _Bank.BankInternalID
[1..1] C_CAPaytRunSrchPaymentOrder _AssocPaymentOrder $projection.CAMassRunDate = _AssocPaymentOrder.CAMassRunDate and $projection.CAMassRunID = _AssocPaymentOrder.CAMassRunID and $projection.CAIntPaymentIdentification = _AssocPaymentOrder.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _AssocPaymentOrder.CAIntAddlPaymentIdentification
[1..1] C_CAPaymentRunSearchPayment _AssocPayment $projection.CAMassRunDate = _AssocPayment.CAMassRunDate and $projection.CAMassRunID = _AssocPayment.CAMassRunID and $projection.CAIntPaymentIdentification = _AssocPayment.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _AssocPayment.CAIntAddlPaymentIdentification
[1..1] C_CAPaytRunSrchRepaymentReq _AssocRepaymentRequest $projection.CAMassRunDate = _AssocRepaymentRequest.CAMassRunDate and $projection.CAMassRunID = _AssocRepaymentRequest.CAMassRunID and $projection.CAIntPaymentIdentification = _AssocRepaymentRequest.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _AssocRepaymentRequest.CAIntAddlPaymentIdentification
[0..1] I_Housebank _HouseBank $projection.CompanyCode = _HouseBank.CompanyCode and $projection.HouseBank = _HouseBank.HouseBank
[0..1] I_HouseBankAccount _HouseBankAccount $projection.CompanyCode = _HouseBankAccount.CompanyCode and $projection.HouseBank = _HouseBankAccount.HouseBank and $projection.HouseBankAccount = _HouseBankAccount.HouseBankAccount
[0..1] I_CAReturnHistory _ReturnHistory $projection.BusinessPartner = _ReturnHistory.BusinessPartner and $projection.ContractAccount = _ReturnHistory.ContractAccount and $projection.CADocumentNumber = _ReturnHistory.CADocumentNumber
[0..1] I_PaymentCardTypes _PaymentCardType $projection.PaymentCardType = _PaymentCardType.PaymentCardType

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Zahlungen im Zahllauf suchen view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
UI.headerInfo.typeName Zahlung view
UI.headerInfo.typeNamePlural Zahlungen view
UI.headerInfo.title.value CAPaymentDocumentReference view
UI.headerInfo.title.label Zahlung view
UI.headerInfo.description.value CAPaymentDocumentType view
VDM.viewType #CONSUMPTION view

Fields (104)

KeyFieldSource TableSource FieldDescription
KEY CAMassRunDate CAMassRunDate Date ID
KEY CAMassRunID CAMassRunID Run ID
KEY CAIntPaymentIdentification CAIntPaymentIdentification Seq. number
KEY CAIntAddlPaymentIdentification CAIntAddlPaymentIdentification Sequence Number
CAPaymentRunDateAndID Date ID
CompanyCode CAPaymentCompanyCode Paying Co. Code
CompanyCodeName _PaymentCompanyCode CompanyCodeName Company Name
CAMassRunDateAndID Date ID
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerFullName _BusinessPartner BusinessPartnerFullName Broker Name
FirstName _BusinessPartner FirstName First Name
LastName _BusinessPartner LastName Last Name
OrganizationBPName1 _BusinessPartner OrganizationBPName1 Name 1
OrganizationBPName2 _BusinessPartner OrganizationBPName2 Name 2
GroupBusinessPartnerName1 _BusinessPartner GroupBusinessPartnerName1 Name 1
GroupBusinessPartnerName2 _BusinessPartner GroupBusinessPartnerName2 Name 2
ContractAccount ContractAccount Contract Acct
ContractAccountName _ContractAccount ContractAccountName Cont. acct name
CASubApplication _PaymentRunItem CASubApplication Subapplication
CAPaymentDocumentReference CAPaymentDocumentReference Ref.to payt doc
CAPaymentDocumentType CAPaymentDocumentType Pay. doc. cat.
CAPaymentDocumentTypeName
CADocumentNumber CADocumentNumber Document Number
CAPaymentOrder CAPaymentOrder
CARepaymentRequest CARepaymentRequest Repaymt Request
CASEPAPreNotificationNumber CASEPAPreNotificationNumber Pre-Notif.
BankCountryName
BankCountry BankCountry Bank Ctry/Rgn. Key
BankNumber Bank Key
BankAccount Bank acct
PayeeBankCountryName
PayeeBankCountry
PayeeBank PayeeBank
PayeeBankName _Bank BankName Bank Name
PayeeBankNumber PayeeBankNumber Bank number
PayeeBankAccount
PayeeIBAN PayeeIBAN
CABankAccountHolderName CABankAccountHolderName
PayeeCountryName
PayeeCountry PayeeCountry
CityName CityName Name
AddressPostalCode AddressPostalCode Postal Code
AddressLine2
AddressStreetName AddressStreetName Street
AddressHouseNumber AddressHouseNumber House Number
AddressLine1
SWIFTCode SWIFTCode SWIFT/BIC
TransactionCurrency TransactionCurrency Transaction Currency
CurrencyName
PaytAmountInCoCodeCurrency PaytAmountInCoCodeCurrency Local Curr.Pmnt Amnt
PaidAmountInPaytCurrency PaidAmountInPaytCurrency Payment Amount
CompanyCodeCurrency
ValueDate ValueDate Value Date
CAPaymentMethodName
CAPaymentMethod CAPaymentMethod Payment Method
BankName
HouseBank HouseBank House Bank
HouseBankName
HouseBankAccount HouseBankAccount House Bank Account
HouseBankAccountDescription
CardHolder _CADocumentGLItemPaymentData PaymentCardHolderName
ValidityEndDate _CADocumentGLItemPaymentData PaymentCardValidityEndDate
PaymentCardData
PaymentCardType PaymentCardType Payt Card Type
CardTypeText
PaymentAdvicePrintingReason PaymentAdvicePrintingReason Advice Reason
PaidItemBusinessPartner
PaidItemContractAccount
CAContract
CAContractSemanticObject
DocumentDate
CAPostingDate _DocHeader CAPostingDate Posting Date
CADocumentTypeName
CADocumentType _DocHeader CADocumentType Document Type
CAReturnReason _ReturnHistory CAReturnReason Return Reason
CAReturnReasonName
CAReversalDocumentNumber _DocHeader CAReversalDocumentNumber Revers.document
PaidItemDueDate _PaymentOrder PaidItemDueDate Executed On
CAPaymentOrderExpirationDate _PaymentOrder CAPaymentOrderExpirationDate
CAPaymentOrderStatus _PaymentOrder CAPaymentOrderStatus
CAPaymentOrderStatusName
CAPaymentDocument _PaymentOrder CAPaymentDocument Usage Doc.
CADocumentReversalStatusName
CAPaymentSpecification CAPaymentSpecification Specification
CAPaymentSpecificationRef CAPaymentSpecificationRef Reference No.
CAPromiseToPay CAPromiseToPay Promise to Pay
CAPromisedPaymentDate CAPromisedPaymentDate Valid to
_Currency _TransactionCurrency
_CAPartner _ContractAccountPartner
_PaymentCompCode _PaymentCompanyCode
_CAHeader _ContractAccount
_BankCountry _BankCountry
_BusinessPartner _BusinessPartner
_ContractAccountPartner _ContractAccountPartner
_TransactionCurrency _TransactionCurrency
_DocHeader _DocHeader
_ReturnHistory _ReturnHistory
_PayeeBankCountry _PayeeBankCountry
_PayeeCountry _PayeeCountry
_PaymentRunItem _PaymentRunItem
_AssocPaymentOrder _AssocPaymentOrder
_AssocPayment _AssocPayment
_AssocRepaymentRequest _AssocRepaymentRequest
_PaymentCompanyCode _PaymentCompanyCode

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 C_CAPaymentRunSearch.
-- 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 C_CAPaymentRunSearch AS
SELECT
  CAMassRunDate,
  CAMassRunID,
  CAIntPaymentIdentification,
  CAIntAddlPaymentIdentification,
  cast(concat( cast(CAMassRunDate as date), CAMassRunID) as abap.char(20) ) AS CAPaymentRunDateAndID,
  CAPaymentCompanyCode AS CompanyCode,
  _PaymentCompanyCode.CompanyCodeName AS CompanyCodeName,
  concat_with_space( concat_with_space( cast(CAMassRunDate as date) , '/', 1), CAMassRunID, 1) AS CAMassRunDateAndID,
  BusinessPartner,
  _BusinessPartner.BusinessPartnerFullName AS BusinessPartnerFullName,
  _BusinessPartner.FirstName AS FirstName,
  _BusinessPartner.LastName AS LastName,
  _BusinessPartner.OrganizationBPName1 AS OrganizationBPName1,
  _BusinessPartner.OrganizationBPName2 AS OrganizationBPName2,
  _BusinessPartner.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
  _BusinessPartner.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2,
  ContractAccount,
  _ContractAccount.ContractAccountName AS ContractAccountName,
  _PaymentRunItem.CASubApplication AS CASubApplication,
  CAPaymentDocumentReference,
  CAPaymentDocumentType,
  cast('' as char70) AS CAPaymentDocumentTypeName,
  CADocumentNumber,
  CAPaymentOrder,
  CARepaymentRequest,
  CASEPAPreNotificationNumber,
  _BankCountry._Text[1: Language=$session.system_language].CountryName AS BankCountryName,
  BankCountry,
  cast(BankNumber as bankl preserving type ) AS BankNumber,
  cast(BankAccount as farp_bankn preserving type ) AS BankAccount,
  _PayeeBankCountry._Text[1: Language=$session.system_language].CountryName AS PayeeBankCountryName,
  cast(PayeeBankCountry as banks preserving type ) AS PayeeBankCountry,
  PayeeBank,
  _Bank.BankName AS PayeeBankName,
  PayeeBankNumber,
  cast(PayeeBankAccount as farp_bankn preserving type ) AS PayeeBankAccount,
  PayeeIBAN,
  CABankAccountHolderName,
  _PayeeCountry._Text[1: Language=$session.system_language].CountryName AS PayeeCountryName,
  PayeeCountry,
  CityName,
  AddressPostalCode,
  concat_with_space( AddressPostalCode, CityName, 1) AS AddressLine2,
  AddressStreetName,
  AddressHouseNumber,
  concat_with_space( AddressStreetName, AddressHouseNumber, 1) AS AddressLine1,
  SWIFTCode,
  TransactionCurrency,
  _TransactionCurrency._Text[1: Language=$session.system_language].CurrencyName AS CurrencyName,
  PaytAmountInCoCodeCurrency,
  PaidAmountInPaytCurrency,
  cast(_PaymentCompanyCode.Currency as fis_hwaer preserving type) AS CompanyCodeCurrency,
  ValueDate,
  _PaymentMethod._Text[1:Language = $session.system_language].CAPaymentMethodName AS CAPaymentMethodName,
  CAPaymentMethod,
  _HouseBank._Bank.BankName AS BankName,
  HouseBank,
  _HouseBank._Bank.BankName AS HouseBankName,
  HouseBankAccount,
  _HouseBankAccount._Text[1: Language=$session.system_language].HouseBankAccountDescription AS HouseBankAccountDescription,
  _CADocumentGLItemPaymentData.PaymentCardHolderName AS CardHolder,
  _CADocumentGLItemPaymentData.PaymentCardValidityEndDate AS ValidityEndDate,
  cast(concat_with_space(CardNumber, concat_with_space('(', concat_with_space(_PaymentCardType._Text[1: Language=$session.system_language].CardTypeText, ')', 1), 1), 1) as ccnum_ccins_kk) AS PaymentCardData,
  PaymentCardType,
  _PaymentCardType._Text[1: Language=$session.system_language].CardTypeText AS CardTypeText,
  PaymentAdvicePrintingReason,
  '' AS PaidItemBusinessPartner,
  '' AS PaidItemContractAccount,
  '' AS CAContract,
  cast('' as vtref_semobj_kk) AS CAContractSemanticObject,
  cast (_DocHeader.DocumentDate as co_bldat preserving type) AS DocumentDate,
  _DocHeader.CAPostingDate AS CAPostingDate,
  _DocHeader._DocType._Text[1:Language = $session.system_language].CADocumentTypeName AS CADocumentTypeName,
  _DocHeader.CADocumentType AS CADocumentType,
  _ReturnHistory.CAReturnReason AS CAReturnReason,
  _ReturnHistory._CAReturnReason._Text[1:Language = $session.system_language].CAReturnReasonName AS CAReturnReasonName,
  _DocHeader.CAReversalDocumentNumber AS CAReversalDocumentNumber,
  _PaymentOrder.PaidItemDueDate AS PaidItemDueDate,
  _PaymentOrder.CAPaymentOrderExpirationDate AS CAPaymentOrderExpirationDate,
  _PaymentOrder.CAPaymentOrderStatus AS CAPaymentOrderStatus,
  _PaymentOrder._CAPaymentOrderStatus._Text[1: Language=$session.system_language].CAPaymentOrderStatusName AS CAPaymentOrderStatusName,
  _PaymentOrder.CAPaymentDocument AS CAPaymentDocument,
  cast('' as char20) AS CADocumentReversalStatusName,
  CAPaymentSpecification,
  CAPaymentSpecificationRef,
  CAPromiseToPay,
  CAPromisedPaymentDate
FROM I_CAPaymentRunHeader
LEFT OUTER JOIN I_CAPaymentRunItemEnhanced AS _PaymentRunItem ON CAMassRunDate = _PaymentRunItem.CAMassRunDate AND CAMassRunID = _PaymentRunItem.CAMassRunID AND CAIntPaymentIdentification = _PaymentRunItem.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _PaymentRunItem.CAIntAddlPaymentIdentification  -- association [1..*]
LEFT OUTER JOIN I_CAPaymentMethod AS _PaymentMethod ON CAPaymentMethod = _PaymentMethod.CAPaymentMethod AND PayeeCountry = _PaymentMethod.Country  -- association [0..1]
LEFT OUTER JOIN I_CADocument AS _DocHeader ON CADocumentNumber = _DocHeader.CADocumentNumber  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentOrder AS _PaymentOrder ON CAPaymentOrder = _PaymentOrder.CAPaymentOrder  -- association [0..1]
LEFT OUTER JOIN I_CADocumentGLItemPaymentData AS _CADocumentGLItemPaymentData ON CADocumentNumber = _CADocumentGLItemPaymentData.CADocumentNumber  -- association [0..1]
LEFT OUTER JOIN I_Bank AS _Bank ON PayeeBankCountry = _Bank.BankCountry AND PayeeBank = _Bank.BankInternalID  -- association [0..1]
LEFT OUTER JOIN C_CAPaytRunSrchPaymentOrder AS _AssocPaymentOrder ON CAMassRunDate = _AssocPaymentOrder.CAMassRunDate AND CAMassRunID = _AssocPaymentOrder.CAMassRunID AND CAIntPaymentIdentification = _AssocPaymentOrder.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _AssocPaymentOrder.CAIntAddlPaymentIdentification  -- association [1..1]
LEFT OUTER JOIN C_CAPaymentRunSearchPayment AS _AssocPayment ON CAMassRunDate = _AssocPayment.CAMassRunDate AND CAMassRunID = _AssocPayment.CAMassRunID AND CAIntPaymentIdentification = _AssocPayment.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _AssocPayment.CAIntAddlPaymentIdentification  -- association [1..1]
LEFT OUTER JOIN C_CAPaytRunSrchRepaymentReq AS _AssocRepaymentRequest ON CAMassRunDate = _AssocRepaymentRequest.CAMassRunDate AND CAMassRunID = _AssocRepaymentRequest.CAMassRunID AND CAIntPaymentIdentification = _AssocRepaymentRequest.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _AssocRepaymentRequest.CAIntAddlPaymentIdentification  -- association [1..1]
LEFT OUTER JOIN I_Housebank AS _HouseBank ON CompanyCode = _HouseBank.CompanyCode AND HouseBank = _HouseBank.HouseBank  -- association [0..1]
LEFT OUTER JOIN I_HouseBankAccount AS _HouseBankAccount ON CompanyCode = _HouseBankAccount.CompanyCode AND HouseBank = _HouseBankAccount.HouseBank AND HouseBankAccount = _HouseBankAccount.HouseBankAccount  -- association [0..1]
LEFT OUTER JOIN I_CAReturnHistory AS _ReturnHistory ON BusinessPartner = _ReturnHistory.BusinessPartner AND ContractAccount = _ReturnHistory.ContractAccount AND CADocumentNumber = _ReturnHistory.CADocumentNumber  -- association [0..1]
LEFT OUTER JOIN I_PaymentCardTypes AS _PaymentCardType ON PaymentCardType = _PaymentCardType.PaymentCardType  -- association [0..1]
;