I_CABillgDocPayment
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
| Category | CDS 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.
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkinvbill_py | invbill_py | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA