C_CAPaymentListPaymentOrder

DDL: C_CAPAYMENTLISTPAYMENTORDER SQL: CCAPAYLISTORDER Type: view CONSUMPTION

Payment Order

C_CAPaymentListPaymentOrder is a Consumption CDS View that provides data about "Payment Order" in SAP S/4HANA. It reads from 1 data source (P_CAPaymentListPayment) and exposes 49 fields with key fields CAMassRunDate, CAMassRunID, CAIntPaymentIdentification, CAIntAddlPaymentIdentification. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_CAPaymentListPayment P_CAPaymentListPayment from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_CAPaymentMethod _CAPaymentMethod $projection.CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod and $projection.CompanyCodeCountry = _CAPaymentMethod.Country
[0..1] I_CAPaymentOrderStatus _CAPaymentOrderStatus $projection.CAPaymentOrderStatus = _CAPaymentOrderStatus.CAPaymentOrderStatus
[1..*] C_CAPaymentListPaymentOrderItm _CAPaymentListPaymentOrderItm $projection.CAMassRunDate = _CAPaymentListPaymentOrderItm.CAMassRunDate and $projection.CAMassRunID = _CAPaymentListPaymentOrderItm.CAMassRunID and $projection.CAIntPaymentIdentification = _CAPaymentListPaymentOrderItm.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _CAPaymentListPaymentOrderItm.CAIntAddlPaymentIdentification
[0..1] I_CADocumentHeader _DocHeader $projection.CAPaymentOrderPaymentDocument = _DocHeader.CADocumentNumber

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CCAPAYLISTORDER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Payment Order view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
UI.headerInfo.typeName Payment Order view
UI.headerInfo.typeNamePlural Payment Orders view
UI.headerInfo.title.value CAPaymentOrder view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY CAMassRunDate CAMassRunDate Date ID
KEY CAMassRunID CAMassRunID Run ID
KEY CAIntPaymentIdentification CAIntPaymentIdentification
KEY CAIntAddlPaymentIdentification CAIntAddlPaymentIdentification
CAInternalPaymentGroup CAInternalPaymentGroup
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
CAPaymentOrder CAPaymentOrder
CAPaymentOrderPaymentDocument CAPaymentOrderPaymentDocument Document
DocumentDate _DocHeader DocumentDate Journal Entry Date
TransactionCurrency TransactionCurrency Transaction Currency
CAPaymentMethod CAPaymentMethod Payment Method
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
CAPaymentMethodName
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
ContractAccount ContractAccount Contract Acct
ContractAccountName ContractAccountName Cont. acct name
CAPaymentCompanyCode CAPaymentCompanyCode Company Code
CAPaymentCompanyCodeName CAPaymentCompanyCodeName Company Name
CABusinessAreaInPaymentDoc CABusinessAreaInPaymentDoc
HouseBank HouseBank House Bank
HouseBankName HouseBankName
HouseBankAccount HouseBankAccount House Bank Account
HouseBankAccountDescription HouseBankAccountDescription
BankAmountInTransactionCrcy BankAmountInTransactionCrcy Amount
AddressLine1 Street / No.
AddressLine2 Postal Code / City
PayeeCountry PayeeCountry
PayeeCountryName PayeeCountryName
CAPaymentOrderStatus CAPaymentOrderStatus Status
CAPaymentOrderStatusName
ValueDate ValueDate Value Date
UniqueEndToEndTransactionID UniqueEndToEndTransactionID
BankNumber BankNumber Bank Key
BankAccount BankAccount Bank acct
BankCountry BankCountry Bank Ctry/Rgn. Key
BankCountryName BankCountryName Country/Region
CABankAccountHolderName CABankAccountHolderName
PayeeBank PayeeBank
BankName BankName Bank Name
PayeeBankCountry PayeeBankCountry
PayeeBankCountryName PayeeBankCountryName
PayeeBankNumber PayeeBankNumber
PayeeBankAccount PayeeBankAccount
PayeeIBAN PayeeIBAN
CAPaymentSpecificationRef CAPaymentSpecificationRef
CAPromiseToPay CAPromiseToPay
CAPromisedPaymentDate CAPromisedPaymentDate
_CAPaymentListPaymentOrderItm _CAPaymentListPaymentOrderItm

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_CAPaymentListPaymentOrder.
-- 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: CCAPAYLISTORDER

CREATE VIEW C_CAPaymentListPaymentOrder AS
SELECT
  CAMassRunDate,
  CAMassRunID,
  CAIntPaymentIdentification,
  CAIntAddlPaymentIdentification,
  CAInternalPaymentGroup,
  IsBusinessPurposeCompleted,
  CAPaymentOrder,
  CAPaymentOrderPaymentDocument,
  _DocHeader.DocumentDate AS DocumentDate,
  TransactionCurrency,
  CAPaymentMethod,
  CompanyCodeCountry,
  _CAPaymentMethod._Text[1: Language=$session.system_language].CAPaymentMethodName AS CAPaymentMethodName,
  BusinessPartner,
  BusinessPartnerName,
  ContractAccount,
  ContractAccountName,
  CAPaymentCompanyCode,
  CAPaymentCompanyCodeName,
  CABusinessAreaInPaymentDoc,
  HouseBank,
  HouseBankName,
  HouseBankAccount,
  HouseBankAccountDescription,
  BankAmountInTransactionCrcy,
  concat_with_space(AddressStreetName, AddressHouseNumber, 1) AS AddressLine1,
  concat_with_space(AddressPostalCode, CityName, 1) AS AddressLine2,
  PayeeCountry,
  PayeeCountryName,
  CAPaymentOrderStatus,
  _CAPaymentOrderStatus._Text[1: Language=$session.system_language].CAPaymentOrderStatusName AS CAPaymentOrderStatusName,
  ValueDate,
  UniqueEndToEndTransactionID,
  BankNumber,
  BankAccount,
  BankCountry,
  BankCountryName,
  CABankAccountHolderName,
  PayeeBank,
  BankName,
  PayeeBankCountry,
  PayeeBankCountryName,
  PayeeBankNumber,
  PayeeBankAccount,
  PayeeIBAN,
  CAPaymentSpecificationRef,
  CAPromiseToPay,
  CAPromisedPaymentDate
FROM P_CAPaymentListPayment
LEFT OUTER JOIN I_CAPaymentMethod AS _CAPaymentMethod ON CAPaymentMethod = _CAPaymentMethod.CAPaymentMethod AND CompanyCodeCountry = _CAPaymentMethod.Country  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentOrderStatus AS _CAPaymentOrderStatus ON CAPaymentOrderStatus = _CAPaymentOrderStatus.CAPaymentOrderStatus  -- association [0..1]
LEFT OUTER JOIN C_CAPaymentListPaymentOrderItm AS _CAPaymentListPaymentOrderItm ON CAMassRunDate = _CAPaymentListPaymentOrderItm.CAMassRunDate AND CAMassRunID = _CAPaymentListPaymentOrderItm.CAMassRunID AND CAIntPaymentIdentification = _CAPaymentListPaymentOrderItm.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _CAPaymentListPaymentOrderItm.CAIntAddlPaymentIdentification  -- association [1..*]
LEFT OUTER JOIN I_CADocumentHeader AS _DocHeader ON CAPaymentOrderPaymentDocument = _DocHeader.CADocumentNumber  -- association [0..1]
;