C_PaytMediaItem

DDL: C_PAYTMEDIAITEM SQL: CPAYTMEDIAITM Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_PaytMediaItem I_PaytMediaItem from

Parameters (6)

NameTypeDefault
P_Language sylangu
P_PaymentRunDate laufd
P_PaymentRunID laufi
P_PayingCompanyCode bukrs
P_PaymentRunIsProposal xvorl
P_PaymentMediumReference renum

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;