C_PaymentRequest

DDL: C_PAYMENTREQUEST SQL: CPAYMENTREQUEST Type: view CONSUMPTION Package: ODATA_PROCESS_FF_PAYMENTS

Payment Requests

C_PaymentRequest is a Consumption CDS View that provides data about "Payment Requests" in SAP S/4HANA. It reads from 1 data source (I_PaymentRequestTP) and exposes 135 fields with key field PaymentRequest. It has 6 associations to related views. It is exposed through 2 OData services (ASQL_F2564, ASQL_F8654). Part of development package ODATA_PROCESS_FF_PAYMENTS.

Data Sources (1)

SourceAliasJoin Type
I_PaymentRequestTP _PaymentRequest from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_UserContactCard _UserContactCard $projection.CreatedByUser = _UserContactCard.ContactCardID
[1..1] I_UserContactCard _ChangeUserContactCard $projection.LastChangedByUser = _ChangeUserContactCard.ContactCardID
[1..1] I_UserContactCard _ReleaseUserContactCard $projection.ReleasedByUser = _ReleaseUserContactCard.ContactCardID
[1..1] I_UserContactCard _PostUserContactCard $projection.PostingCreatedByUser = _PostUserContactCard.ContactCardID
[0..1] C_PaymentBatchPaymentDocument _BatchDocument $projection.ClearingAccountingDocument = _BatchDocument.PaymentDocument and $projection.PayingCompanyCode = _BatchDocument.PayingCompanyCode and $projection.ClearingFiscalYear = _BatchDocument.FiscalYear
[0..1] I_CurrencyText _CurrencyText _CurrencyText.Currency = _PaymentRequest.PaymentRequestCurrency and _CurrencyText.Language = $session.system_language

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName CPAYMENTREQUEST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Payment Requests view
Search.searchable true view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Payment Request view
UI.headerInfo.typeNamePlural Payment Requests view
UI.headerInfo.title.label Payment Request view
UI.headerInfo.title.value PaymentRequest view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F2564 ASQL_F2564 C2 NOT_RELEASED
ASQL_F8654 ASQL_F8654 C2 NOT_RELEASED

Fields (135)

KeyFieldSource TableSource FieldDescription
KEY PaymentRequest I_PaymentRequestTP PaymentRequest
CreatedByUser I_PaymentRequestTP CreatedByUser User Name
CreatedByUserName _UserContactCard FullName Name
AccountingDocumentCreationDate I_PaymentRequestTP AccountingDocumentCreationDate Journal Entry Date
CreationDateTime I_PaymentRequestTP CreationDateTime Timestamp
LastChangeDateTime I_PaymentRequestTP LastChangeDateTime Timestamp
LastChangedByUser I_PaymentRequestTP LastChangedByUser User Name
LastChangedByUserName _ChangeUserContactCard FullName Name
StatusCode I_PaymentRequestTP StatusCode Statuscode
SystemStatusName
PaymentRequestType I_PaymentRequestTP PaymentRequestType
PaymentRequestVariant I_PaymentRequestTP PaymentRequestVariant
PaymentRequestTemplate I_PaymentRequestTP PaymentRequestTemplate
PaymentRepetitiveCode I_PaymentRequestTP PaymentRepetitiveCode
Customer I_PaymentRequestTP Customer Sold-to Party
Supplier I_PaymentRequestTP Supplier Supplier
PayeeName I_PaymentRequestTP PayeeName
CustomerName _Customer CustomerName Name of Customer
SupplierName _Supplier SupplierName Supplier Name
PayeeTitle I_PaymentRequestTP PayeeTitle
PayeeAdditionalName2 I_PaymentRequestTP PayeeAdditionalName2
PayeeAdditionalName3 I_PaymentRequestTP PayeeAdditionalName3
PayeeAdditionalName4 I_PaymentRequestTP PayeeAdditionalName4
PayeeCityName I_PaymentRequestTP PayeeCityName
PayeeStreet I_PaymentRequestTP PayeeStreet
PayeePostalCode I_PaymentRequestTP PayeePostalCode
PayeeCountry I_PaymentRequestTP PayeeCountry
PayeeRegion I_PaymentRequestTP PayeeRegion
PayeePOBox I_PaymentRequestTP PayeePOBox
POBoxPostalCode I_PaymentRequestTP POBoxPostalCode PO Box Postal Code
PayeeLanguage I_PaymentRequestTP PayeeLanguage
PayeeFaxNumber I_PaymentRequestTP PayeeFaxNumber
PayeeTelephoneNumber I_PaymentRequestTP PayeeTelephoneNumber
SupplierBankType I_PaymentRequestTP SupplierBankType Partner Bank Type
CustomerBankType I_PaymentRequestTP CustomerBankType
PayeeBankCountry I_PaymentRequestTP PayeeBankCountry
PayeeBankCountryName
PayeeBankInternalID I_PaymentRequestTP PayeeBankInternalID
PayeeBankAccount I_PaymentRequestTP PayeeBankAccount
BankDetailReference I_PaymentRequestTP BankDetailReference
PayeeBankControlKey I_PaymentRequestTP PayeeBankControlKey
PayeeBankName
PayeeIBAN I_PaymentRequestTP PayeeIBAN
BankAccountHolderName I_PaymentRequestTP BankAccountHolderName Account Holder
PayeeBank I_PaymentRequestTP PayeeBank
PayeePaymentSystem I_PaymentRequestTP PayeePaymentSystem
PayeeAliasType I_PaymentRequestTP PayeeAliasType
PayeeAliasName I_PaymentRequestTP PayeeAliasName
TradingPartner I_PaymentRequestTP TradingPartner Trading Partner
PaymentSystemText
AliasTypeText
CompanyCode I_PaymentRequestTP CompanyCode Receiver Company Code
AccountingDocument I_PaymentRequestTP AccountingDocument Journal Entry
FiscalYear I_PaymentRequestTP FiscalYear G/L Fiscal Year
CompanyCodeName
CompanyName Trading Partner Name
CompanyCodeCountry
BusinessArea I_PaymentRequestTP BusinessArea Business Area
BusinessAreaName
FinancialAccountType I_PaymentRequestTP FinancialAccountType Fin. Account Type
FinancialAccountTypeName
CustomerSupplierAccount I_PaymentRequestTP CustomerSupplierAccount
DocumentItemText I_PaymentRequestTP DocumentItemText Text
PaymentBatch _BatchDocument PaymentBatch
BatchUUID _BatchDocument BatchUUID Target Grp GUID
PaymentBatchItem _BatchDocument PaymentBatchItem
PaymentBatchStatusText _BatchDocument PaymentBatchStatusText
PayingCompanyCode I_PaymentRequestTP PayingCompanyCode Paying Company Code
ClearingAccountingDocument I_PaymentRequestTP ClearingAccountingDocument Clearing Journal Entry
ClearingDate I_PaymentRequestTP ClearingDate Clearing Date
ClearingFiscalYear
PayingCompanyCodeName Paying Company Name
BankCountry I_PaymentRequestTP BankCountry Bank Ctry/Rgn. Key
HouseBank I_PaymentRequestTP HouseBank House Bank
BankName House Bank Name
BankInternalID I_PaymentRequestTP BankInternalID Bank Key
HouseBankAccount I_PaymentRequestTP HouseBankAccount House Bank Account
HouseBankAccountDescription
PaymentRequestAmountInPaytCrcy I_PaymentRequestTP PaymentRequestAmountInPaytCrcy
PaymentRequestCurrency I_PaymentRequestTP PaymentRequestCurrency
CurrencyName _CurrencyText CurrencyName
PaymentRequestAmountInCCCrcy I_PaymentRequestTP PaymentRequestAmountInCCCrcy
CompanyCodeCurrency I_PaymentRequestTP CompanyCodeCurrency Local Currency
AmountInAdditionalCurrency1 I_PaymentRequestTP AmountInAdditionalCurrency1 Amount in Additional Currency 1
AdditionalCurrency1 I_PaymentRequestTP AdditionalCurrency1 Local curr. 2
AmountInAdditionalCurrency2 I_PaymentRequestTP AmountInAdditionalCurrency2 LC2 Amount
AdditionalCurrency2 I_PaymentRequestTP AdditionalCurrency2 Local curr. 3
PaymentMethod I_PaymentRequestTP PaymentMethod Pymt Meth.
PaymentMethodSupplement I_PaymentRequestTP PaymentMethodSupplement Pmnt Meth. Sup.
PaymentMethodName
ValueDate I_PaymentRequestTP ValueDate Value Date
ReferenceTypeText I_PaymentRequestTP ReferenceTypeText
PaymentReference I_PaymentRequestTP PaymentReference Payment Reference
PaymentReason I_PaymentRequestTP PaymentReason Payment Reason
PaymentReasonText
IsSinglePayment I_PaymentRequestTP IsSinglePayment
DataExchangeInstructionKey I_PaymentRequestTP DataExchangeInstructionKey Instruction Key
DataExchangeInstruction1 I_PaymentRequestTP DataExchangeInstruction1 Instruction 1
DataExchangeInstruction2 I_PaymentRequestTP DataExchangeInstruction2 Instruction 2
DataExchangeInstruction3 I_PaymentRequestTP DataExchangeInstruction3 Instruction 3
DataExchangeInstruction4 I_PaymentRequestTP DataExchangeInstruction4 Instruction 4
StateCentralBankPaymentReason I_PaymentRequestTP StateCentralBankPaymentReason SCB Ind.
SupplyingCountry I_PaymentRequestTP SupplyingCountry Supplying Ctry/Reg.
TaxID1 I_PaymentRequestTP TaxID1 Tax Number 1
BankChain I_PaymentRequestTP BankChain
PaymentRequestReferenceText I_PaymentRequestTP PaymentRequestReferenceText
IsUrgentPayment I_PaymentRequestTP IsUrgentPayment
PaymentRequestOrigin I_PaymentRequestTP PaymentRequestOrigin
PaytReqIsReleasedForPosting I_PaymentRequestTP PaytReqIsReleasedForPosting
PaytReqIsCompleted I_PaymentRequestTP PaytReqIsCompleted
PaytReqIsReleasedForPayment I_PaymentRequestTP PaytReqIsReleasedForPayment
IsReversed I_PaymentRequestTP IsReversed Reversed?
ReversalReason I_PaymentRequestTP ReversalReason Reversal Reason
ReleaseDate I_PaymentRequestTP ReleaseDate
ReleasedByUser I_PaymentRequestTP ReleasedByUser Released By
ReleasedByUserName _ReleaseUserContactCard FullName Name
PaymentRequestPostingDate I_PaymentRequestTP PaymentRequestPostingDate
PostingCreatedByUser I_PaymentRequestTP PostingCreatedByUser
PostingCreatedByUserName _PostUserContactCard FullName Name
BankAliasEntryIsSelected BankAliasEntryIsSelected
SupplierAccountGroup _Supplier SupplierAccountGroup Account group
SupplierFinsAuthorizationGrp _Supplier AuthorizationGroup AuthorizGroup
CustomerAccountGroup _Customer CustomerAccountGroup Account group
AuthorizationGroup _Customer AuthorizationGroup AuthorizGroup
CustomerFinsAuthorizationGrp _Customer AuthorizationGroup AuthorizGroup
_CompanyCode _CompanyCode
_PayingCompanyCode _PayingCompanyCode
_PaymentRequestCurrency _PaymentRequestCurrency
_CompanyCodeCurrency _CompanyCodeCurrency
_AdditionalCurrency1 _AdditionalCurrency1
_AdditionalCurrency2 _AdditionalCurrency2
_UserContactCard _UserContactCard
_ChangeUserContactCard _ChangeUserContactCard
_PostUserContactCard _PostUserContactCard
_ReleaseUserContactCard _ReleaseUserContactCard

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_PaymentRequest.
-- 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: CPAYMENTREQUEST

CREATE VIEW C_PaymentRequest AS
SELECT
  _PaymentRequest.PaymentRequest AS PaymentRequest,
  _PaymentRequest.CreatedByUser AS CreatedByUser,
  _UserContactCard.FullName AS CreatedByUserName,
  _PaymentRequest.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
  _PaymentRequest.CreationDateTime AS CreationDateTime,
  _PaymentRequest.LastChangeDateTime AS LastChangeDateTime,
  _PaymentRequest.LastChangedByUser AS LastChangedByUser,
  _ChangeUserContactCard.FullName AS LastChangedByUserName,
  _PaymentRequest.StatusCode AS StatusCode,
  _PaymentRequest._SystemStatusText[1:Language = $session.system_language].SystemStatusName AS SystemStatusName,
  _PaymentRequest.PaymentRequestType AS PaymentRequestType,
  _PaymentRequest.PaymentRequestVariant AS PaymentRequestVariant,
  _PaymentRequest.PaymentRequestTemplate AS PaymentRequestTemplate,
  _PaymentRequest.PaymentRepetitiveCode AS PaymentRepetitiveCode,
  _PaymentRequest.Customer AS Customer,
  _PaymentRequest.Supplier AS Supplier,
  _PaymentRequest.PayeeName AS PayeeName,
  _Customer.CustomerName AS CustomerName,
  _Supplier.SupplierName AS SupplierName,
  _PaymentRequest.PayeeTitle AS PayeeTitle,
  _PaymentRequest.PayeeAdditionalName2 AS PayeeAdditionalName2,
  _PaymentRequest.PayeeAdditionalName3 AS PayeeAdditionalName3,
  _PaymentRequest.PayeeAdditionalName4 AS PayeeAdditionalName4,
  _PaymentRequest.PayeeCityName AS PayeeCityName,
  _PaymentRequest.PayeeStreet AS PayeeStreet,
  _PaymentRequest.PayeePostalCode AS PayeePostalCode,
  _PaymentRequest.PayeeCountry AS PayeeCountry,
  _PaymentRequest.PayeeRegion AS PayeeRegion,
  _PaymentRequest.PayeePOBox AS PayeePOBox,
  _PaymentRequest.POBoxPostalCode AS POBoxPostalCode,
  _PaymentRequest.PayeeLanguage AS PayeeLanguage,
  _PaymentRequest.PayeeFaxNumber AS PayeeFaxNumber,
  _PaymentRequest.PayeeTelephoneNumber AS PayeeTelephoneNumber,
  _PaymentRequest.SupplierBankType AS SupplierBankType,
  _PaymentRequest.CustomerBankType AS CustomerBankType,
  _PaymentRequest.PayeeBankCountry AS PayeeBankCountry,
  _PayeeBank._Country._Text[1:Language = $session.system_language].CountryName AS PayeeBankCountryName,
  _PaymentRequest.PayeeBankInternalID AS PayeeBankInternalID,
  _PaymentRequest.PayeeBankAccount AS PayeeBankAccount,
  _PaymentRequest.BankDetailReference AS BankDetailReference,
  _PaymentRequest.PayeeBankControlKey AS PayeeBankControlKey,
  _PaymentRequest._PayeeBank.BankName AS PayeeBankName,
  _PaymentRequest.PayeeIBAN AS PayeeIBAN,
  _PaymentRequest.BankAccountHolderName AS BankAccountHolderName,
  _PaymentRequest.PayeeBank AS PayeeBank,
  _PaymentRequest.PayeePaymentSystem AS PayeePaymentSystem,
  _PaymentRequest.PayeeAliasType AS PayeeAliasType,
  _PaymentRequest.PayeeAliasName AS PayeeAliasName,
  _PaymentRequest.TradingPartner AS TradingPartner,
  _PayeePaymentSystem._Text[1:Language = $session.system_language].PaymentSystemText AS PaymentSystemText,
  _PayeeAliasType._Text[1:Language = $session.system_language].AliasTypeText AS AliasTypeText,
  _PaymentRequest.CompanyCode AS CompanyCode,
  _PaymentRequest.AccountingDocument AS AccountingDocument,
  _PaymentRequest.FiscalYear AS FiscalYear,
  _PaymentRequest._CompanyCode.CompanyCodeName AS CompanyCodeName,
  _PaymentRequest._PartnerCompany.CompanyName AS CompanyName,
  _PaymentRequest._CompanyCode.Country AS CompanyCodeCountry,
  _PaymentRequest.BusinessArea AS BusinessArea,
  _PaymentRequest._BusinessAreaText[1:Language = $session.system_language].BusinessAreaName AS BusinessAreaName,
  _PaymentRequest.FinancialAccountType AS FinancialAccountType,
  cast(_PaymentRequest.FinancialAccountTypeName as farp_fin_acc_type_name preserving type) AS FinancialAccountTypeName,
  _PaymentRequest.CustomerSupplierAccount AS CustomerSupplierAccount,
  _PaymentRequest.DocumentItemText AS DocumentItemText,
  _BatchDocument.PaymentBatch AS PaymentBatch,
  _BatchDocument.BatchUUID AS BatchUUID,
  _BatchDocument.PaymentBatchItem AS PaymentBatchItem,
  _BatchDocument.PaymentBatchStatusText AS PaymentBatchStatusText,
  _PaymentRequest.PayingCompanyCode AS PayingCompanyCode,
  _PaymentRequest.ClearingAccountingDocument AS ClearingAccountingDocument,
  _PaymentRequest.ClearingDate AS ClearingDate,
  cast( _PaymentRequest.ClearingFiscalYear as fins_bat_clearing_fiscal_year preserving type ) AS ClearingFiscalYear,
  _PaymentRequest._PayingCompanyCode.CompanyCodeName AS PayingCompanyCodeName,
  _PaymentRequest.BankCountry AS BankCountry,
  _PaymentRequest.HouseBank AS HouseBank,
  _PaymentRequest._Bank.BankName AS BankName,
  _PaymentRequest.BankInternalID AS BankInternalID,
  _PaymentRequest.HouseBankAccount AS HouseBankAccount,
  _HouseBankAccount._Text[1:Language = $session.system_language].HouseBankAccountDescription AS HouseBankAccountDescription,
  _PaymentRequest.PaymentRequestAmountInPaytCrcy AS PaymentRequestAmountInPaytCrcy,
  _PaymentRequest.PaymentRequestCurrency AS PaymentRequestCurrency,
  _CurrencyText.CurrencyName AS CurrencyName,
  _PaymentRequest.PaymentRequestAmountInCCCrcy AS PaymentRequestAmountInCCCrcy,
  _PaymentRequest.CompanyCodeCurrency AS CompanyCodeCurrency,
  _PaymentRequest.AmountInAdditionalCurrency1 AS AmountInAdditionalCurrency1,
  _PaymentRequest.AdditionalCurrency1 AS AdditionalCurrency1,
  _PaymentRequest.AmountInAdditionalCurrency2 AS AmountInAdditionalCurrency2,
  _PaymentRequest.AdditionalCurrency2 AS AdditionalCurrency2,
  _PaymentRequest.PaymentMethod AS PaymentMethod,
  _PaymentRequest.PaymentMethodSupplement AS PaymentMethodSupplement,
  _PaymentRequest._PaymentMethod.PaymentMethodName AS PaymentMethodName,
  _PaymentRequest.ValueDate AS ValueDate,
  _PaymentRequest.ReferenceTypeText AS ReferenceTypeText,
  _PaymentRequest.PaymentReference AS PaymentReference,
  _PaymentRequest.PaymentReason AS PaymentReason,
  _PaymentRequest._PaymentReason._Text[1:Language = $session.system_language].PaymentReasonText AS PaymentReasonText,
  _PaymentRequest.IsSinglePayment AS IsSinglePayment,
  _PaymentRequest.DataExchangeInstructionKey AS DataExchangeInstructionKey,
  _PaymentRequest.DataExchangeInstruction1 AS DataExchangeInstruction1,
  _PaymentRequest.DataExchangeInstruction2 AS DataExchangeInstruction2,
  _PaymentRequest.DataExchangeInstruction3 AS DataExchangeInstruction3,
  _PaymentRequest.DataExchangeInstruction4 AS DataExchangeInstruction4,
  _PaymentRequest.StateCentralBankPaymentReason AS StateCentralBankPaymentReason,
  _PaymentRequest.SupplyingCountry AS SupplyingCountry,
  _PaymentRequest.TaxID1 AS TaxID1,
  _PaymentRequest.BankChain AS BankChain,
  _PaymentRequest.PaymentRequestReferenceText AS PaymentRequestReferenceText,
  _PaymentRequest.IsUrgentPayment AS IsUrgentPayment,
  _PaymentRequest.PaymentRequestOrigin AS PaymentRequestOrigin,
  _PaymentRequest.PaytReqIsReleasedForPosting AS PaytReqIsReleasedForPosting,
  _PaymentRequest.PaytReqIsCompleted AS PaytReqIsCompleted,
  _PaymentRequest.PaytReqIsReleasedForPayment AS PaytReqIsReleasedForPayment,
  _PaymentRequest.IsReversed AS IsReversed,
  _PaymentRequest.ReversalReason AS ReversalReason,
  _PaymentRequest.ReleaseDate AS ReleaseDate,
  _PaymentRequest.ReleasedByUser AS ReleasedByUser,
  _ReleaseUserContactCard.FullName AS ReleasedByUserName,
  _PaymentRequest.PaymentRequestPostingDate AS PaymentRequestPostingDate,
  _PaymentRequest.PostingCreatedByUser AS PostingCreatedByUser,
  _PostUserContactCard.FullName AS PostingCreatedByUserName,
  BankAliasEntryIsSelected,
  _Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  _Supplier.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  _Customer.CustomerAccountGroup AS CustomerAccountGroup,
  _Customer.AuthorizationGroup AS AuthorizationGroup,
  _Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp
FROM I_PaymentRequestTP AS _PaymentRequest
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangeUserContactCard ON LastChangedByUser = _ChangeUserContactCard.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _ReleaseUserContactCard ON ReleasedByUser = _ReleaseUserContactCard.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _PostUserContactCard ON PostingCreatedByUser = _PostUserContactCard.ContactCardID  -- association [1..1]
LEFT OUTER JOIN C_PaymentBatchPaymentDocument AS _BatchDocument ON ClearingAccountingDocument = _BatchDocument.PaymentDocument AND PayingCompanyCode = _BatchDocument.PayingCompanyCode AND ClearingFiscalYear = _BatchDocument.FiscalYear  -- association [0..1]
LEFT OUTER JOIN I_CurrencyText AS _CurrencyText ON _CurrencyText.Currency = _PaymentRequest.PaymentRequestCurrency AND _CurrencyText.Language = $session.system_language  -- association [0..1]
;