I_CAPaymentRunItem

DDL: I_CAPAYMENTRUNITEM Type: view_entity BASIC

Contract Accounting Payment Run Item

I_CAPaymentRunItem is a Basic CDS View that provides data about "Contract Accounting Payment Run Item" in SAP S/4HANA. It reads from 1 data source (dpayp) and exposes 60 fields with key fields CAMassRunDate, CAMassRunID, CAIntPaymentIdentification, CAIntAddlPaymentIdentification, CAPaymentObjectReferenceType. It has 15 associations to related views.

Data Sources (1)

SourceAliasJoin Type
dpayp dpayp from

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_CAPaymentExceptionReason _CAPaymentExceptionReason $projection.CAPaymentExceptionReason = _CAPaymentExceptionReason.CAPaymentExceptionReason
[0..1] I_CAPaymentLockReason _CAPaymentLockReason $projection.CAPaymentLockReason = _CAPaymentLockReason.CAPaymentLockReason
[0..1] I_CAPaymentRunHeader _CAPaymentRun $projection.CAMassRunDate = _CAPaymentRun.CAMassRunDate and $projection.CAMassRunID = _CAPaymentRun.CAMassRunID and $projection.CAIntPaymentIdentification = _CAPaymentRun.CAIntPaymentIdentification and $projection.CAIntAddlPaymentIdentification = _CAPaymentRun.CAIntAddlPaymentIdentification
[0..1] I_CAPostgAndClrgLockReason _CAClearingLockReason $projection.CAClearingLockReason = _CAClearingLockReason.CAPostgAndClrgLockReason
[0..1] I_CAProviderContractHeader _CAProviderContract $projection.CASubApplication = 'P' and $projection.CAContract = _CAProviderContract.CAProviderContract
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_ContractAccountHeader _ContractAccount $projection.ContractAccount = _ContractAccount.ContractAccount
[0..1] I_ContractAccountPartner _ContractAccountPartner $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner and $projection.ContractAccount = _ContractAccountPartner.ContractAccount
[0..1] I_Country _PayeeCountry $projection.PayeeCountry = _PayeeCountry.Country
[1..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[1..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_Region _Region $projection.PayeeCountry = _Region.Country and $projection.Region = _Region.Region
[0..1] I_CADocument _CADocument $projection.CADocumentNumber = _CADocument.CADocumentNumber

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Contract Accounting Payment Run Item view
ObjectModel.modelingPattern #NONE view
ObjectModel.sapObjectNodeType.name ContrAcctgPaymentRunItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #BASIC view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY CAMassRunDate laufd Run On
KEY CAMassRunID Settlement ID
KEY CAIntPaymentIdentification payno Seq. number
KEY CAIntAddlPaymentIdentification subno Sequence Number
KEY CAPaymentObjectReferenceType doc2t Document Categ.
KEY CAPaymentObjectReference doc2r Paid Document
CADocumentNumber
CABusinessPartnerReference gpa2r Business Partner
ContractAccount
ContractAccountReference acc1r Cont Acct Ref.
CAContract vtref Contract
CAProviderContractItemNumber vtpos Item
CAAdditionalContract Contract
CASubApplication subap Subapplication
CAMainTransaction Main Transactn
CASubTransaction Subtransaction
AddressID adrnr Sold-To Address
PayeeName name1 PA text
PayeeCountry land1 Trip Ctry/Reg
Region regio Resident Region
CityName ort01 Province
DocumentDate bldat Journal Entry Date
CAPostingDate budat Posting Date
PaidItemDueDate faedt Due On
CAAcceptedCashDiscountRate sktpa Agreed disct %
TransactionCurrency waers Transaction Currency
CAAmountInTransactionCurrency betrw Reduction Amt
CAClearingAmountInLocalCrcy augbh LC clearing amt
CAClearingAmountInTransCrcy augbw TC Clearing Amt
CACashDiscountInLocalCurrency askth Prop.disc in LC
CACashDiscountInTransCurrency asktw Prop.disc in TC
CATaxPortionInTransCurrency sttax Tax Portion
CAPaymentExceptionReason poken Payt Exception
CAPaymentLockReason zlspr Pymt Lock Rsn
CAClearingLockReason clrlo Clearing Lock
CompanyCode bukrs Value
BusinessArea gsber Business Area
CAWorkflowCheckReason c4eye Check Reason
DocumentItemText optxt Text
CAReferenceDocument
StateCentralBankPaymentReason lzbkz SCB Ind.
CAWhldgTaxAmountInTransCrcy aqsbw Prop.W/HtaxTC
CAWhldgTaxAmountInLocalCrcy aqsbh PropW/HtaxLC
WithholdingTaxCode qsskz WTax Code
CompanyCodeCurrency _CompanyCode Currency Valuation Crcy
_BusinessArea _BusinessArea
_BusinessPartner _BusinessPartner
_CAClearingLockReason _CAClearingLockReason
_CAPaymentExceptionReason _CAPaymentExceptionReason
_CAPaymentLockReason _CAPaymentLockReason
_CAPaymentRun _CAPaymentRun
_CAProviderContract _CAProviderContract
_CompanyCode _CompanyCode
_CompanyCodeCurrency _CompanyCodeCurrency
_ContractAccount _ContractAccount
_ContractAccountPartner _ContractAccountPartner
_PayeeCountry _PayeeCountry
_Region _Region
_TransactionCurrency _TransactionCurrency
_CADocument _CADocument

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 I_CAPaymentRunItem.
-- 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 I_CAPaymentRunItem AS
SELECT
  laufd AS CAMassRunDate,
  cast(laufi as laufi_kk) AS CAMassRunID,
  payno AS CAIntPaymentIdentification,
  subno AS CAIntAddlPaymentIdentification,
  doc2t AS CAPaymentObjectReferenceType,
  doc2r AS CAPaymentObjectReference,
  cast (left(cast(substring(doc2r, 1, 22) as fkkop_key_kk preserving type ) , 12) as opbel_kk preserving type ) AS CADocumentNumber,
  gpa2r AS CABusinessPartnerReference,
  cast(substring(acc1r,1,12) as vkont_kk preserving type ) AS ContractAccount,
  acc1r AS ContractAccountReference,
  vtref AS CAContract,
  vtpos AS CAProviderContractItemNumber,
  cast(vtre2 as vtre2_kk preserving type ) AS CAAdditionalContract,
  subap AS CASubApplication,
  cast(vor1r as hvorg_kk preserving type ) AS CAMainTransaction,
  cast(vor2r as tvorg_kk preserving type ) AS CASubTransaction,
  adrnr AS AddressID,
  name1 AS PayeeName,
  land1 AS PayeeCountry,
  regio AS Region,
  ort01 AS CityName,
  bldat AS DocumentDate,
  budat AS CAPostingDate,
  faedt AS PaidItemDueDate,
  sktpa AS CAAcceptedCashDiscountRate,
  waers AS TransactionCurrency,
  betrw AS CAAmountInTransactionCurrency,
  augbh AS CAClearingAmountInLocalCrcy,
  augbw AS CAClearingAmountInTransCrcy,
  askth AS CACashDiscountInLocalCurrency,
  asktw AS CACashDiscountInTransCurrency,
  sttax AS CATaxPortionInTransCurrency,
  poken AS CAPaymentExceptionReason,
  zlspr AS CAPaymentLockReason,
  clrlo AS CAClearingLockReason,
  bukrs AS CompanyCode,
  gsber AS BusinessArea,
  c4eye AS CAWorkflowCheckReason,
  optxt AS DocumentItemText,
  cast(substring(ref1r, 1, 16) as xblnr_kk preserving type ) AS CAReferenceDocument,
  lzbkz AS StateCentralBankPaymentReason,
  aqsbw AS CAWhldgTaxAmountInTransCrcy,
  aqsbh AS CAWhldgTaxAmountInLocalCrcy,
  qsskz AS WithholdingTaxCode,
  _CompanyCode.Currency AS CompanyCodeCurrency
FROM dpayp
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentExceptionReason AS _CAPaymentExceptionReason ON CAPaymentExceptionReason = _CAPaymentExceptionReason.CAPaymentExceptionReason  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentLockReason AS _CAPaymentLockReason ON CAPaymentLockReason = _CAPaymentLockReason.CAPaymentLockReason  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentRunHeader AS _CAPaymentRun ON CAMassRunDate = _CAPaymentRun.CAMassRunDate AND CAMassRunID = _CAPaymentRun.CAMassRunID AND CAIntPaymentIdentification = _CAPaymentRun.CAIntPaymentIdentification AND CAIntAddlPaymentIdentification = _CAPaymentRun.CAIntAddlPaymentIdentification  -- association [0..1]
LEFT OUTER JOIN I_CAPostgAndClrgLockReason AS _CAClearingLockReason ON CAClearingLockReason = _CAClearingLockReason.CAPostgAndClrgLockReason  -- association [0..1]
LEFT OUTER JOIN I_CAProviderContractHeader AS _CAProviderContract ON CASubApplication = 'P' AND CAContract = _CAProviderContract.CAProviderContract  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccount ON ContractAccount = _ContractAccount.ContractAccount  -- association [1..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON BusinessPartner = _ContractAccountPartner.BusinessPartner AND ContractAccount = _ContractAccountPartner.ContractAccount  -- association [0..1]
LEFT OUTER JOIN I_Country AS _PayeeCountry ON PayeeCountry = _PayeeCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_Region AS _Region ON PayeeCountry = _Region.Country AND Region = _Region.Region  -- association [0..1]
LEFT OUTER JOIN I_CADocument AS _CADocument ON CADocumentNumber = _CADocument.CADocumentNumber  -- association [0..1]
;