C_PaytMediaItem
Payment Media Item
C_PaytMediaItem is a Consumption CDS View that provides data about "Payment Media Item" in SAP S/4HANA. It reads from 1 data source (I_PaytMediaItem) and exposes 56 fields with key fields PaymentRunDate, PaymentRunID, PayingCompanyCode, PaymentRunIsProposal, PaymentDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PaytMediaItem | I_PaytMediaItem | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_PaymentRunDate | laufd | |
| P_PaymentRunID | laufi | |
| P_PayingCompanyCode | bukrs | |
| P_PaymentRunIsProposal | xvorl | |
| P_PaymentMediumReference | renum |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPAYTMEDIAITM | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Payment Media Item | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (56)
| 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 | SupplierName | Supplier Name | ||
| CustomerName | 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 | Currency | Valuation Crcy | ||
| ExchangeRate | Exchange rate | |||
| SupplierCountry | SupplierCountry | |||
| PostalCode | PostalCode | Postal Code | ||
| SupplierCityName | SupplierCityName | Supplier City | ||
| StreetAddressName | StreetAddressName | Street | ||
| SupplierRegion | SupplierRegion | |||
| PayeeBankAccount | PayeeBankAccount | |||
| SWIFTCode | SWIFTCode | SWIFT/BIC | ||
| PayeePaymentSystem | PayeePaymentSystem | |||
| PayeeAliasType | PayeeAliasType | |||
| PayeeAliasName | PayeeAliasName | |||
| PaymentSystemText | ||||
| AliasTypeText | ||||
| BankKey | BankKey | Bank Number | ||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| HouseBankCurrency | HouseBankCurrency | |||
| HouseBankIBAN | HouseBankIBAN | |||
| BankInternalID | _HouseBank | BankInternalID | Bank Key | |
| BankNameendasHouseBankName | ||||
| CityName | _HouseBank | CityName | Name | |
| StreetName | _HouseBank | StreetName | Text | |
| PaytAmountInCoCodeCurrency | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| PaymentMediumStatus | PaymentMediumStatus | |||
| BankCountry | BankCountry | Bank Ctry/Rgn. Key | ||
| CountryNameendasBankCountryName | ||||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| PaymentMediumReference | PaymentMediumReference | |||
| PaymentMediumFormat | PaymentMediumFormat | Payment Format | ||
| CompanyCodeName | CompanyCodeName | Company Name | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentMethodName | _PaymentMethod | PaymentMethodName | Text | |
| PaymentMediumHashValue | PaymentMediumHashValue | |||
| PaymentMediumHashAlgorithm | PaymentMediumHashAlgorithm | |||
| PaymentAdviceendasPaymentAdvice | ||||
| ScheduledByUser | _JobStatus | ScheduledByUser | ||
| SupplierBasicAuthorizationGrp | _Supplier | AuthorizationGroup | AuthorizGroup | |
| CustomerBasicAuthorizationGrp | _Customer | AuthorizationGroup | AuthorizGroup |
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 C_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: CPAYTMEDIAITM
-- Parameters: P_Language : sylangu, P_PaymentRunDate : laufd, P_PaymentRunID : laufi, P_PayingCompanyCode : bukrs, P_PaymentRunIsProposal : xvorl, P_PaymentMediumReference : renum
CREATE VIEW C_PaytMediaItem AS
SELECT
PaymentRunDate,
PaymentRunID,
PayingCompanyCode,
PaymentRunIsProposal,
PaymentDocument,
Supplier,
Customer,
SupplierName,
CustomerName,
cast (PaidAmountInPaytCurrency as farp_rwbtr ) AS PaidAmountInPaytCurrency,
PaymentCurrency,
PostingDate,
PaidItemDueDate,
ValueDate,
cast (AmountInCompanyCodeCurrency as farp_rbetr ) AS AmountInCompanyCodeCurrency,
Currency,
cast(ExchangeRate as abap.char(12)) AS ExchangeRate,
SupplierCountry,
PostalCode,
SupplierCityName,
StreetAddressName,
SupplierRegion,
PayeeBankAccount,
SWIFTCode,
PayeePaymentSystem,
PayeeAliasType,
PayeeAliasName,
_PayeePaymentSystem._Text[1:Language = $parameters.P_Language].PaymentSystemText AS PaymentSystemText,
_PayeeAliasType._Text[1:Language = $parameters.P_Language].AliasTypeText AS AliasTypeText,
BankKey,
HouseBank,
HouseBankAccount,
HouseBankCurrency,
HouseBankIBAN,
_HouseBank.BankInternalID AS BankInternalID,
case when _HouseBank.BankName is null then HouseBankName else _HouseBank.BankName end as HouseBankName AS BankNameendasHouseBankName,
_HouseBank.CityName AS CityName,
_HouseBank.StreetName AS StreetName,
cast (PaytAmountInCoCodeCurrency as farp_rbetr ) AS PaytAmountInCoCodeCurrency,
CompanyCodeCurrency,
PaymentMediumStatus,
BankCountry,
case when BankCountry is null or BankCountry = '' then '' else _BankCountryText[1:Language = $parameters.P_Language].CountryName end as BankCountryName AS CountryNameendasBankCountryName,
CreatedByUser,
CreationDate,
PaymentMediumReference,
PaymentMediumFormat,
CompanyCodeName,
PaymentMethod,
_PaymentMethod.PaymentMethodName AS PaymentMethodName,
PaymentMediumHashValue,
PaymentMediumHashAlgorithm,
case _PaymentAdviceHeader.PaymentAdvice when '' then '-' else _PaymentAdviceHeader.PaymentAdvice end as PaymentAdvice AS PaymentAdviceendasPaymentAdvice,
_JobStatus.ScheduledByUser AS ScheduledByUser,
_Supplier.AuthorizationGroup AS SupplierBasicAuthorizationGrp,
_Customer.AuthorizationGroup AS CustomerBasicAuthorizationGrp
FROM I_PaytMediaItem
;
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