C_BankPaymentBatchItem

DDL: C_BANKPAYMENTBATCHITEM Type: view_entity CONSUMPTION Package: ODATA_MONITOR_PAYMENT_BATCHES

Bank Payment Batch Item

C_BankPaymentBatchItem is a Consumption CDS View that provides data about "Bank Payment Batch Item" in SAP S/4HANA. It reads from 1 data source (I_MonitorBankPaymentBatchItem) and exposes 83 fields with key fields BatchUUID, PaymentBatchItem. It has 10 associations to related views. It is exposed through 2 OData services (ASQL_F0770, ASQL_F2388). Part of development package ODATA_MONITOR_PAYMENT_BATCHES.

Data Sources (1)

SourceAliasJoin Type
I_MonitorBankPaymentBatchItem BatchItem from

Associations (10)

CardinalityTargetAliasCondition
[1..1] C_BankPaymentBatch _PaymentBatch $projection.BatchUUID = _PaymentBatch.BatchUUID and $projection.PaymentBatch = _PaymentBatch.PaymentBatch
[1..1] C_BankPaymentBatchItemSupplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..*] C_InstructionKeys _InstructionKeys $projection.bankcountry = _InstructionKeys.BankCountryKey and $projection.paymentmethod = _InstructionKeys.PaymentMethod
[1..1] C_BankPaymentBatchBankDetails _BankDetails $projection.BatchUUID = _BankDetails.BatchUUID and $projection.PaymentBatchItem = _BankDetails.PaymentBatchItem
[1..1] I_Currency _Currency $projection.CompanyCodeCurrency = _Currency.Currency
[0..*] C_BankPaymentIncgStatus _IncomingStatus $projection.PaymentBatch = _IncomingStatus.PaymentBatch and $projection.PaymentBatchItem = _IncomingStatus.PaymentBatchItem
[0..1] C_PaymentLastStatusReason _LastReason $projection.PaymentBatch = _LastReason.PaymentBatch and $projection.PaymentBatchItem = _LastReason.PaymentBatchItem
[0..*] C_PaymentStatusReason _StsReason $projection.PaymentBatch = _StsReason.PaymentBatch and $projection.PaymentBatchItem = _StsReason.PaymentBatchItem
[0..*] I_PaymentStatusReasonText _GPIReasonText $projection.SWIFTGPIRsnToPaytStsRsn = _GPIReasonText.PaymentStatusReason
[0..*] I_SystemStatusText _SystemStatusText $projection.Status = _SystemStatusText.SystemStatus

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
UI.headerInfo.typeName Payment Batch Item view
UI.headerInfo.typeNamePlural Payment Batch Items view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value PaymentBatchItem view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value AmountInCompanyCodeCurrency view
VDM.viewType #CONSUMPTION view
EndUserText.label Bank Payment Batch Item view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F0770 ASQL_F0770 C2 NOT_RELEASED
ASQL_F2388 ASQL_F2388 C2 NOT_RELEASED

Fields (83)

KeyFieldSource TableSource FieldDescription
KEY BatchUUID BatchUUID Target Grp GUID
KEY PaymentBatchItem PaymentBatchItem
PaymentBatch PaymentBatch
PaymentDocument Payment Document Number
FiscalYear
Status Status Workflow Status
SystemStatusName
PaytBatItmHasMoreIncgStatuses PaytBatItmHasMoreIncgStatuses
BankPaytIncgStatusMessage BankPaytIncgStatusMessage
IsUrgentPayment IsUrgentPayment
PaymentRunID PaymentRunID
PaymentRunDate PaymentRunDate
PayingCompanyCode PayingCompanyCode Paying Company Code
CompanyCodeName
CompanyCodeCurrency CompanyCodeCurrency Local Currency
PaymentMethod
PaymentMethodName
PaymentAmountInRuleCrcy PaymentAmountInRuleCrcy
PaymentBatchRuleCurrency PaymentBatchRuleCurrency
DataExchangeCostAllocation
Supplier Supplier Supplier
SupplierName
PayeeName
PaymentRecipient PaymentRecipient
HouseBank
HouseBankAccount
BankAccountLongID BankAccountLongID
BankName
BankCountry
BankInternalID
HouseBankIBAN
BankControlKey
SWIFTCode
BankPaymentOrigin BankPaymentOrigin
PaymentBatchItemExtEndToEnd PaymentBatchItemExtEndToEnd
PaymentBatchItemExternalStatus PaymentBatchItemExternalStatus
PayeeBank
PayeeBankAccountLongID PayeeBankAccountLongID
PayeeBankName
PayeeBankCountry
PayeeSWIFTCode
PayeeIBAN
PayeeBankControlKey
PayeeBankInternalID
PostingDate
PaidItemDueDate PaidItemDueDate
PaidAmountInPaytCurrency PaidAmountInPaytCurrency Payment Amount
PaymentCurrency Payment Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
DataExchangeInstructionKey DataExchangeInstructionKey Instruction Key
DataExchangeInstrnAddlInfo
BillOfExchangeIssueDate
BillOfExchangeDueDate
Customer Customer Sold-to Party
CustomerName
PaymentBatchMergeDate PaymentBatchMergeDate
PaymentBatchMerge PaymentBatchMerge
BankPaymentGroupingOrigin
PaymentRequestPaymentGroup
SWIFTGPIReason SWIFTGPIReason
SWIFTGPIReasonName
SWIFTGPIRsnToPaytStsRsn SWIFTGPIRsnToPaytStsRsn
SWIFTTransactionReferenceUUID
PaymentStatusReasonByBank _LastReason PaymentStatusReasonByBank
PaymentStatusReasonByBankName _LastReason PaymentStatusReasonByBankName
PaymentStatusReason _LastReason PaymentStatusReason
PaymentStatusReasonName _LastReason PaymentStatusReasonName
SupplierAccountGroup _Supplier SupplierAccountGroup Account group
SupplierFinsAuthorizationGrp _Supplier AuthorizationGroup AuthorizGroup
CustomerAccountGroup
CustomerFinsAuthorizationGrp
SwitchableAuthznCheckScenSts SwitchableAuthznCheckScenSts
PayeePaymentSystem
PayeeAliasType
PayeeAliasName
_PaymentBatch _PaymentBatch
_Supplier _Supplier
_InstructionKeys _InstructionKeys
_BankDetails _BankDetails
_Currency _Currency
_IncomingStatus _IncomingStatus
_Customer _Customer
_StsReason _StsReason

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_BankPaymentBatchItem.
-- 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.

CREATE VIEW C_BankPaymentBatchItem AS
SELECT
  BatchUUID,
  PaymentBatchItem,
  PaymentBatch,
  cast( PaymentDocument as farp_vblnr ) AS PaymentDocument,
  BatchItem._FiscalCalendarDate.FiscalYear AS FiscalYear,
  Status,
  cast( _SystemStatusText[1:Language = $session.system_language].SystemStatusName as farp_bnk_com_btch_status_txt preserving type ) AS SystemStatusName,
  PaytBatItmHasMoreIncgStatuses,
  BankPaytIncgStatusMessage,
  IsUrgentPayment,
  PaymentRunID,
  PaymentRunDate,
  PayingCompanyCode,
  cast(BatchItem._CompanyCode.CompanyCodeName as farp_zbukrstxt) AS CompanyCodeName,
  CompanyCodeCurrency,
  BatchItem._PaymentProposalHeader.PaymentMethod AS PaymentMethod,
  BatchItem._PaymentProposalHeader._PaymentMethod.PaymentMethodName AS PaymentMethodName,
  PaymentAmountInRuleCrcy,
  PaymentBatchRuleCurrency,
  BatchItem._PaymentProposalHeader._DataExchangeInstructionKeys.DataExchangeCostAllocation AS DataExchangeCostAllocation,
  Supplier,
  cast(BatchItem._PaymentProposalHeader.SupplierName as suppliername) AS SupplierName,
  BatchItem._PaymentProposalHeader.PayeeName AS PayeeName,
  PaymentRecipient,
  cast(BatchItem._PaymentProposalHeader.HouseBank as farp_hbkid) AS HouseBank,
  BatchItem._PaymentProposalHeader.HouseBankAccount AS HouseBankAccount,
  BankAccountLongID,
  BatchItem._PaymentProposalHeader._Bank.BankName AS BankName,
  BatchItem._PaymentProposalHeader.BankCountry AS BankCountry,
  BatchItem._PaymentProposalHeader.BankInternalID AS BankInternalID,
  BatchItem._PaymentProposalHeader.HouseBankIBAN AS HouseBankIBAN,
  cast(BatchItem._PaymentProposalHeader.BankControlKey as farp_bnk_com_ubkon) AS BankControlKey,
  BatchItem._PaymentProposalHeader._Bank.SWIFTCode AS SWIFTCode,
  BankPaymentOrigin,
  PaymentBatchItemExtEndToEnd,
  PaymentBatchItemExternalStatus,
  cast(BatchItem._PaymentProposalHeader.PayeeBank as farp_bnk_com_dzbnkl) AS PayeeBank,
  PayeeBankAccountLongID,
  cast(BatchItem._PaymentProposalHeader._PayeeBank.BankName as farp_payeebanka) AS PayeeBankName,
  cast(BatchItem._PaymentProposalHeader.PayeeBankCountry as farp_dzbnks) AS PayeeBankCountry,
  cast(BatchItem._PaymentProposalHeader.SWIFTCode as farp_bnk_com_payee_swift) AS PayeeSWIFTCode,
  BatchItem._PaymentProposalHeader.PayeeIBAN AS PayeeIBAN,
  cast(BatchItem._PaymentProposalHeader.PayeeBankControlKey as farp_bnk_com_dzbkon) AS PayeeBankControlKey,
  cast(BatchItem._PaymentProposalHeader.PayeeBankInternalID as farp_bnk_com_dzbnky) AS PayeeBankInternalID,
  BatchItem._PaymentProposalHeader.PostingDate AS PostingDate,
  PaidItemDueDate,
  PaidAmountInPaytCurrency,
  cast( PaymentCurrency as fap_h2r_payt_currency preserving type ) AS PaymentCurrency,
  AmountInCompanyCodeCurrency,
  DataExchangeInstructionKey,
  BatchItem._PaymentProposalHeader._DataExchangeInstructionKeys.DataExchangeInstrnAddlInfo AS DataExchangeInstrnAddlInfo,
  BatchItem._PaymentProposalHeader.BillOfExchangeIssueDate AS BillOfExchangeIssueDate,
  BatchItem._PaymentProposalHeader.BillOfExchangeDueDate AS BillOfExchangeDueDate,
  Customer,
  cast( BatchItem._PaymentProposalHeader.CustomerName as farp_customer_name1_gp ) AS CustomerName,
  PaymentBatchMergeDate,
  PaymentBatchMerge,
  BatchItem._PaymentProposalHeader.BankPaymentGroupingOrigin AS BankPaymentGroupingOrigin,
  BatchItem._PaymentProposalHeader.PaymentRequestPaymentGroup AS PaymentRequestPaymentGroup,
  SWIFTGPIReason,
  cast( _GPIReasonText[1:Language = $session.system_language].PaymentStatusReasonName as bnk_com_rsn_desc preserving type ) AS SWIFTGPIReasonName,
  SWIFTGPIRsnToPaytStsRsn,
  BatchItem._PaymentProposalHeader.SWIFTTransactionReferenceUUID AS SWIFTTransactionReferenceUUID,
  _LastReason.PaymentStatusReasonByBank AS PaymentStatusReasonByBank,
  _LastReason.PaymentStatusReasonByBankName AS PaymentStatusReasonByBankName,
  _LastReason.PaymentStatusReason AS PaymentStatusReason,
  _LastReason.PaymentStatusReasonName AS PaymentStatusReasonName,
  _Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  _Supplier.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  BatchItem._Customer.CustomerAccountGroup AS CustomerAccountGroup,
  BatchItem._Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp,
  SwitchableAuthznCheckScenSts,
  BatchItem._PaymentProposalHeader.PayeePaymentSystem AS PayeePaymentSystem,
  BatchItem._PaymentProposalHeader.PayeeAliasType AS PayeeAliasType,
  BatchItem._PaymentProposalHeader.PayeeAliasName AS PayeeAliasName
FROM I_MonitorBankPaymentBatchItem AS BatchItem
LEFT OUTER JOIN C_BankPaymentBatch AS _PaymentBatch ON BatchUUID = _PaymentBatch.BatchUUID AND PaymentBatch = _PaymentBatch.PaymentBatch  -- association [1..1]
LEFT OUTER JOIN C_BankPaymentBatchItemSupplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN C_InstructionKeys AS _InstructionKeys ON bankcountry = _InstructionKeys.BankCountryKey AND paymentmethod = _InstructionKeys.PaymentMethod  -- association [0..*]
LEFT OUTER JOIN C_BankPaymentBatchBankDetails AS _BankDetails ON BatchUUID = _BankDetails.BatchUUID AND PaymentBatchItem = _BankDetails.PaymentBatchItem  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON CompanyCodeCurrency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN C_BankPaymentIncgStatus AS _IncomingStatus ON PaymentBatch = _IncomingStatus.PaymentBatch AND PaymentBatchItem = _IncomingStatus.PaymentBatchItem  -- association [0..*]
LEFT OUTER JOIN C_PaymentLastStatusReason AS _LastReason ON PaymentBatch = _LastReason.PaymentBatch AND PaymentBatchItem = _LastReason.PaymentBatchItem  -- association [0..1]
LEFT OUTER JOIN C_PaymentStatusReason AS _StsReason ON PaymentBatch = _StsReason.PaymentBatch AND PaymentBatchItem = _StsReason.PaymentBatchItem  -- association [0..*]
LEFT OUTER JOIN I_PaymentStatusReasonText AS _GPIReasonText ON SWIFTGPIRsnToPaytStsRsn = _GPIReasonText.PaymentStatusReason  -- association [0..*]
LEFT OUTER JOIN I_SystemStatusText AS _SystemStatusText ON Status = _SystemStatusText.SystemStatus  -- association [0..*]
;