I_PaytMediaItem
Payment Media Item
I_PaytMediaItem is a Composite CDS View that provides data about "Payment Media Item" in SAP S/4HANA. It reads from 1 data source (I_PaymentProposalHeader) and exposes 68 fields with key fields PaymentRunDate, PaymentRunID, PayingCompanyCode, PaymentRunIsProposal, PaymentDocument. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PaymentProposalHeader | _PaymentProposalHeader | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PaytMedia | _PaytMedia | $projection.PaymentRunDate = _PaytMedia.PaymentRunDate and $projection.PaymentRunID = _PaytMedia.PaymentRunID and $projection.PayingCompanyCode = _PaytMedia.PayingCompanyCode and $projection.PaymentRunIsProposal = _PaytMedia.PaymentRunIsProposal and _PaymentProposalHeader.PaymentOrigin = _PaytMedia.PaymentOrigin |
| [0..1] | I_Bank | _HouseBank | $projection.bankcountry = _HouseBank.BankCountry and $projection.bankkey = _HouseBank.BankInternalID |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..*] | I_Jobstatus | _JobStatus | $projection.ApplicationJobName = _JobStatus.ApplicationJobName |
| [0..1] | I_Paymentadviceheader | _PaymentAdviceHeader | $projection.PaymentAdvice = _PaymentAdviceHeader.PaymentAdvice and $projection.PayingCompanyCode = _PaymentAdviceHeader.CompanyCode |
| [0..1] | I_PaymentMethod | _PaymentMethod | $projection.paymentmethod = _PaymentMethod.PaymentMethod and $projection.SupplierCountry = _PaymentMethod.Country |
| [0..1] | I_Currency | _PaymentCurrency | $projection.PaymentCurrency = _PaymentCurrency.Currency |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
| [0..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [1..*] | I_CountryText | _BankCountryText | $projection.bankcountry = _BankCountryText.Country |
| [0..1] | I_PaymentSystem | _PayeePaymentSystem | $projection.PayeePaymentSystem = _PayeePaymentSystem.PaymentSystem |
| [0..1] | I_AliasType | _PayeeAliasType | $projection.PayeeAliasType = _PayeeAliasType.AliasType |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPAYTMEDIAITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Payment Media Item | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PaymentRunDate | PaymentRunDate | ||
| KEY | PaymentRunID | PaymentRunID | ||
| KEY | PayingCompanyCode | PayingCompanyCode | Paying Company Code | |
| KEY | PaymentRunIsProposal | PaymentRunIsProposal | ||
| KEY | PaymentDocument | PaymentDocument | Payment Document Number | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | Customer | Customer | Sold-to Party | |
| SupplierName | ||||
| CustomerName | _Customer | CustomerName | Name of Customer | |
| PaidAmountInPaytCurrency | Payment Amount | |||
| PaymentCurrency | PaymentCurrency | Payment Currency | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| PaidItemDueDate | PaidItemDueDate | |||
| ValueDate | ValueDate | Value Date | ||
| AmountInCompanyCodeCurrency | Local Crcy Amt | |||
| Currency | ||||
| ExchangeRate | Exchange rate | |||
| SupplierCountry | SupplierCountry | Venue: Ctry/Reg | ||
| PaymentOrigin | PaymentOrigin | |||
| PostalCode | PostalCode | Postal Code | ||
| SupplierCityName | SupplierCityName | Supplier City | ||
| StreetAddressName | StreetAddressName | Street | ||
| SupplierRegion | SupplierRegion | |||
| PayeeBankCountry | PayeeBankCountry | |||
| PayeeBank | PayeeBank | |||
| BankName | _PayeeBank | BankName | Bank Name | |
| PayeeName | PayeeName | |||
| PayeeBankAccount | PayeeBankAccount | |||
| PayeeBankAccountLongID | PayeeBankAccountLongID | |||
| PayeeBankInternalID | PayeeBankInternalID | |||
| PayeeIBAN | PayeeIBAN | |||
| SWIFTCode | SWIFTCode | SWIFT/BIC | ||
| PayeePaymentSystem | PayeePaymentSystem | |||
| PayeeAliasType | PayeeAliasType | |||
| PayeeAliasName | PayeeAliasName | |||
| HouseBank | _PaytMedia | HouseBank | House Bank | |
| HouseBankName | _Bank | BankName | Bank Name | |
| HouseBankAccount | _PaytMedia | HouseBankAccount | House Bank Account | |
| HouseBankCurrency | ||||
| BankKey | _PaytMedia | BankKey | Bank Number | |
| HouseBankIBAN | HouseBankIBAN | IBAN House Bank | ||
| PaytAmountInCoCodeCurrency | ||||
| CompanyCodeCurrency | _PaytMedia | CompanyCodeCurrency | Local Currency | |
| PaymentMediumStatus | _PaytMedia | PaymentMediumStatus | ||
| BankCountry | _PaytMedia | BankCountry | Bank Ctry/Rgn. Key | |
| CreationDate | _PaytMedia | CreationDate | Time Stamp | |
| CreatedByUser | _PaytMedia | CreatedByUser | User Name | |
| PaymentMediumReference | _PaytMedia | PaymentMediumReference | ||
| PaymentMediumFormat | _PaytMedia | PaymentMediumFormat | Payment Format | |
| CompanyCodeName | ||||
| PaymentMethod | _PaytMedia | PaymentMethod | Pymt Meth. | |
| PaymentMediumHashValue | _PaytMedia | PaymentMediumHashValue | ||
| PaymentMediumHashAlgorithm | _PaytMedia | PaymentMediumHashAlgorithm | ||
| ApplicationJobName | ||||
| PaymentAdvice | ||||
| _HouseBank | _HouseBank | |||
| _PaytMedia | _PaytMedia | |||
| _JobStatus | _JobStatus | |||
| _PaymentAdviceHeader | _PaymentAdviceHeader | |||
| _PaymentMethod | _PaymentMethod | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _PaymentCurrency | _PaymentCurrency | |||
| _Currency | _Currency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _BankCountryText | _BankCountryText | |||
| _PayeePaymentSystem | _PayeePaymentSystem | |||
| _PayeeAliasType | _PayeeAliasType |
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_PaytMediaItem.
-- 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: IPAYTMEDIAITM
CREATE VIEW I_PaytMediaItem AS
SELECT
PaymentRunDate,
PaymentRunID,
PayingCompanyCode,
PaymentRunIsProposal,
PaymentDocument,
Supplier,
Customer,
concat_with_space(SupplierName,SupplierAdditionalName,1) AS SupplierName,
_Customer.CustomerName AS CustomerName,
cast (PaidAmountInPaytCurrency as abap.curr( 23, 2 )) AS PaidAmountInPaytCurrency,
PaymentCurrency,
PostingDate,
PaidItemDueDate,
ValueDate,
cast (AmountInCompanyCodeCurrency as abap.curr( 23, 2 )) AS AmountInCompanyCodeCurrency,
_PaytMedia._Company.Currency AS Currency,
cast(ExchangeRate as abap.char(12)) AS ExchangeRate,
SupplierCountry,
PaymentOrigin,
PostalCode,
SupplierCityName,
StreetAddressName,
SupplierRegion,
PayeeBankCountry,
PayeeBank,
_PayeeBank.BankName AS BankName,
PayeeName,
PayeeBankAccount,
PayeeBankAccountLongID,
PayeeBankInternalID,
PayeeIBAN,
SWIFTCode,
PayeePaymentSystem,
PayeeAliasType,
PayeeAliasName,
_PaytMedia.HouseBank AS HouseBank,
_Bank.BankName AS HouseBankName,
_PaytMedia.HouseBankAccount AS HouseBankAccount,
_PaytMedia._HouseBankAccount.BankAccountCurrency AS HouseBankCurrency,
_PaytMedia.BankKey AS BankKey,
HouseBankIBAN,
cast (_PaytMedia.PaytAmountInCoCodeCurrency as abap.curr( 23, 2 )) AS PaytAmountInCoCodeCurrency,
_PaytMedia.CompanyCodeCurrency AS CompanyCodeCurrency,
_PaytMedia.PaymentMediumStatus AS PaymentMediumStatus,
_PaytMedia.BankCountry AS BankCountry,
_PaytMedia.CreationDate AS CreationDate,
_PaytMedia.CreatedByUser AS CreatedByUser,
_PaytMedia.PaymentMediumReference AS PaymentMediumReference,
_PaytMedia.PaymentMediumFormat AS PaymentMediumFormat,
_PaytMedia._Company.CompanyCodeName AS CompanyCodeName,
_PaytMedia.PaymentMethod AS PaymentMethod,
_PaytMedia.PaymentMediumHashValue AS PaymentMediumHashValue,
_PaytMedia.PaymentMediumHashAlgorithm AS PaymentMediumHashAlgorithm,
concat(concat(concat('F110-',PaymentRunDate),'-'),PaymentRunID) AS ApplicationJobName,
concat('07',_PaytMedia.PaymentMediumReference) AS PaymentAdvice
FROM I_PaymentProposalHeader AS _PaymentProposalHeader
LEFT OUTER JOIN I_PaytMedia AS _PaytMedia ON PaymentRunDate = _PaytMedia.PaymentRunDate AND PaymentRunID = _PaytMedia.PaymentRunID AND PayingCompanyCode = _PaytMedia.PayingCompanyCode AND PaymentRunIsProposal = _PaytMedia.PaymentRunIsProposal AND _PaymentProposalHeader.PaymentOrigin = _PaytMedia.PaymentOrigin -- association [0..1]
LEFT OUTER JOIN I_Bank AS _HouseBank ON bankcountry = _HouseBank.BankCountry AND bankkey = _HouseBank.BankInternalID -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Jobstatus AS _JobStatus ON ApplicationJobName = _JobStatus.ApplicationJobName -- association [0..*]
LEFT OUTER JOIN I_Paymentadviceheader AS _PaymentAdviceHeader ON PaymentAdvice = _PaymentAdviceHeader.PaymentAdvice AND PayingCompanyCode = _PaymentAdviceHeader.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PaymentMethod AS _PaymentMethod ON paymentmethod = _PaymentMethod.PaymentMethod AND SupplierCountry = _PaymentMethod.Country -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PaymentCurrency ON PaymentCurrency = _PaymentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _BankCountryText ON bankcountry = _BankCountryText.Country -- association [1..*]
LEFT OUTER JOIN I_PaymentSystem AS _PayeePaymentSystem ON PayeePaymentSystem = _PayeePaymentSystem.PaymentSystem -- association [0..1]
LEFT OUTER JOIN I_AliasType AS _PayeeAliasType ON PayeeAliasType = _PayeeAliasType.AliasType -- 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