I_PaymentRequestTP

DDL: I_PAYMENTREQUESTTP SQL: IPAYMENTREQTP Type: view TRANSACTIONAL

Payment Request Draft

I_PaymentRequestTP is a Transactional CDS View that provides data about "Payment Request Draft" in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, I_PaymentRequest) and exposes 112 fields with key field PaymentRequest. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_OperationalAcctgDocItem _AccountingDocItem002 left_outer
I_PaymentRequest _PaymentRequest from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] P_PFFPCustomerSupplierBankType _BankType $projection.PaymentRequest = _BankType.PaymentRequest
[1..1] E_PaymentRequest _Extension $projection.PaymentRequest = _Extension.PaymentRequest

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName IPAYMENTREQTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Payment Request Draft view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.sapObjectNodeType.name PaymentRequest view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.writeDraftPersistence PAYRQ_DRAFT view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (112)

KeyFieldSource TableSource FieldDescription
KEY PaymentRequest I_PaymentRequest PaymentRequest
CreatedByUser I_PaymentRequest CreatedByUser User Name
AccountingDocumentCreationDate I_PaymentRequest AccountingDocumentCreationDate Journal Entry Date
PaymentRequestAmountInPaytCrcy I_PaymentRequest PaymentRequestAmountInPaytCrcy
PaymentRequestCurrency I_PaymentRequest PaymentRequestCurrency
PaymentRequestAmountInCCCrcy I_PaymentRequest PaymentRequestAmountInCCCrcy LC Amount
CompanyCodeCurrency I_PaymentRequest CompanyCodeCurrency Local Currency
PayeeName I_PaymentRequest PayeeName
PayeeBankCountry I_PaymentRequest PayeeBankCountry
PayeeBankInternalID I_PaymentRequest PayeeBankInternalID
BankDetailReference I_PaymentRequest BankDetailReference
PayeeBankControlKey I_PaymentRequest PayeeBankControlKey
PayeeBank I_PaymentRequest PayeeBank
PayeeBankAccount
BankAccountHolderName I_PaymentRequest BankAccountHolderName Account Holder
PayeeTitle I_PaymentRequest PayeeTitle Title
PayeePostalCode I_PaymentRequest PayeePostalCode Payee Postal Code
PayeePOBox I_PaymentRequest PayeePOBox PO Box
POBoxPostalCode I_PaymentRequest POBoxPostalCode PO Box Postal Code
PayeeAdditionalName2 I_PaymentRequest PayeeAdditionalName2
PayeeAdditionalName3 I_PaymentRequest PayeeAdditionalName3
PayeeAdditionalName4 I_PaymentRequest PayeeAdditionalName4
PayeeCityName I_PaymentRequest PayeeCityName
PayeeStreet I_PaymentRequest PayeeStreet
PayeeCountry I_PaymentRequest PayeeCountry
PayeeRegion I_PaymentRequest PayeeRegion
PayeeLanguage I_PaymentRequest PayeeLanguage
PayeeFaxNumber I_PaymentRequest PayeeFaxNumber
PayeeTelephoneNumber I_PaymentRequest PayeeTelephoneNumber
PayeeIBAN I_PaymentRequest PayeeIBAN IBAN of the Payee
ReferenceTypeText I_PaymentRequest ReferenceTypeText
PaymentReference I_PaymentRequest PaymentReference Payment Reference
CompanyCode I_PaymentRequest CompanyCode Receiver Company Code
BusinessArea I_PaymentRequest BusinessArea Business Area
DocumentItemTextendasDocumentItemText
PayingCompanyCode I_PaymentRequest PayingCompanyCode Paying Company Code
HouseBank I_PaymentRequest HouseBank House Bank
HouseBankAccount I_PaymentRequest HouseBankAccount House Bank Account
AccountingDocument I_PaymentRequest AccountingDocument Journal Entry
ClearingAccountingDocument I_PaymentRequest ClearingAccountingDocument Clearing Journal Entry
ClearingDate I_PaymentRequest ClearingDate Clearing Date
ClearingFiscalYear _CalendarDateForCompanyCode FiscalYear G/L Fiscal Year
PaymentMethod I_PaymentRequest PaymentMethod Pymt Meth.
PaymentMethodSupplement I_PaymentRequest PaymentMethodSupplement Pmnt Meth. Sup.
IsSinglePayment I_PaymentRequest IsSinglePayment
ValueDate I_PaymentRequest ValueDate Value Date
DataExchangeInstructionKey I_PaymentRequest DataExchangeInstructionKey Instruction Key
DataExchangeInstruction1 I_PaymentRequest DataExchangeInstruction1 Instruction 1
DataExchangeInstruction2 I_PaymentRequest DataExchangeInstruction2 Instruction 2
DataExchangeInstruction3 I_PaymentRequest DataExchangeInstruction3 Instruction 3
DataExchangeInstruction4 I_PaymentRequest DataExchangeInstruction4 Instruction 4
IsUrgentPayment
PaymentRequestOrigin I_PaymentRequest PaymentRequestOrigin
ReleaseDate I_PaymentRequest ReleaseDate Release Date
ReleasedByUser I_PaymentRequest ReleasedByUser Released By
PaymentRequestPostingDate I_PaymentRequest PaymentRequestPostingDate
PostingCreatedByUser I_PaymentRequest PostingCreatedByUser User: Posting
PaytReqIsReleasedForPosting I_PaymentRequest PaytReqIsReleasedForPosting
PaytReqIsCompleted I_PaymentRequest PaytReqIsCompleted
PaytReqIsReleasedForPayment I_PaymentRequest PaytReqIsReleasedForPayment
IsReversed I_PaymentRequest IsReversed Reversed?
ReversalReason I_PaymentRequest ReversalReason Reversal Reason
StateCentralBankPaymentReason I_PaymentRequest StateCentralBankPaymentReason SCB Ind.
SupplyingCountry I_PaymentRequest SupplyingCountry Supplying Ctry/Reg.
TaxID1 I_PaymentRequest TaxID1 Tax Number 1
BankChain
PaymentRequestType
CustomerBankType _BankType CustomerBankType
SupplierBankType _BankType SupplierBankType Partner Bank Type
LastChangedByUser
LastChangeTime
LastChangeDate
CreationTime
PaymentRequestVariant
PaymentRepetitiveCode I_PaymentRequest PaymentRepetitiveCode
PayeePaymentSystem I_PaymentRequest PayeePaymentSystem Payment System
PayeeAliasType I_PaymentRequest PayeeAliasType Payee Alias Type
PayeeAliasName I_PaymentRequest PayeeAliasName Payee Alias
FiscalYear I_PaymentRequest FiscalYear G/L Fiscal Year
BankCountry I_PaymentRequest BankCountry Bank Ctry/Rgn. Key
BankInternalID I_PaymentRequest BankInternalID Bank Key
GLAccount I_PaymentRequest GLAccount General Ledger
StatusCode I_PaymentRequest StatusCode Statuscode
FiscalYearVariant _PayingCompanyCode FiscalYearVariant FY Variant
AmountInAdditionalCurrency1 I_PaymentRequest AmountInAdditionalCurrency1 Amount in Additional Currency 1
AdditionalCurrency1 I_PaymentRequest AdditionalCurrency1 Local curr. 2
AmountInAdditionalCurrency2 I_PaymentRequest AmountInAdditionalCurrency2 LC2 Amount
AdditionalCurrency2 I_PaymentRequest AdditionalCurrency2 Local curr. 3
PaymentReason I_PaymentRequest PaymentReason Payment Reason
BankAliasEntryIsSelected
PaymentRequestReferenceText
_PayeeBank I_PaymentRequest _PayeeBank
_Bank I_PaymentRequest _Bank
_HouseBankAccount I_PaymentRequest _HouseBankAccount
_BusinessAreaText I_PaymentRequest _BusinessAreaText
_CompanyCode I_PaymentRequest _CompanyCode
_PayingCompanyCode I_PaymentRequest _PayingCompanyCode
_PaymentRequestCurrency I_PaymentRequest _PaymentRequestCurrency
_CompanyCodeCurrency I_PaymentRequest _CompanyCodeCurrency
_AdditionalCurrency1 I_PaymentRequest _AdditionalCurrency1
_AdditionalCurrency2 I_PaymentRequest _AdditionalCurrency2
_DataExchangeInstructionKeys I_PaymentRequest _DataExchangeInstructionKeys
_PaymentMethod I_PaymentRequest _PaymentMethod
_PaytReqChangeAndPost I_PaymentRequest _PaytReqChangeAndPost
_SystemStatusText I_PaymentRequest _SystemStatusText
_ReversalReason I_PaymentRequest _ReversalReason
_CalendarDateForCompanyCode I_PaymentRequest _CalendarDateForCompanyCode
_PaymentReason I_PaymentRequest _PaymentReason
_Customer _Customer
_Supplier _Supplier
_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_PaymentRequestTP.
-- 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: IPAYMENTREQTP

CREATE VIEW I_PaymentRequestTP AS
SELECT
  _PaymentRequest.PaymentRequest AS PaymentRequest,
  _PaymentRequest.CreatedByUser AS CreatedByUser,
  _PaymentRequest.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
  _PaymentRequest.PaymentRequestAmountInPaytCrcy AS PaymentRequestAmountInPaytCrcy,
  _PaymentRequest.PaymentRequestCurrency AS PaymentRequestCurrency,
  _PaymentRequest.PaymentRequestAmountInCCCrcy AS PaymentRequestAmountInCCCrcy,
  _PaymentRequest.CompanyCodeCurrency AS CompanyCodeCurrency,
  _PaymentRequest.PayeeName AS PayeeName,
  _PaymentRequest.PayeeBankCountry AS PayeeBankCountry,
  _PaymentRequest.PayeeBankInternalID AS PayeeBankInternalID,
  _PaymentRequest.BankDetailReference AS BankDetailReference,
  _PaymentRequest.PayeeBankControlKey AS PayeeBankControlKey,
  _PaymentRequest.PayeeBank AS PayeeBank,
  cast(_PaymentRequest.PayeeBankAccount as fap_bpa_dzbnkn) AS PayeeBankAccount,
  _PaymentRequest.BankAccountHolderName AS BankAccountHolderName,
  _PaymentRequest.PayeeTitle AS PayeeTitle,
  _PaymentRequest.PayeePostalCode AS PayeePostalCode,
  _PaymentRequest.PayeePOBox AS PayeePOBox,
  _PaymentRequest.POBoxPostalCode AS POBoxPostalCode,
  _PaymentRequest.PayeeAdditionalName2 AS PayeeAdditionalName2,
  _PaymentRequest.PayeeAdditionalName3 AS PayeeAdditionalName3,
  _PaymentRequest.PayeeAdditionalName4 AS PayeeAdditionalName4,
  _PaymentRequest.PayeeCityName AS PayeeCityName,
  _PaymentRequest.PayeeStreet AS PayeeStreet,
  _PaymentRequest.PayeeCountry AS PayeeCountry,
  _PaymentRequest.PayeeRegion AS PayeeRegion,
  _PaymentRequest.PayeeLanguage AS PayeeLanguage,
  _PaymentRequest.PayeeFaxNumber AS PayeeFaxNumber,
  _PaymentRequest.PayeeTelephoneNumber AS PayeeTelephoneNumber,
  _PaymentRequest.PayeeIBAN AS PayeeIBAN,
  _PaymentRequest.ReferenceTypeText AS ReferenceTypeText,
  _PaymentRequest.PaymentReference AS PaymentReference,
  _PaymentRequest.CompanyCode AS CompanyCode,
  _PaymentRequest.BusinessArea AS BusinessArea,
  case when _AccountingDocItem002.DocumentItemText is null then _PaymentRequest._PaytReqChangeAndPost.DocumentItemText else _AccountingDocItem002.DocumentItemText end as DocumentItemText AS DocumentItemTextendasDocumentItemText,
  _PaymentRequest.PayingCompanyCode AS PayingCompanyCode,
  _PaymentRequest.HouseBank AS HouseBank,
  _PaymentRequest.HouseBankAccount AS HouseBankAccount,
  _PaymentRequest.AccountingDocument AS AccountingDocument,
  _PaymentRequest.ClearingAccountingDocument AS ClearingAccountingDocument,
  _PaymentRequest.ClearingDate AS ClearingDate,
  _CalendarDateForCompanyCode.FiscalYear AS ClearingFiscalYear,
  _PaymentRequest.PaymentMethod AS PaymentMethod,
  _PaymentRequest.PaymentMethodSupplement AS PaymentMethodSupplement,
  _PaymentRequest.IsSinglePayment AS IsSinglePayment,
  _PaymentRequest.ValueDate AS ValueDate,
  _PaymentRequest.DataExchangeInstructionKey AS DataExchangeInstructionKey,
  _PaymentRequest.DataExchangeInstruction1 AS DataExchangeInstruction1,
  _PaymentRequest.DataExchangeInstruction2 AS DataExchangeInstruction2,
  _PaymentRequest.DataExchangeInstruction3 AS DataExchangeInstruction3,
  _PaymentRequest.DataExchangeInstruction4 AS DataExchangeInstruction4,
  _PaymentRequest._DataExchangeInstructionKeys.IsUrgentPayment AS IsUrgentPayment,
  _PaymentRequest.PaymentRequestOrigin AS PaymentRequestOrigin,
  _PaymentRequest.ReleaseDate AS ReleaseDate,
  _PaymentRequest.ReleasedByUser AS ReleasedByUser,
  _PaymentRequest.PaymentRequestPostingDate AS PaymentRequestPostingDate,
  _PaymentRequest.PostingCreatedByUser AS PostingCreatedByUser,
  _PaymentRequest.PaytReqIsReleasedForPosting AS PaytReqIsReleasedForPosting,
  _PaymentRequest.PaytReqIsCompleted AS PaytReqIsCompleted,
  _PaymentRequest.PaytReqIsReleasedForPayment AS PaytReqIsReleasedForPayment,
  _PaymentRequest.IsReversed AS IsReversed,
  _PaymentRequest.ReversalReason AS ReversalReason,
  _PaymentRequest.StateCentralBankPaymentReason AS StateCentralBankPaymentReason,
  _PaymentRequest.SupplyingCountry AS SupplyingCountry,
  _PaymentRequest.TaxID1 AS TaxID1,
  _PaymentRequest._PaytReqChangeAndPost.BankChain AS BankChain,
  cast( _BankType.PaymentRequestType as farp_payrq_type ) AS PaymentRequestType,
  _BankType.CustomerBankType AS CustomerBankType,
  _BankType.SupplierBankType AS SupplierBankType,
  _PaymentRequest._PaytReqChangeAndPost.LastChangedByUser AS LastChangedByUser,
  _PaymentRequest._PaytReqChangeAndPost.LastChangeTime AS LastChangeTime,
  _PaymentRequest._PaytReqChangeAndPost.LastChangeDate AS LastChangeDate,
  _PaymentRequest._PaytReqChangeAndPost.CreationTime AS CreationTime,
  cast(' ' as fibl_opvar) AS PaymentRequestVariant,
  _PaymentRequest.PaymentRepetitiveCode AS PaymentRepetitiveCode,
  _PaymentRequest.PayeePaymentSystem AS PayeePaymentSystem,
  _PaymentRequest.PayeeAliasType AS PayeeAliasType,
  _PaymentRequest.PayeeAliasName AS PayeeAliasName,
  _PaymentRequest.FiscalYear AS FiscalYear,
  _PaymentRequest.BankCountry AS BankCountry,
  _PaymentRequest.BankInternalID AS BankInternalID,
  _PaymentRequest.GLAccount AS GLAccount,
  _PaymentRequest.StatusCode AS StatusCode,
  _PayingCompanyCode.FiscalYearVariant AS FiscalYearVariant,
  _PaymentRequest.AmountInAdditionalCurrency1 AS AmountInAdditionalCurrency1,
  _PaymentRequest.AdditionalCurrency1 AS AdditionalCurrency1,
  _PaymentRequest.AmountInAdditionalCurrency2 AS AmountInAdditionalCurrency2,
  _PaymentRequest.AdditionalCurrency2 AS AdditionalCurrency2,
  _PaymentRequest.PaymentReason AS PaymentReason,
  cast('' as abap_boolean) AS BankAliasEntryIsSelected,
  _PaymentRequest._PaytReqAdditionalInfo[1:PaymentRequestNotificationType = 'Q'].PaymentRequestReferenceText AS PaymentRequestReferenceText,
  _PaymentRequest._PayeeBank AS _PayeeBank,
  _PaymentRequest._Bank AS _Bank,
  _PaymentRequest._HouseBankAccount AS _HouseBankAccount,
  _PaymentRequest._BusinessAreaText AS _BusinessAreaText,
  _PaymentRequest._CompanyCode AS _CompanyCode,
  _PaymentRequest._PayingCompanyCode AS _PayingCompanyCode,
  _PaymentRequest._PaymentRequestCurrency AS _PaymentRequestCurrency,
  _PaymentRequest._CompanyCodeCurrency AS _CompanyCodeCurrency,
  _PaymentRequest._AdditionalCurrency1 AS _AdditionalCurrency1,
  _PaymentRequest._AdditionalCurrency2 AS _AdditionalCurrency2,
  _PaymentRequest._DataExchangeInstructionKeys AS _DataExchangeInstructionKeys,
  _PaymentRequest._PaymentMethod AS _PaymentMethod,
  _PaymentRequest._PaytReqChangeAndPost AS _PaytReqChangeAndPost,
  _PaymentRequest._SystemStatusText AS _SystemStatusText,
  _PaymentRequest._ReversalReason AS _ReversalReason,
  _PaymentRequest._CalendarDateForCompanyCode AS _CalendarDateForCompanyCode,
  _PaymentRequest._PaymentReason AS _PaymentReason
FROM I_PaymentRequest AS _PaymentRequest
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _AccountingDocItem002 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN P_PFFPCustomerSupplierBankType AS _BankType ON PaymentRequest = _BankType.PaymentRequest  -- association [1..1]
LEFT OUTER JOIN E_PaymentRequest AS _Extension ON PaymentRequest = _Extension.PaymentRequest  -- association [1..1]
;