I_PaymentAdviceTP
Payment Advice Header
I_PaymentAdviceTP is a Transactional CDS View that provides data about "Payment Advice Header" in SAP S/4HANA. It reads from 1 data source (P_PaymentAdvice) and exposes 68 fields with key fields CompanyCode, PaymentAdviceAccountType, PaymentAdviceAccount, PaymentAdvice. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PaymentAdvice | P_PaymentAdvice | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_PaymentAdviceItemTP | _PaymentAdviceItem | $projection.CompanyCode = _PaymentAdviceItem.CompanyCode and $projection.PaymentAdviceAccountType = _PaymentAdviceItem.PaymentAdviceAccountType and $projection.PaymentAdviceAccount = _PaymentAdviceItem.PaymentAdviceAccount and $projection.PaymentAdvice = _PaymentAdviceItem.PaymentAdvice |
| [1..1] | I_CompanyCode | _CompanyCodeForEdit | $projection.CompanyCodeForEdit = _CompanyCodeForEdit.CompanyCode |
| [0..1] | I_Customer | _CustomerForEdit | $projection.PaymentAdviceAccountForEdit = _CustomerForEdit.Customer and $projection.PaytAdviceAccountTypeForEdit = 'D' |
| [0..1] | I_PaymentAdviceSubledger | _PaymentAdviceSubledger | $projection.PaytAdviceAccountTypeForEdit = _PaymentAdviceSubledger.PaymentAdviceSubledger |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPAYTADVCTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.draft.sharing | #PUBLIC | view | |
| ObjectModel.draft.concurrentEditing | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.writeDraftPersistence | AVIK_DRAFT | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Payment Advice Header | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_PaymentAdvice | CompanyCode | Receiver Company Code |
| KEY | PaymentAdviceAccountType | P_PaymentAdvice | PaymentAdviceAccountType | Account Type |
| KEY | PaymentAdviceAccount | P_PaymentAdvice | PaymentAdviceAccount | Account |
| KEY | PaymentAdvice | P_PaymentAdvice | PaymentAdvice | Payment Advice Number |
| CompanyCodeForEdit | P_PaymentAdvice | CompanyCode | Receiver Company Code | |
| PaytAdviceAccountTypeForEdit | ||||
| PaymentAdviceAccountForEdit | P_PaymentAdvice | PaymentAdviceAccount | Account | |
| PaymentAdviceForEdit | P_PaymentAdvice | PaymentAdvice | Payment Advice Number | |
| PaymentDocument | P_PaymentAdvice | PaymentDocument | Payment Document Number | |
| AccountByShipper | P_PaymentAdvice | AccountByShipper | Payee's Account at the Customer | |
| PaymentCurrency | P_PaymentAdvice | PaymentCurrency | Payment Currency | |
| PaymentDate | P_PaymentAdvice | PaymentDate | Payment Date | |
| PaidAmountInPaytCurrency | P_PaymentAdvice | PaidAmountInPaytCurrency | Payment Amount | |
| CashDiscountAmountInPaytCrcy | P_PaymentAdvice | CashDiscountAmountInPaytCrcy | Cash Discount Amount | |
| PartnerBankCountry | P_PaymentAdvice | PartnerBankCountry | Part. Ctry/Rgn | |
| PartnerBankSWIFTCode | P_PaymentAdvice | PartnerBankSWIFTCode | Partner SWIFT | |
| CreatedByUser | P_PaymentAdvice | CreatedByUser | User Name | |
| CreationDate | P_PaymentAdvice | CreationDate | Time Stamp | |
| LastChangeDate | P_PaymentAdvice | LastChangeDate | Time Stamp | |
| LastChangedByUser | P_PaymentAdvice | LastChangedByUser | User Name | |
| PaymentAdviceHeaderText | P_PaymentAdvice | PaymentAdviceHeaderText | Payment Advice Header Text | |
| PaymentAdviceType | P_PaymentAdvice | PaymentAdviceType | Payt Adv. Type | |
| PaymentAdviceTypeName | P_PaymentAdvice | PaymentAdviceTypeName | ||
| CreationTime | P_PaymentAdvice | CreationTime | Time of Change | |
| CreationDateTime | ||||
| PaymentAdviceStatus | P_PaymentAdvice | PaymentAdviceStatus | Payment Advice Status | |
| PaytAdvcDiffDeterminationRule | P_PaymentAdvice | PaytAdvcDiffDeterminationRule | Reason Code Conversion | |
| PaytAdvcDiffDetnRuleDesc | P_PaymentAdvice | PaytAdvcDiffDetnRuleDesc | ||
| PaymentAdviceSelectionRule | P_PaymentAdvice | PaymentAdviceSelectionRule | Selection Rule | |
| PaytAdviceSelectionRuleDesc | P_PaymentAdvice | PaytAdviceSelectionRuleDesc | ||
| OriginalReferenceDocument | P_PaymentAdvice | OriginalReferenceDocument | Reference Key | |
| FullName | P_PaymentAdvice | FullName | Name | |
| OrganizationBPName1 | P_PaymentAdvice | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | P_PaymentAdvice | OrganizationBPName2 | Name 2 | |
| PaymentAdviceIsHeld | P_PaymentAdvice | PaymentAdviceIsHeld | Hold Payt Adv. | |
| CompanyCodeName | CompanyCodeName | Company Name | ||
| PaymentAdviceIsExtracted | ||||
| PaytAdviceExtractorConfidence | ||||
| PaymentAdviceExtractorUUID | ||||
| PaymentAdviceUUID | P_PaymentAdvice | PaymentAdviceUUID | ||
| PaymentAdviceExtractionStatus | ||||
| PaymentAdviceExtractorType | ||||
| PaytAdviceTotalNumberOfPages | ||||
| AccountingClerk | AccountingClerk | Clerk Abbrev. | ||
| AccountingClerkName | ||||
| Customer | Customer | Sold-to Party | ||
| PaymentAdviceItemTotalAmount | ||||
| BankReference | BankReference | Payment Reference | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| CAPaymentDocument | CAPaymentDocument | Usage Doc. | ||
| ContractAccount | ContractAccount | Contract Acct | ||
| CAPaymentAdvice | CAPaymentAdvice | Payment Advice Note | ||
| _PaymentAdviceItem | _PaymentAdviceItem | |||
| _CompanyCodeForEdit | _CompanyCodeForEdit | |||
| _CustomerForEdit | _CustomerForEdit | |||
| _BusinessPartner | P_PaymentAdvice | _BusinessPartner | ||
| _PaymentAdviceSubledger | _PaymentAdviceSubledger | |||
| _AccountingClerk | P_PaymentAdvice | _AccountingClerk | ||
| _Customer | P_PaymentAdvice | _Customer | ||
| _CustomerCompany | P_PaymentAdvice | _CustomerCompany | ||
| _Supplier | P_PaymentAdvice | _Supplier | ||
| _SupplierCompany | P_PaymentAdvice | _SupplierCompany | ||
| _CompanyCode | P_PaymentAdvice | _CompanyCode | ||
| _Currency | P_PaymentAdvice | _Currency | ||
| _PaytAdvcDiffDeterminationRule | P_PaymentAdvice | _PaytAdvcDiffDeterminationRule | ||
| _PaytAdviceSelRules | P_PaymentAdvice | _PaytAdviceSelRules | ||
| _UserContactCard | P_PaymentAdvice | _UserContactCard | ||
| _PaymentAdviceType | P_PaymentAdvice | _PaymentAdviceType |
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_PaymentAdviceTP.
-- 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: IPAYTADVCTP
CREATE VIEW I_PaymentAdviceTP AS
SELECT
P_PaymentAdvice.CompanyCode AS CompanyCode,
P_PaymentAdvice.PaymentAdviceAccountType AS PaymentAdviceAccountType,
P_PaymentAdvice.PaymentAdviceAccount AS PaymentAdviceAccount,
P_PaymentAdvice.PaymentAdvice AS PaymentAdvice,
P_PaymentAdvice.CompanyCode AS CompanyCodeForEdit,
cast( P_PaymentAdvice.PaymentAdviceAccountType as far_pa_subledger preserving type ) AS PaytAdviceAccountTypeForEdit,
P_PaymentAdvice.PaymentAdviceAccount AS PaymentAdviceAccountForEdit,
P_PaymentAdvice.PaymentAdvice AS PaymentAdviceForEdit,
P_PaymentAdvice.PaymentDocument AS PaymentDocument,
P_PaymentAdvice.AccountByShipper AS AccountByShipper,
P_PaymentAdvice.PaymentCurrency AS PaymentCurrency,
P_PaymentAdvice.PaymentDate AS PaymentDate,
P_PaymentAdvice.PaidAmountInPaytCurrency AS PaidAmountInPaytCurrency,
P_PaymentAdvice.CashDiscountAmountInPaytCrcy AS CashDiscountAmountInPaytCrcy,
P_PaymentAdvice.PartnerBankCountry AS PartnerBankCountry,
P_PaymentAdvice.PartnerBankSWIFTCode AS PartnerBankSWIFTCode,
P_PaymentAdvice.CreatedByUser AS CreatedByUser,
P_PaymentAdvice.CreationDate AS CreationDate,
P_PaymentAdvice.LastChangeDate AS LastChangeDate,
P_PaymentAdvice.LastChangedByUser AS LastChangedByUser,
P_PaymentAdvice.PaymentAdviceHeaderText AS PaymentAdviceHeaderText,
P_PaymentAdvice.PaymentAdviceType AS PaymentAdviceType,
P_PaymentAdvice.PaymentAdviceTypeName AS PaymentAdviceTypeName,
P_PaymentAdvice.CreationTime AS CreationTime,
cast(dats_tims_to_tstmp(CreationDate, CreationTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') as timestamp ) AS CreationDateTime,
P_PaymentAdvice.PaymentAdviceStatus AS PaymentAdviceStatus,
P_PaymentAdvice.PaytAdvcDiffDeterminationRule AS PaytAdvcDiffDeterminationRule,
P_PaymentAdvice.PaytAdvcDiffDetnRuleDesc AS PaytAdvcDiffDetnRuleDesc,
P_PaymentAdvice.PaymentAdviceSelectionRule AS PaymentAdviceSelectionRule,
P_PaymentAdvice.PaytAdviceSelectionRuleDesc AS PaytAdviceSelectionRuleDesc,
P_PaymentAdvice.OriginalReferenceDocument AS OriginalReferenceDocument,
P_PaymentAdvice.FullName AS FullName,
P_PaymentAdvice.OrganizationBPName1 AS OrganizationBPName1,
P_PaymentAdvice.OrganizationBPName2 AS OrganizationBPName2,
P_PaymentAdvice.PaymentAdviceIsHeld AS PaymentAdviceIsHeld,
CompanyCodeName,
cast('' as avik_ml_is_processed) AS PaymentAdviceIsExtracted,
cast( 0 as avik_ml_confidence) AS PaytAdviceExtractorConfidence,
cast('' as avik_ml_uuid) AS PaymentAdviceExtractorUUID,
P_PaymentAdvice.PaymentAdviceUUID AS PaymentAdviceUUID,
cast('' as far_pa_ml_extraction_status) AS PaymentAdviceExtractionStatus,
cast ('' as far_pa_extractor_type) AS PaymentAdviceExtractorType,
cast( 0 as farp_pa_total_pages) AS PaytAdviceTotalNumberOfPages,
AccountingClerk,
cast( P_PaymentAdvice._AccountingClerk.AccountingClerkName as farp_accounting_clerk_name preserving type ) AS AccountingClerkName,
Customer,
cast( 0 as farp_pa_item_total_amount) AS PaymentAdviceItemTotalAmount,
BankReference,
BusinessPartnerName,
CAPaymentDocument,
ContractAccount,
CAPaymentAdvice,
P_PaymentAdvice._BusinessPartner AS _BusinessPartner,
P_PaymentAdvice._AccountingClerk AS _AccountingClerk,
P_PaymentAdvice._Customer AS _Customer,
P_PaymentAdvice._CustomerCompany AS _CustomerCompany,
P_PaymentAdvice._Supplier AS _Supplier,
P_PaymentAdvice._SupplierCompany AS _SupplierCompany,
P_PaymentAdvice._CompanyCode AS _CompanyCode,
P_PaymentAdvice._Currency AS _Currency,
P_PaymentAdvice._PaytAdvcDiffDeterminationRule AS _PaytAdvcDiffDeterminationRule,
P_PaymentAdvice._PaytAdviceSelRules AS _PaytAdviceSelRules,
P_PaymentAdvice._UserContactCard AS _UserContactCard,
P_PaymentAdvice._PaymentAdviceType AS _PaymentAdviceType
FROM P_PaymentAdvice
LEFT OUTER JOIN I_PaymentAdviceItemTP AS _PaymentAdviceItem ON CompanyCode = _PaymentAdviceItem.CompanyCode AND PaymentAdviceAccountType = _PaymentAdviceItem.PaymentAdviceAccountType AND PaymentAdviceAccount = _PaymentAdviceItem.PaymentAdviceAccount AND PaymentAdvice = _PaymentAdviceItem.PaymentAdvice -- association [1..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeForEdit ON CompanyCodeForEdit = _CompanyCodeForEdit.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_Customer AS _CustomerForEdit ON PaymentAdviceAccountForEdit = _CustomerForEdit.Customer AND PaytAdviceAccountTypeForEdit = 'D' -- association [0..1]
LEFT OUTER JOIN I_PaymentAdviceSubledger AS _PaymentAdviceSubledger ON PaytAdviceAccountTypeForEdit = _PaymentAdviceSubledger.PaymentAdviceSubledger -- 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