I_CABillgDocPayment

DDL: I_CABILLGDOCPAYMENT Type: view_entity BASIC

Zahldatenpositionen des Abr.belegs

I_CABillgDocPayment is a Basic CDS View that provides data about "Zahldatenpositionen des Abr.belegs" in SAP S/4HANA. It reads from 1 data source (dfkkinvbill_py) and exposes 18 fields with key fields CABillgDocument, CABillgDocPaymentItem. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Transaction Data
Purpose
This CDS view retrieves the payment data items of a billing document in Convergent Invoicing. This CDS view provides the data to answer the following business questions: Which payment method is to be used for this business transaction? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KKINVBIL Authorization Groups for Billing Documents BUKRS Company Code You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Important Fields Important fields in this view include the following: Field Name Description CABillgDocument Billing Document Number CABillgDocPaymentItem Payment Data Item

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
dfkkinvbill_py invbill_py from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CABillgDocHeader _CABillgDocHeader $projection.CABillgDocument = _CABillgDocHeader.CABillgDocument
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_CAPaymentBillingStatus _CAPaymentBillingStatus $projection.CAPaymentBillingStatus = _CAPaymentBillingStatus.CAPaymentBillingStatus

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Zahldatenpositionen des Abr.belegs view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CABillgDocument billdocno Billing Doc.
KEY CABillgDocPaymentItem billdocpayitem Pmt Data Item
CABillgGrpgOfPaymentData py_group Pmt Data Group
CABillgPaymentReference pyref Reference
CABillgPaymentAmount Max.Payment Amt
TransactionCurrency py_curr Currency
CABillgDocPaytItmExtSyst Payment Item
CAInvcgDocItemIsReversal reversalitem Reversal Item
CAPaymentMethod pymet Payment Method
CABankOfAltvBPForPayment embvt Bank Details
CAAltvBPForPayment emgpa Partner
CAKeyForPaymentCardSupplement pcard_guid Pmt Card Suppl.
CAPaymentBillingStatus pcard_xsett Billing
CABillgDocPaymentItemPriority py_prio Priority
CABillgGroupingSourceItems src_group Source Item Grp
_CABillgDocHeader _CABillgDocHeader
_TransactionCurrency _TransactionCurrency
_CAPaymentBillingStatus _CAPaymentBillingStatus

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_CABillgDocPayment.
-- 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_CABillgDocPayment AS
SELECT
  billdocno AS CABillgDocument,
  billdocpayitem AS CABillgDocPaymentItem,
  py_group AS CABillgGrpgOfPaymentData,
  pyref AS CABillgPaymentReference,
  cast(py_amount as py_amount_gfn_kk preserving type) AS CABillgPaymentAmount,
  py_curr AS TransactionCurrency,
  cast(refpayitem as refpayitem_gfn_kk preserving type) AS CABillgDocPaytItmExtSyst,
  reversalitem AS CAInvcgDocItemIsReversal,
  pymet AS CAPaymentMethod,
  embvt AS CABankOfAltvBPForPayment,
  emgpa AS CAAltvBPForPayment,
  pcard_guid AS CAKeyForPaymentCardSupplement,
  pcard_xsett AS CAPaymentBillingStatus,
  py_prio AS CABillgDocPaymentItemPriority,
  src_group AS CABillgGroupingSourceItems
FROM dfkkinvbill_py AS invbill_py
LEFT OUTER JOIN I_CABillgDocHeader AS _CABillgDocHeader ON CABillgDocument = _CABillgDocHeader.CABillgDocument  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CAPaymentBillingStatus AS _CAPaymentBillingStatus ON CAPaymentBillingStatus = _CAPaymentBillingStatus.CAPaymentBillingStatus  -- association [0..1]
;