I_ARLockBoxBatch
Lock Box Batch Header Data
I_ARLockBoxBatch is a Composite CDS View that provides data about "Lock Box Batch Header Data" in SAP S/4HANA. It reads from 3 data sources (dd07v, P_Arlockboxbatch, P_Arlockboxbatchlatest) and exposes 35 fields with key fields LockboxBatchInternalKey, LockboxBatch. It has 6 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| dd07v | dd07v | left_outer |
| P_Arlockboxbatch | hdr | from |
| P_Arlockboxbatchlatest | latestbatch | left_outer |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _Company | _Company.CompanyCode = $projection.CompanyCode |
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.Currency |
| [0..1] | I_Housebank | _Housebank | _Housebank.CompanyCode = $projection.CompanyCode and _Housebank.HouseBank = $projection.HouseBank |
| [0..1] | I_ARLockbox | _Lockbox | _Lockbox.CompanyCode = $projection.CompanyCode and _Lockbox.HouseBank = $projection.HouseBank and _Lockbox.HouseBankAccount = $projection.HouseBankAccount and _Lockbox.Lockbox = $projection.Lockbox -- |
| [0..*] | I_ARLockBoxBatchItem | _Item | $projection.LockboxBatchInternalKey = _Item.LockboxBatchInternalKey and $projection.LockboxBatch = _Item.LockboxBatch |
| [0..*] | I_IncomingPaymentFileLine | _IncomingPaymentFileLine | _IncomingPaymentFileLine.BankStatementShortID = $projection.LockboxBatchInternalKey |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Lock Box Batch Header Data | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | IARLOCKBOXBATCH | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LockboxBatchInternalKey | P_Arlockboxbatch | LockboxBatchInternalKey | |
| KEY | LockboxBatch | |||
| LockboxBatchDestination | ||||
| LockboxBatchOrigin | ||||
| Lockbox | ||||
| CompanyCode | CompanyCode | |||
| HouseBank | ||||
| HouseBankAccount | ||||
| DepositDate | ||||
| DepositTime | ||||
| NumberOfItems | ||||
| Currency | Currency | |||
| AmountInTransactionCurrency | ||||
| NumberOfIncompleteCheques | ||||
| IncomingPaymentFile | _IncomingPaymentFileLine | IncomingPaymentFile | ||
| LockboxBatchStatus | ||||
| LockboxBatchStatusName | ||||
| _Company | _Company | |||
| _Currency | _Currency | |||
| _Item | _Item | |||
| _Housebank | _Housebank | |||
| _Lockbox | _Lockbox | |||
| BankAccount | BankAccount | |||
| BankAccountInternalID | BankAccountInternalID | |||
| BankAccountHolderName | BankAccountHolderName | |||
| BankAccountAdditionalName | BankAccountAdditionalName | |||
| BankAccountType | BankAccountType | |||
| BankName | BankName | |||
| ChartOfAccounts | ChartOfAccounts | |||
| CreatedByUser | CreatedByUser | |||
| GLAccount | GLAccount | |||
| InterestRateInPercent | InterestRateInPercent | |||
| BankAccountReferenceText | BankAccountReferenceText | |||
| BankStatementImportDate | BankStatementImportDate | |||
| BankStatementImportTime | BankStatementImportTime |
@EndUserText.label: 'Lock Box Batch Header Data'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED //only company data
@AbapCatalog.sqlViewName: 'IARLOCKBOXBATCH'
@Search.searchable: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
define view I_ARLockBoxBatch
// as select from P_Arlockboxbatch as hdr
as select from P_Arlockboxbatch as hdr
// select status description from fix values of the domain FAR_ASTAT
left outer join dd07v on dd07v.domvalue_l = hdr.LockboxBatchStatus
and dd07v.domname = 'FAR_ASTAT'
and dd07v.ddlanguage = $session.system_language
left outer join P_Arlockboxbatchlatest as latestbatch
on hdr.LockboxBatchInternalKey = latestbatch.LockboxBatchInternalKey
and hdr.Lockbox = latestbatch.Lockbox
and hdr.LockboxBatch = latestbatch.LockboxBatch
//Value Help for Company Code
association [0..1] to I_CompanyCode as _Company on _Company.CompanyCode = $projection.CompanyCode
association [0..1] to I_Currency as _Currency on _Currency.Currency = $projection.Currency
//Value Help for House Bank
association [0..1] to I_Housebank as _Housebank on _Housebank.CompanyCode = $projection.CompanyCode
and _Housebank.HouseBank = $projection.HouseBank
//Value Help for Lockbox Number
association [0..1] to I_ARLockbox as _Lockbox on _Lockbox.CompanyCode = $projection.CompanyCode
and _Lockbox.HouseBank = $projection.HouseBank
and _Lockbox.HouseBankAccount = $projection.HouseBankAccount
and _Lockbox.Lockbox = $projection.Lockbox
-- Association with Lockbox Items
association [0..*] to I_ARLockBoxBatchItem as _Item
on $projection.LockboxBatchInternalKey = _Item.LockboxBatchInternalKey
and $projection.LockboxBatch = _Item.LockboxBatch
association [0..*] to I_IncomingPaymentFileLine as _IncomingPaymentFileLine on _IncomingPaymentFileLine.BankStatementShortID = $projection.LockboxBatchInternalKey
{
key hdr.LockboxBatchInternalKey,
key cast(hdr.LockboxBatch as batch_eb) as LockboxBatch,
substring(hdr.SendingBank, 1, 10 ) as LockboxBatchDestination,
substring(hdr.SendingBank, 12, 10 ) as LockboxBatchOrigin, // why is there a space in sending bank??
cast(hdr.Lockbox as far_lbnum) as Lockbox,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
CompanyCode,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
cast(HouseBank as farp_hbkid) as HouseBank,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
cast(HouseBankAccount as fac_hktid) as HouseBankAccount,
cast(DepositDate as far_azdat) as DepositDate,
cast(DepositTime as far_aztim) as DepositTime,
cast ( cast(NumberOfItems as abap.int2) as far_chect_anzes ) as NumberOfItems,
@Semantics.currencyCode: true
Currency,
@DefaultAggregation: #NONE
@Semantics.amount.currencyCode: 'Currency'
cast(AmountInTransactionCurrency as farp_fwbtr) as AmountInTransactionCurrency,
cast(NumberOfIncompleteCheques as far_eperl_anzes) as NumberOfIncompleteCheques,
_IncomingPaymentFileLine.IncomingPaymentFile as IncomingPaymentFile, //no cardinality problem: only 1 File per kukey
cast (LockboxBatchStatus as farp_batch_status) as LockboxBatchStatus,
cast (dd07v.ddtext as far_lb_stat_desc) as LockboxBatchStatusName,
cast (
case when latestbatch.LockboxBatch is not null
then 'X'
else ' ' end as far_islatestlb) as BatchIsLatest,
// @UI.hidden: true
_Company,
// @UI.hidden: true
_Currency,
// @UI.hidden: true
_Item,
// @UI.hidden: true
_Housebank,
// @UI.hidden: true
_Lockbox,
BankAccount,
BankAccountInternalID,
BankAccountHolderName,
BankAccountAdditionalName,
BankAccountType,
BankName,
ChartOfAccounts,
CreatedByUser,
GLAccount,
InterestRateInPercent,
BankAccountReferenceText,
BankStatementImportDate,
BankStatementImportTime
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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