C_BankPaymentBatch
Bank Payment Batch Header
C_BankPaymentBatch is a Consumption CDS View that provides data about "Bank Payment Batch Header" in SAP S/4HANA. It reads from 1 data source (C_MonitorPaymentBatch) and exposes 71 fields with key fields BatchUUID, PaymentBatch. It has 13 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)
| Source | Alias | Join Type |
|---|---|---|
| C_MonitorPaymentBatch | Batch | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_BankPaymentBatchItem | _BankPaymentBatchItem | $projection.BatchUUID = _BankPaymentBatchItem.BatchUUID |
| [0..1] | C_MntrPaymentHouseBankAccount | _BankAccounts | $projection.BatchUUID = _BankAccounts.BatchUUID |
| [0..*] | C_MntrPaymentReferenceNumber | _PaymentReferenceNumber | $projection.BatchUUID = _PaymentReferenceNumber.BatchUUID |
| [0..*] | C_BankPaymentBatchHouseBanks | _HouseBanks | $projection.BatchUUID = _HouseBanks.BatchUUID and $projection.HouseBank = _HouseBanks.HouseBank |
| [0..1] | P_BkPaytBatchHouseBank | _HouseBank | $projection.BatchUUID = _HouseBank.BatchUUID |
| [0..1] | P_BkPaytBatchPayingCoCode | _CompanyCode | $projection.BatchUUID = _CompanyCode.BatchUUID |
| [1..*] | C_BkPaytBatchHouseBankDetail | _HouseBankDetail | $projection.PaymentBatch = _HouseBankDetail.PaymentBatch |
| [1..*] | C_BkPaytBatchPayeeBankDetail | _PayeeBankDetail | $projection.PaymentBatch = _PayeeBankDetail.PaymentBatch |
| [1..1] | I_UserContactCard | _CreatedByUserContactCard | $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID |
| [1..1] | I_UserContactCard | _ChangedByUserContactCard | $projection.LastChangedByUser = _ChangedByUserContactCard.ContactCardID |
| [1..1] | I_UserContactCard | _CurrentProcessorContactCard | $projection.CurrentProcessor = _CurrentProcessorContactCard.ContactCardID |
| [0..*] | C_BankPaymentIncgStatus | _IncomingStatus | $projection.PaymentBatch = _IncomingStatus.PaymentBatch and _IncomingStatus.PaymentBatchItem = '00000' |
| [0..*] | C_PaymentStatusReason | _StsReason | $projection.PaymentBatch = _StsReason.PaymentBatch |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Search.searchable | true | view | |
| Analytics.technicalName | CBNKPAYMENTBATCH | view | |
| ObjectModel.representativeKey | PaymentBatch | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.headerInfo.typeName | Payment Batch | view | |
| UI.headerInfo.typeNamePlural | Payment Batches | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | PaymentBatch | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | PaymentBatchAmountInCCCrcy | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Bank Payment Batch Header | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0770 | ASQL_F0770 | C2 | NOT_RELEASED | |
| ASQL_F2388 | ASQL_F2388 | C2 | NOT_RELEASED |
Fields (71)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BatchUUID | C_MonitorPaymentBatch | BatchUUID | Target Grp GUID |
| KEY | PaymentBatch | C_MonitorPaymentBatch | PaymentBatch | |
| NumberOfPaymentRunDates | C_MonitorPaymentBatch | NumberOfPaymentRunDates | ||
| PaymentRunDate | C_MonitorPaymentBatch | PaymentRunDate | ||
| NumberOfPaymentRuns | C_MonitorPaymentBatch | NumberOfPaymentRuns | ||
| PaymentRunID | C_MonitorPaymentBatch | PaymentRunID | ||
| NumberOfPaymentDocuments | C_MonitorPaymentBatch | NumberOfPaymentDocuments | ||
| PaymentDocument | C_MonitorPaymentBatch | PaymentDocument | Payment Document Number | |
| PostingDate | C_MonitorPaymentBatch | PostingDate | Posting Date for GR | |
| FiscalYear | ||||
| BankPaymentOrigin | C_MonitorPaymentBatch | BankPaymentOrigin | ||
| NumberOfCompanyCodes | _CompanyCode | NumberOfCompanyCodes | ||
| CompanyCodeNameelseendasCompanyCodeName | ||||
| IncomingPaymentFileUploadDate | C_MonitorPaymentBatch | IncomingPaymentFileUploadDate | ||
| IncomingPaymentFile | C_MonitorPaymentBatch | IncomingPaymentFile | ||
| NumberOfPayments | C_MonitorPaymentBatch | NumberOfPayments | ||
| PaymentBatchRule | C_MonitorPaymentBatch | PaymentBatchRule | ||
| PaymentBatchRuleDescription | C_MonitorPaymentBatch | PaymentBatchRuleDescription | ||
| Status | C_MonitorPaymentBatch | Status | Workflow Status | |
| PaymentBatchExternalStatus | C_MonitorPaymentBatch | PaymentBatchExternalStatus | ||
| NumberOfPaytIncomingStatuses | C_MonitorPaymentBatch | NumberOfPaytIncomingStatuses | ||
| BankPaytIncgStatusMessage | C_MonitorPaymentBatch | BankPaytIncgStatusMessage | ||
| PaymentBatchAmountInCCCrcy | C_MonitorPaymentBatch | PaymentBatchAmountInCCCrcy | ||
| BankPaymentBatchCurrency | C_MonitorPaymentBatch | BankPaymentBatchCurrency | ||
| NumberOfHouseBanks | _HouseBank | NumberOfHouseBanks | ||
| HouseBankendasHouseBank | ||||
| BankNameendasBankName | ||||
| BankCountry | ||||
| CurrentProcessor | C_MonitorPaymentBatch | CurrentProcessor | ||
| ProcessorUserName | _CurrentProcessorContactCard | FullName | Name | |
| CreatedByUser | C_MonitorPaymentBatch | CreatedByUser | User Name | |
| CreatedByUserName | _CreatedByUserContactCard | FullName | Name | |
| CreationDate | C_MonitorPaymentBatch | CreationDate | Time Stamp | |
| CreationTime | C_MonitorPaymentBatch | CreationTime | Time of Change | |
| MaxPaymentAmountInCCCrcy | C_MonitorPaymentBatch | MaxPaymentAmountInCCCrcy | ||
| PaidAmountInPaytCurrency | C_MonitorPaymentBatch | PaidAmountInPaytCurrency | Payment Amount | |
| PaymentCurrency | C_MonitorPaymentBatch | PaymentCurrency | Payment Currency | |
| LastChangedByUser | C_MonitorPaymentBatch | LastChangedByUser | User Name | |
| LastChangedByUserName | _ChangedByUserContactCard | FullName | Name | |
| LastChangeDate | C_MonitorPaymentBatch | LastChangeDate | Time Stamp | |
| LastChangeTime | C_MonitorPaymentBatch | LastChangeTime | Time changed | |
| TotalPaytBatchAmountInRuleCrcy | C_MonitorPaymentBatch | TotalPaytBatchAmountInRuleCrcy | ||
| MaxPaymentAmountInRuleCrcy | C_MonitorPaymentBatch | MaxPaymentAmountInRuleCrcy | ||
| PaymentBatchRuleCurrency | ||||
| PaymentBatchGrouping1 | C_MonitorPaymentBatch | PaymentBatchGrouping1 | ||
| PaymentBatchGrouping2 | C_MonitorPaymentBatch | PaymentBatchGrouping2 | ||
| NumberOfBankAccounts | C_MonitorPaymentBatch | NumberOfBankAccounts | ||
| HouseBankAccount | C_MonitorPaymentBatch | HouseBankAccount | House Bank Account | |
| PaytBatchHasMoreReviewers | ||||
| ApproverName | ||||
| PaymentBatchUrgency | ||||
| PaidItemDueDate | C_MonitorPaymentBatch | PaidItemDueDate | ||
| NumberOfPaymentReferences | C_MonitorPaymentBatch | NumberOfPaymentReferences | ||
| PaymentMediumReference | C_MonitorPaymentBatch | PaymentMediumReference | ||
| NmbrOfSWIFTTransReference | C_MonitorPaymentBatch | NmbrOfSWIFTTransReference | ||
| SWIFTTransactionReferenceUUID | C_MonitorPaymentBatch | SWIFTTransactionReferenceUUID | Unique Reference | |
| PaymentBatchOrigin | C_MonitorPaymentBatch | PaymentBatchOrigin | ||
| SWIFTGPIReasonCodes | C_MonitorPaymentBatch | SWIFTGPIReasonCodes | ||
| _PaymentRunDate | C_MonitorPaymentBatch | _PaymentRunDate | ||
| _PaymentRun | C_MonitorPaymentBatch | _PaymentRun | ||
| _BankPaymentBatchItem | _BankPaymentBatchItem | |||
| _BankAccounts | _BankAccounts | |||
| _StsReason | _StsReason | |||
| _IncomingStatus | _IncomingStatus | |||
| _HouseBanks | _HouseBanks | |||
| _HouseBankDetail | _HouseBankDetail | |||
| _PayeeBankDetail | _PayeeBankDetail | |||
| _CreatedByUserContactCard | _CreatedByUserContactCard | |||
| _ChangedByUserContactCard | _ChangedByUserContactCard | |||
| _CurrentProcessorContactCard | _CurrentProcessorContactCard | |||
| _PaymentReferenceNumber | _PaymentReferenceNumber |
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_BankPaymentBatch.
-- 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_BankPaymentBatch AS
SELECT
Batch.BatchUUID AS BatchUUID,
Batch.PaymentBatch AS PaymentBatch,
Batch.NumberOfPaymentRunDates AS NumberOfPaymentRunDates,
Batch.PaymentRunDate AS PaymentRunDate,
Batch.NumberOfPaymentRuns AS NumberOfPaymentRuns,
Batch.PaymentRunID AS PaymentRunID,
Batch.NumberOfPaymentDocuments AS NumberOfPaymentDocuments,
Batch.PaymentDocument AS PaymentDocument,
Batch.PostingDate AS PostingDate,
Batch._FiscalCalendarDate.FiscalYear AS FiscalYear,
Batch.BankPaymentOrigin AS BankPaymentOrigin,
_CompanyCode.NumberOfCompanyCodes AS NumberOfCompanyCodes,
case _CompanyCode.NumberOfCompanyCodes when 1 then _CompanyCode._CompanyCodeName.CompanyCodeName else '' end as CompanyCodeName AS CompanyCodeNameelseendasCompanyCodeName,
Batch.IncomingPaymentFileUploadDate AS IncomingPaymentFileUploadDate,
Batch.IncomingPaymentFile AS IncomingPaymentFile,
Batch.NumberOfPayments AS NumberOfPayments,
Batch.PaymentBatchRule AS PaymentBatchRule,
Batch.PaymentBatchRuleDescription AS PaymentBatchRuleDescription,
Batch.Status AS Status,
Batch.PaymentBatchExternalStatus AS PaymentBatchExternalStatus,
Batch.NumberOfPaytIncomingStatuses AS NumberOfPaytIncomingStatuses,
Batch.BankPaytIncgStatusMessage AS BankPaytIncgStatusMessage,
Batch.PaymentBatchAmountInCCCrcy AS PaymentBatchAmountInCCCrcy,
Batch.BankPaymentBatchCurrency AS BankPaymentBatchCurrency,
_HouseBank.NumberOfHouseBanks AS NumberOfHouseBanks,
case Batch.HouseBank when '*' then '' else Batch.HouseBank end as HouseBank AS HouseBankendasHouseBank,
case Batch.HouseBank when '*' then '' else Batch._HouseBank._Bank.BankName end as BankName AS BankNameendasBankName,
Batch._HouseBank.BankCountry AS BankCountry,
Batch.CurrentProcessor AS CurrentProcessor,
_CurrentProcessorContactCard.FullName AS ProcessorUserName,
Batch.CreatedByUser AS CreatedByUser,
_CreatedByUserContactCard.FullName AS CreatedByUserName,
Batch.CreationDate AS CreationDate,
Batch.CreationTime AS CreationTime,
Batch.MaxPaymentAmountInCCCrcy AS MaxPaymentAmountInCCCrcy,
Batch.PaidAmountInPaytCurrency AS PaidAmountInPaytCurrency,
Batch.PaymentCurrency AS PaymentCurrency,
Batch.LastChangedByUser AS LastChangedByUser,
_ChangedByUserContactCard.FullName AS LastChangedByUserName,
Batch.LastChangeDate AS LastChangeDate,
Batch.LastChangeTime AS LastChangeTime,
Batch.TotalPaytBatchAmountInRuleCrcy AS TotalPaytBatchAmountInRuleCrcy,
Batch.MaxPaymentAmountInRuleCrcy AS MaxPaymentAmountInRuleCrcy,
Batch._BankPaymentBatchRuleBaseCust.PaymentBatchRuleCurrency AS PaymentBatchRuleCurrency,
Batch.PaymentBatchGrouping1 AS PaymentBatchGrouping1,
Batch.PaymentBatchGrouping2 AS PaymentBatchGrouping2,
Batch.NumberOfBankAccounts AS NumberOfBankAccounts,
Batch.HouseBankAccount AS HouseBankAccount,
cast( '' as farp_bnk_com_more_approvers preserving type ) AS PaytBatchHasMoreReviewers,
cast( '' as farp_bnk_com_approver ) AS ApproverName,
cast( Batch.PaymentBatchUrgency as farp_payt_batch_urgency preserving type ) AS PaymentBatchUrgency,
Batch.PaidItemDueDate AS PaidItemDueDate,
Batch.NumberOfPaymentReferences AS NumberOfPaymentReferences,
Batch.PaymentMediumReference AS PaymentMediumReference,
Batch.NmbrOfSWIFTTransReference AS NmbrOfSWIFTTransReference,
Batch.SWIFTTransactionReferenceUUID AS SWIFTTransactionReferenceUUID,
Batch.PaymentBatchOrigin AS PaymentBatchOrigin,
Batch.SWIFTGPIReasonCodes AS SWIFTGPIReasonCodes,
Batch._PaymentRunDate AS _PaymentRunDate,
Batch._PaymentRun AS _PaymentRun
FROM C_MonitorPaymentBatch AS Batch
LEFT OUTER JOIN C_BankPaymentBatchItem AS _BankPaymentBatchItem ON BatchUUID = _BankPaymentBatchItem.BatchUUID -- association [1..*]
LEFT OUTER JOIN C_MntrPaymentHouseBankAccount AS _BankAccounts ON BatchUUID = _BankAccounts.BatchUUID -- association [0..1]
LEFT OUTER JOIN C_MntrPaymentReferenceNumber AS _PaymentReferenceNumber ON BatchUUID = _PaymentReferenceNumber.BatchUUID -- association [0..*]
LEFT OUTER JOIN C_BankPaymentBatchHouseBanks AS _HouseBanks ON BatchUUID = _HouseBanks.BatchUUID AND HouseBank = _HouseBanks.HouseBank -- association [0..*]
LEFT OUTER JOIN P_BkPaytBatchHouseBank AS _HouseBank ON BatchUUID = _HouseBank.BatchUUID -- association [0..1]
LEFT OUTER JOIN P_BkPaytBatchPayingCoCode AS _CompanyCode ON BatchUUID = _CompanyCode.BatchUUID -- association [0..1]
LEFT OUTER JOIN C_BkPaytBatchHouseBankDetail AS _HouseBankDetail ON PaymentBatch = _HouseBankDetail.PaymentBatch -- association [1..*]
LEFT OUTER JOIN C_BkPaytBatchPayeeBankDetail AS _PayeeBankDetail ON PaymentBatch = _PayeeBankDetail.PaymentBatch -- association [1..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangedByUserContactCard ON LastChangedByUser = _ChangedByUserContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _CurrentProcessorContactCard ON CurrentProcessor = _CurrentProcessorContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN C_BankPaymentIncgStatus AS _IncomingStatus ON PaymentBatch = _IncomingStatus.PaymentBatch AND _IncomingStatus.PaymentBatchItem = '00000' -- association [0..*]
LEFT OUTER JOIN C_PaymentStatusReason AS _StsReason ON PaymentBatch = _StsReason.PaymentBatch -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA