I_PaymentAdviceItem
Payment Advice Item
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.
SAP Help Documentation
| Category | CDS Views for Receivables Management |
|---|
Purpose
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 the following authorization objects assigned: B_BUPA_GRP (Business Partner: Authorization Groups) B_BUPA_RLT (Business Partner: BP Roles) B_BUP_PCPT (Business Partner: End of Purposes) F_AVIK_BUK (Payment Advice: Authorization for Company Codes) F_BKPF_BED (Accounting Document: Account Authorization for Customers) F_BKPF_BEK (Accounting Document: Account Authorization for Vendors) F_KK_AVIS (FI-CA Payment Advice Note in Contract A/R + A/P) F_KNA1_BED (Customer: Account Authorization) F_LFA1_BEK (Vendor: Account Authorization)
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
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 the following authorization objects assigned: B_BUPA_GRP (Business Partner: Authorization Groups) B_BUPA_RLT (Business Partner: BP Roles) B_BUP_PCPT (Business Partner: End of Purposes) F_AVIK_BUK (Payment Advice: Authorization for Company Codes) F_BKPF_BED (Accounting Document: Account Authorization for Customers) F_BKPF_BEK (Accounting Document: Account Authorization for Vendors) F_KK_AVIS (FI-CA Payment Advice Note in Contract A/R + A/P) F_KNA1_BED (Customer: Account Authorization) F_LFA1_BEK (Vendor: Account Authorization)
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
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 |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | bukrs | Value | |
| KEY | PaymentAdviceAccountType | koart | Account type | |
| KEY | PaymentAdviceAccount | konto | G/L Account | |
| KEY | PaymentAdvice | Payt Advice No. | ||
| KEY | PaymentAdviceItem | avspo | Payt Adv. Item | |
| PaymentAdviceAltvAccount | abwko | Altern. Account | ||
| AlternativeCompanyCode | Altern. CoCode | |||
| AccountingDocument | belnr | SD Document | ||
| DocumentReferenceID | Reference | |||
| LockboxInvoiceReference | lbinvref | Lockbox Invoice Reference | ||
| BillingDocument | vbeln | SD Sched. Agmt | ||
| BranchAccount | Branch | |||
| AccountingDocumentCreationDate | Imported On | |||
| BusinessArea | gsber | Business Area | ||
| AssignmentReference | Finance Project | |||
| PaytDifferenceReasonExtCode | restg | Ext.Reason Code | ||
| DocumentItemText | Text | |||
| TaxAmountInCoCodeCrcy | LC tax amount | |||
| TaxCode | mwskz | Tax Code | ||
| GrossAmountInPaymentCurrency | wrbtr | Gross Amount | ||
| NetPaymentAmountInPaytCurrency | nebtr | Payment Amt | ||
| CashDiscountAmountInPaytCrcy | CD Amount | |||
| FiscalYear | gjahr | Settlement Year | ||
| AccountingDocumentItem | Posting View Item | |||
| PaymentAdviceAltvAccountType | Alt. Acct Type | |||
| CashDiscountPercent | zbdxp | Cash Discount % | ||
| CashDiscountDays | zbdxt | Cash Disc.Days | ||
| DifferenceAmountInCoCodeCrcy | Difference | |||
| DifferenceAmount | Difference | |||
| DiffAmtInAdditionalCurrency1 | Difference | |||
| DiffAmtInAdditionalCurrency2 | Difference | |||
| ItemIsActivated | Items Active | |||
| CashDiscountIsActivated | CD Active | |||
| IsPartialPayment | Indicator: Partial Payments | |||
| PaytDiffRsdlBalIsCarriedFwd | Indicator: Carryforward Residual Bal. for Payt Difference? | |||
| PaymentDifferenceReason | rstgn | Reason Code | ||
| Currency | waers | Transaction Currency | ||
| Reference1IDByBusinessPartner | Reference Key 1 | |||
| Reference2IDByBusinessPartner | Reference Key 2 | |||
| DeliveryDocument | liefn | Delivery | ||
| InvoiceDate | Reset date | |||
| PurchasingDocReferenceByCust | bstnk | Cust. Reference | ||
| IsPostedOnAccount | xacon | Pmt on Acct Pst | ||
| PaymentAdviceStatus | Stmt Status | |||
| DeductionAmountInPaytCurrency | Deduction amt | |||
| PaymentReference | Payment Ref. | |||
| PaymentAdviceSelectionField | sfeld | Sort field | ||
| PaymentAdviceSelectionValue | swert | Value | ||
| PaytAdvcExternalSelectionField | Ext. Sel. Field | |||
| CASelectionValue | fica_selw1 | Field Value | ||
| CASelectionCategory | fica_selt1 | Selection Cat. | ||
| CADocumentNumber | fica_opbel | Document Number | ||
| CAAssignedAmountInPaytCrcy | fica_betrw_ac | Assigned Amount | ||
| TaxCalculationProcedure | ||||
| AdditionalCurrency1 | _OperationalAcctgDocItem | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | _OperationalAcctgDocItem | AdditionalCurrency2 | Local curr. 3 | |
| 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
- 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