I_PaymentProposalForm

DDL: I_PAYMENTPROPOSALFORM SQL: IPAYTPRPSLFORM Type: view COMPOSITE

Payment Proposal Form Data Provider

I_PaymentProposalForm is a Composite CDS View that provides data about "Payment Proposal Form Data Provider" in SAP S/4HANA. It reads from 2 data sources (I_PaymentProposalHeader, I_PaymentProposalItem) and exposes 56 fields with key fields PaymentRunDate, PaymentRunID, PaymentRunIsProposal, PayingCompanyCode, Supplier. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_PaymentProposalHeader header from
I_PaymentProposalItem item inner

Parameters (5)

NameTypeDefault
P_Language sylangu
P_PaymentRunDate laufd
P_PaymentRunID laufi
P_PaymentRunIsProposal xvorl
P_CompanyCode fis_bukrs

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_CompanyCode _PayingCompanyCode $projection.PayingCompanyCode = _PayingCompanyCode.CompanyCode
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Currency _PaymentCurrency $projection.PaymentCurrency = _PaymentCurrency.Currency
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPAYTPRPSLFORM view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Payment Proposal Form Data Provider view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY PaymentRunDate
KEY PaymentRunID I_PaymentProposalHeader PaymentRunID
KEY PaymentRunIsProposal I_PaymentProposalHeader PaymentRunIsProposal
KEY PayingCompanyCode I_PaymentProposalHeader PayingCompanyCode Paying Company Code
KEY Supplier I_PaymentProposalHeader Supplier Supplier
KEY Customer I_PaymentProposalHeader Customer Sold-to Party
KEY PaymentRecipient I_PaymentProposalHeader PaymentRecipient
KEY PaymentDocument I_PaymentProposalHeader PaymentDocument Payment Document Number
KEY CompanyCode I_PaymentProposalItem CompanyCode Receiver Company Code
KEY AccountingDocument I_PaymentProposalItem AccountingDocument Journal Entry
KEY FiscalYear I_PaymentProposalItem FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem I_PaymentProposalItem AccountingDocumentItem Posting View Item
BankAccountHolderName I_PaymentProposalHeader BankAccountHolderName Account Holder
HouseBank I_PaymentProposalHeader HouseBank House Bank
HouseBankAccount I_PaymentProposalHeader HouseBankAccount House Bank Account
PaymentMethod I_PaymentProposalHeader PaymentMethod Pymt Meth.
PaymentCurrency I_PaymentProposalHeader PaymentCurrency Payment Currency
PayeePaymentSystem I_PaymentProposalHeader PayeePaymentSystem
PayeeAliasType I_PaymentProposalHeader PayeeAliasType
PayeeAliasName I_PaymentProposalHeader PayeeAliasName
PaymentSystemText
AliasTypeText
AccountingDocumentType I_PaymentProposalItem AccountingDocumentType Journal Entry Type
PaymentTerms I_PaymentProposalItem PaymentTerms Pyt Terms
DocumentDate I_PaymentProposalItem DocumentDate Journal Entry Date
PostingKey I_PaymentProposalItem PostingKey Posting Key
BusinessArea I_PaymentProposalItem BusinessArea Business Area
HouseBankName
HouseBankAccountDescription
PayingCompanyCodeName
CompanyCodeName _CompanyCode CompanyCodeName Company Name
SupplierName _Supplier SupplierName Supplier Name
CustomerName _Customer CustomerName Name of Customer
BankPaymentGroupingOrigin I_PaymentProposalHeader BankPaymentGroupingOrigin
PaidAmountInPaytCurrency
AmountInTransactionCurrency
TotDeductionAmtInTransacCrcy
NetAmountInTransacCurrency
_PaymentCurrency _PaymentCurrency
CompanyCodeCurrency I_PaymentProposalHeader CompanyCodeCurrency Local Currency
SWIFTTransactionReferenceUUID I_PaymentProposalHeader SWIFTTransactionReferenceUUID Unique Reference
PaytAmountInCoCodeCurrency
PaidWhldgTaxAmtInCoCodeCrcy
WhldgTaxAmtInPaytCrcy
PaidCashDiscountInCoCodeCrcy
CashDiscountAmountInPaytCrcy
LostCshDiscAmtInDspCrcy
LostCashDiscountInPaytCrcy
AssignmentReference I_PaymentProposalItem AssignmentReference Assignment Reference
AccountingDocExternalReference I_PaymentProposalItem DocumentReferenceID Reference
GrossAmountInCoCodeCurrency
WhldgTaxAmtInCoCodeCrcy
WhldgTaxAmtInTransacCrcy
CashDiscountAmtInCoCodeCrcy
CashDiscountAmtInTransacCrcy
_CompanyCodeCurrency _CompanyCodeCurrency

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_PaymentProposalForm.
-- 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: IPAYTPRPSLFORM
-- Parameters: P_Language : sylangu, P_PaymentRunDate : laufd, P_PaymentRunID : laufi, P_PaymentRunIsProposal : xvorl, P_CompanyCode : fis_bukrs

CREATE VIEW I_PaymentProposalForm AS
SELECT
  cast (header.PaymentRunDate as laufd) AS PaymentRunDate,
  header.PaymentRunID AS PaymentRunID,
  header.PaymentRunIsProposal AS PaymentRunIsProposal,
  header.PayingCompanyCode AS PayingCompanyCode,
  header.Supplier AS Supplier,
  header.Customer AS Customer,
  header.PaymentRecipient AS PaymentRecipient,
  header.PaymentDocument AS PaymentDocument,
  item.CompanyCode AS CompanyCode,
  item.AccountingDocument AS AccountingDocument,
  item.FiscalYear AS FiscalYear,
  item.AccountingDocumentItem AS AccountingDocumentItem,
  header.BankAccountHolderName AS BankAccountHolderName,
  header.HouseBank AS HouseBank,
  header.HouseBankAccount AS HouseBankAccount,
  header.PaymentMethod AS PaymentMethod,
  header.PaymentCurrency AS PaymentCurrency,
  header.PayeePaymentSystem AS PayeePaymentSystem,
  header.PayeeAliasType AS PayeeAliasType,
  header.PayeeAliasName AS PayeeAliasName,
  header._PayeePaymentSystem._Text[1:Language = $parameters.P_Language].PaymentSystemText AS PaymentSystemText,
  header._PayeeAliasType._Text[1:Language = $parameters.P_Language].AliasTypeText AS AliasTypeText,
  item.AccountingDocumentType AS AccountingDocumentType,
  item.PaymentTerms AS PaymentTerms,
  item.DocumentDate AS DocumentDate,
  item.PostingKey AS PostingKey,
  item.BusinessArea AS BusinessArea,
  header._Bank.BankName AS HouseBankName,
  header._HouseBankAccount._Text[1:Language = $parameters.P_Language].HouseBankAccountDescription AS HouseBankAccountDescription,
  cast(_PayingCompanyCode.CompanyCodeName as farp_zbukrstxt) AS PayingCompanyCodeName,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Supplier.SupplierName AS SupplierName,
  _Customer.CustomerName AS CustomerName,
  header.BankPaymentGroupingOrigin AS BankPaymentGroupingOrigin,
  cast(header.PaidAmountInPaytCurrency as farp_rwbtr ) AS PaidAmountInPaytCurrency,
  cast(item.AmountInTransactionCurrency as farp_wrbtv) AS AmountInTransactionCurrency,
  cast(item.TotDeductionAmtInTransacCrcy as farp_wabzv) AS TotDeductionAmtInTransacCrcy,
  cast(item.NetAmountInTransacCurrency as farp_wnetv) AS NetAmountInTransacCurrency,
  header.CompanyCodeCurrency AS CompanyCodeCurrency,
  header.SWIFTTransactionReferenceUUID AS SWIFTTransactionReferenceUUID,
  cast(header.AmountInCompanyCodeCurrency as farp_rbetr ) AS PaytAmountInCoCodeCurrency,
  cast(header._PaytProposalItemAggregation.WhldgTaxAmtInCoCodeCrcy as farp_qstev) AS PaidWhldgTaxAmtInCoCodeCrcy,
  cast(header._PaytProposalItemAggregation.WhldgTaxAmtInTransacCrcy as farp_wqstv) AS WhldgTaxAmtInPaytCrcy,
  cast(header.CashDiscountAmtInCoCodeCrcy as farp_rskon ) AS PaidCashDiscountInCoCodeCrcy,
  cast(header.CashDiscountAmtInTransacCrcy as farp_wskto) AS CashDiscountAmountInPaytCrcy,
  cast(header.LostCashDiscountInCoCodeCrcy as farp_skvhw) AS LostCshDiscAmtInDspCrcy,
  cast(header.LostCashDiscountInTransacCrcy as farp_skvfw) AS LostCashDiscountInPaytCrcy,
  item.AssignmentReference AS AssignmentReference,
  item.DocumentReferenceID AS AccountingDocExternalReference,
  cast(item.HeaderAmtInCoCodeCurrency as farp_dmbtv) AS GrossAmountInCoCodeCurrency,
  cast(item.WhldgTaxAmtInCoCodeCrcy as farp_qstev) AS WhldgTaxAmtInCoCodeCrcy,
  cast(item.WhldgTaxAmtInTransacCrcy as farp_wqstv) AS WhldgTaxAmtInTransacCrcy,
  cast(item.CashDiscountAmtInCoCodeCrcy as farp_rskon) AS CashDiscountAmtInCoCodeCrcy,
  cast(item.CashDiscountAmtInTransacCrcy as farp_wskto) AS CashDiscountAmtInTransacCrcy
FROM I_PaymentProposalHeader AS header
INNER JOIN I_PaymentProposalItem AS item ON /* join condition not captured in parsed metadata */
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_CompanyCode AS _PayingCompanyCode ON PayingCompanyCode = _PayingCompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _PaymentCurrency ON PaymentCurrency = _PaymentCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
;