I_PaymentAdviceItem
Payment Advice Item
I_PaymentAdviceItem (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_PaymentAdviceItem is a Basic CDS View that provides data about "Payment Advice Item" in SAP S/4HANA. It reads from 1 data source (avip) and exposes 71 fields with key fields CompanyCode, PaymentAdviceAccountType, PaymentAdviceAccount, PaymentAdvice, PaymentAdviceItem. It has 14 associations to related views. It is exposed through 1 OData service (ASQL_F2626). Part of development package ODATA_PAYMENTADVICES.
SAP Help Documentation
| Category | CDS Views for Receivables Management |
|---|
This CDS view helps to retrieve payment advice item data. For payment advice header data, use the I_PaymentAdvice view instead. 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: RLTYP (BP Role) BEGRU_BKPF_BEK (Authorization Group for Supplier-Related Journal Entries) BEGRU_BKPF_BED (Authorization Group for Customer Related Journal Entries) BEGRU_KNA1 (Authorization Group for Customers) BEGRU_LFA1 (Authorization Group for Suppliers) BEGRU_BUPA_GRP (Authorization Group for Business Partners) 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 CompanyCode Company Code PaymentAdviceAccountType Payment Advice Account Type PaymentAdviceAccount Account Number PaymentAdvice Payment Advice Number PaymentAdviceItem Payment Advice Item
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | CA-GTF-FXU-FI-AR |
| Capabilities | Association Target for Defining CDS Entities,Data Source for Defining CDS Entities,Data Source in SQL Select |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view helps to retrieve payment advice item data.</p> <p>For payment advice header data, use the I_PaymentAdvice view instead.</p> <p>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.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| avip | avip | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_CompanyCode | _AlternativeCompanyCode | $projection.AlternativeCompanyCode = _AlternativeCompanyCode.CompanyCode |
| [1..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [1..1] | I_TaxCode | _TaxCode | $projection.TaxCode = _TaxCode.TaxCode and $projection.TaxCalculationProcedure = _TaxCode.TaxCalculationProcedure |
| [1..1] | I_PaymentDifferenceReason | _PaymentDifferenceReason | $projection.CompanyCode = _PaymentDifferenceReason.CompanyCode and $projection.PaymentDifferenceReason = _PaymentDifferenceReason.PaymentDifferenceReason |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [1..*] | I_PaymentAdviceSubItem | _PaymentAdviceSubItem | $projection.CompanyCode = _PaymentAdviceSubItem.CompanyCode and $projection.PaymentAdviceAccountType = _PaymentAdviceSubItem.PaymentAdviceAccountType and $projection.PaymentAdviceAccount = _PaymentAdviceSubItem.PaymentAdviceAccount and $projection.PaymentAdvice = _PaymentAdviceSubItem.PaymentAdvice and $projection.PaymentAdviceItem = _PaymentAdviceSubItem.PaymentAdviceItem |
| [1..1] | I_TaxCalculationProcedure | _TaxCalculationProcedure | $projection.TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure |
| [0..1] | I_OperationalAcctgDocItem | _OperationalAcctgDocItem | $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode |
| [0..1] | I_Customer | _Customer | $projection.PaymentAdviceAccount = _Customer.Customer |
| [1..1] | I_CustomerCompany | _CustomerCompany | $projection.PaymentAdviceAccount = _CustomerCompany.Customer and $projection.CompanyCode = _CustomerCompany.CompanyCode |
| [0..1] | I_Supplier | _Supplier | $projection.PaymentAdviceAccount = _Supplier.Supplier |
| [1..1] | I_SupplierCompany | _SupplierCompany | $projection.PaymentAdviceAccount = _SupplierCompany.Supplier and $projection.CompanyCode = _SupplierCompany.CompanyCode |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.PaymentAdviceAccount = _BusinessPartner.BusinessPartner and $projection.PaymentAdviceAccountType = 'G' |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPAYTADVCITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Payment Advice Item | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2626 | ASQL_F2626 | C2 | NOT_RELEASED |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Company Code | |
| KEY | PaymentAdviceAccountType | koart | Payment Advice Account Type | |
| KEY | PaymentAdviceAccount | konto | Account Number | |
| KEY | PaymentAdvice | Payment Advice Number | ||
| KEY | PaymentAdviceItem | avspo | Payment Advice Item | |
| PaymentAdviceAltvAccount | abwko | Alternative Account (Payment Advice Management) | ||
| AlternativeCompanyCode | Alternative Company Code (Payment Advice Management) | |||
| AccountingDocument | belnr | Document Number of an Accounting Document | ||
| DocumentReferenceID | Reference Document | |||
| LockboxInvoiceReference | lbinvref | Lockbox Invoice Reference | ||
| BillingDocument | vbeln | Billing Document | ||
| BranchAccount | Account Number of the Branch | |||
| AccountingDocumentCreationDate | Accounting Document Entry Date | |||
| BusinessArea | gsber | Business Area | ||
| AssignmentReference | Assignment Number | |||
| PaytDifferenceReasonExtCode | restg | External Reason Code for Payment Differences | ||
| DocumentItemText | Item Text | |||
| TaxAmountInCoCodeCrcy | Tax Amount in Local Currency | |||
| TaxCode | mwskz | Tax on Sales/Purchases Code | ||
| GrossAmountInPaymentCurrency | wrbtr | Gross Amount | ||
| NetPaymentAmountInPaytCurrency | nebtr | Net Payment Amount with +/- Sign | ||
| CashDiscountAmountInPaytCrcy | Cash Discount Amount with +/- Sign | |||
| FiscalYear | gjahr | Settlement Year | ||
| AccountingDocumentItem | Posting View Item | |||
| PaymentAdviceAltvAccountType | Alt. Acct Type | |||
| CashDiscountPercent | zbdxp | Selected Cash Discount Percentage Rate | ||
| CashDiscountDays | zbdxt | Selected Cash Discount Days | ||
| DifferenceAmountInCoCodeCrcy | Amount Difference in Local Currency | |||
| DifferenceAmount | Amount Difference in Foreign Currency | |||
| DiffAmtInAdditionalCurrency1 | Amount Difference in Second Local Currency | |||
| DiffAmtInAdditionalCurrency2 | Amount Difference in Third Local Currency | |||
| ItemIsActivated | Indicator: Items Activated? | |||
| CashDiscountIsActivated | Flag whether Cash Discount is Active | |||
| IsPartialPayment | Indicator: Partial Payments | |||
| PaytDiffRsdlBalIsCarriedFwd | Indicator: Carryforward Residual Bal. for Payt Difference? | |||
| PaymentDifferenceReason | rstgn | Reason Code for Payments | ||
| Currency | waers | Transaction Currency | ||
| Reference1IDByBusinessPartner | Business Partner Reference Key 1 | |||
| Reference2IDByBusinessPartner | Business Partner Reference Key 2 | |||
| DeliveryDocument | liefn | Delivery | ||
| InvoiceDate | Document Date | |||
| PurchasingDocReferenceByCust | bstnk | Customer Reference | ||
| IsPostedOnAccount | xacon | Indicator: Posting on Account | ||
| PaymentAdviceStatus | Payment Advice Status | |||
| DeductionAmountInPaytCurrency | Deduction Amount | |||
| PaymentReference | Payment Reference | |||
| PaymentAdviceSelectionField | sfeld | Name of Selection Field | ||
| PaymentAdviceSelectionValue | swert | Selection Value (Payment Advice Management) | ||
| PaytAdvcExternalSelectionField | Name of External Selection Field Specified | |||
| CASelectionValue | fica_selw1 | Field value to be selected | ||
| CASelectionCategory | fica_selt1 | Selection Category | ||
| CADocumentNumber | fica_opbel | Number of a FI-CA Document | ||
| CAAssignedAmountInPaytCrcy | fica_betrw_ac | Assigned Amount | ||
| TaxCalculationProcedure | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | |||
| AdditionalCurrency1 | _OperationalAcctgDocItem | AdditionalCurrency1 | Additional Currency 1 | |
| AdditionalCurrency2 | _OperationalAcctgDocItem | AdditionalCurrency2 | Additional Currency 2 | |
| CompanyCodeCurrency | _CompanyCode | Currency | Valuation Crcy | |
| _CompanyCode | _CompanyCode | |||
| _AlternativeCompanyCode | _AlternativeCompanyCode | |||
| _BusinessArea | _BusinessArea | |||
| _TaxCode | _TaxCode | |||
| _PaymentDifferenceReason | _PaymentDifferenceReason | |||
| _Currency | _Currency | |||
| _PaymentAdviceSubItem | _PaymentAdviceSubItem | |||
| _TaxCalculationProcedure | _TaxCalculationProcedure | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _Customer | _Customer | |||
| _CustomerCompany | _CustomerCompany | |||
| _Supplier | _Supplier | |||
| _SupplierCompany | _SupplierCompany | |||
| _BusinessPartner | _BusinessPartner |
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_PaymentAdviceItem.
-- 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: IPAYTADVCITM
CREATE VIEW I_PaymentAdviceItem AS
SELECT
bukrs AS CompanyCode,
koart AS PaymentAdviceAccountType,
konto AS PaymentAdviceAccount,
cast(avsid as farp_pa_avsid preserving type) AS PaymentAdvice,
avspo AS PaymentAdviceItem,
abwko AS PaymentAdviceAltvAccount,
cast(abwbu as farp_abwbu_av preserving type) AS AlternativeCompanyCode,
belnr AS AccountingDocument,
cast(xblnr as far_pa_xblnr1 preserving type) AS DocumentReferenceID,
lbinvref AS LockboxInvoiceReference,
vbeln AS BillingDocument,
cast(filkd as farp_filkd preserving type) AS BranchAccount,
cast(cpudt as farp_cpudt preserving type) AS AccountingDocumentCreationDate,
gsber AS BusinessArea,
cast(zuonr as farp_dzuonr preserving type) AS AssignmentReference,
restg AS PaytDifferenceReasonExtCode,
cast(sgtxt as farp_sgtxt preserving type) AS DocumentItemText,
cast(mwsts as farp_mwsts preserving type) AS TaxAmountInCoCodeCrcy,
mwskz AS TaxCode,
wrbtr AS GrossAmountInPaymentCurrency,
nebtr AS NetPaymentAmountInPaytCurrency,
cast(wskto as far_pa_wskto_av preserving type ) AS CashDiscountAmountInPaytCrcy,
gjahr AS FiscalYear,
cast(buzei as farp_buzei preserving type) AS AccountingDocumentItem,
cast(abwka as farp_abwka_av preserving type) AS PaymentAdviceAltvAccountType,
zbdxp AS CashDiscountPercent,
zbdxt AS CashDiscountDays,
cast(difhw as farp_difhw preserving type) AS DifferenceAmountInCoCodeCrcy,
cast(diffw as farp_diffw preserving type) AS DifferenceAmount,
cast(difh2 as farp_difh2 preserving type) AS DiffAmtInAdditionalCurrency1,
cast(difh3 as farp_difh3 preserving type) AS DiffAmtInAdditionalCurrency2,
cast(xaktp as farp_xaktp preserving type) AS ItemIsActivated,
cast(xakts as far_pa_xakts preserving type) AS CashDiscountIsActivated,
cast(xppmt as farp_xppmt preserving type) AS IsPartialPayment,
cast(xvort as farp_xvort preserving type) AS PaytDiffRsdlBalIsCarriedFwd,
rstgn AS PaymentDifferenceReason,
waers AS Currency,
cast(xref1 as farp_xref1 preserving type) AS Reference1IDByBusinessPartner,
cast(xref2 as farp_xref2 preserving type) AS Reference2IDByBusinessPartner,
liefn AS DeliveryDocument,
cast(redat as farp_pa_redat preserving type) AS InvoiceDate,
bstnk AS PurchasingDocReferenceByCust,
xacon AS IsPostedOnAccount,
cast(astat as farp_astat_avik preserving type) AS PaymentAdviceStatus,
cast(abbtr as far_pa_abbtr_av preserving type) AS DeductionAmountInPaytCurrency,
cast(kidno as farp_kidno preserving type) AS PaymentReference,
sfeld AS PaymentAdviceSelectionField,
swert AS PaymentAdviceSelectionValue,
cast(afeld as farp_afeld_av preserving type) AS PaytAdvcExternalSelectionField,
fica_selw1 AS CASelectionValue,
fica_selt1 AS CASelectionCategory,
fica_opbel AS CADocumentNumber,
fica_betrw_ac AS CAAssignedAmountInPaytCrcy,
cast(_CompanyCode._Country.TaxCalculationProcedure as farp_kalsm_d preserving type ) AS TaxCalculationProcedure,
_OperationalAcctgDocItem.AdditionalCurrency1 AS AdditionalCurrency1,
_OperationalAcctgDocItem.AdditionalCurrency2 AS AdditionalCurrency2,
_CompanyCode.Currency AS CompanyCodeCurrency
FROM avip
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _AlternativeCompanyCode ON AlternativeCompanyCode = _AlternativeCompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [1..1]
LEFT OUTER JOIN I_TaxCode AS _TaxCode ON TaxCode = _TaxCode.TaxCode AND TaxCalculationProcedure = _TaxCode.TaxCalculationProcedure -- association [1..1]
LEFT OUTER JOIN I_PaymentDifferenceReason AS _PaymentDifferenceReason ON CompanyCode = _PaymentDifferenceReason.CompanyCode AND PaymentDifferenceReason = _PaymentDifferenceReason.PaymentDifferenceReason -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_PaymentAdviceSubItem AS _PaymentAdviceSubItem ON CompanyCode = _PaymentAdviceSubItem.CompanyCode AND PaymentAdviceAccountType = _PaymentAdviceSubItem.PaymentAdviceAccountType AND PaymentAdviceAccount = _PaymentAdviceSubItem.PaymentAdviceAccount AND PaymentAdvice = _PaymentAdviceSubItem.PaymentAdvice AND PaymentAdviceItem = _PaymentAdviceSubItem.PaymentAdviceItem -- association [1..*]
LEFT OUTER JOIN I_TaxCalculationProcedure AS _TaxCalculationProcedure ON TaxCalculationProcedure = _TaxCalculationProcedure.TaxCalculationProcedure -- association [1..1]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON AccountingDocument = _OperationalAcctgDocItem.AccountingDocument AND AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem AND FiscalYear = _OperationalAcctgDocItem.FiscalYear AND CompanyCode = _OperationalAcctgDocItem.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON PaymentAdviceAccount = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON PaymentAdviceAccount = _CustomerCompany.Customer AND CompanyCode = _CustomerCompany.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON PaymentAdviceAccount = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON PaymentAdviceAccount = _SupplierCompany.Supplier AND CompanyCode = _SupplierCompany.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON PaymentAdviceAccount = _BusinessPartner.BusinessPartner AND PaymentAdviceAccountType = 'G' -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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