I_ARLockBoxBatchItem
Lockbox Batch Item Data
I_ARLockBoxBatchItem is a Composite CDS View that provides data about "Lockbox Batch Item Data" in SAP S/4HANA. It reads from 2 data sources (dd07t, P_ARLockBoxBatchItem) and exposes 74 fields with key fields LockboxBatchInternalKey, LockboxBatchItem, LockboxBatch. It has 4 associations to related views. Part of development package ODATA_LOCKBOX.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| dd07t | dd07t | left_outer |
| P_ARLockBoxBatchItem | item | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _Currency | _Currency.Currency = $projection.Currency -- |
| [1..1] | I_ARLockBoxBatch | _Header | item.LockboxBatchInternalKey = _Header.LockboxBatchInternalKey and item.LockboxBatch = _Header.LockboxBatch |
| [0..1] | I_JournalEntry | _JournalEntry | $projection.BankLedgerDocument = _JournalEntry.AccountingDocument and $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear |
| [0..1] | I_Arbsitmemolinewithorig | _MemoLine | $projection.LockboxBatchInternalKey = _MemoLine.BankStatementShortID and $projection.LockboxBatchItem = _MemoLine.BankStatementItem |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Lockbox Batch Item Data | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (74)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LockboxBatchInternalKey | P_ARLockBoxBatchItem | LockboxBatchInternalKey | |
| KEY | LockboxBatchItem | P_ARLockBoxBatchItem | LockboxBatchItem | |
| KEY | LockboxBatch | P_ARLockBoxBatchItem | LockboxBatch | |
| ValueDate | P_ARLockBoxBatchItem | ValueDate | ||
| Currency | P_ARLockBoxBatchItem | Currency | ||
| AmountInTransactionCurrency | ||||
| LockboxBatchItmStatus | ||||
| LockboxBatchItmStatusName | ||||
| IsCompleted | P_ARLockBoxBatchItem | IsCompleted | ||
| Cheque | ||||
| PartnerBankCountry | ||||
| PartnerBank | ||||
| PartnerBankAccount | ||||
| BankLedgerDocument | P_ARLockBoxBatchItem | BankLedgerDocument | ||
| Customer | ||||
| ApplicationLog | ||||
| MemoLine | _MemoLine | MemoLine | ||
| MemoLine1 | ||||
| AssignmentReference | P_ARLockBoxBatchItem | AssignmentReference | ||
| PaymentExternalTransacType | ||||
| DocumentItemText | ||||
| DocumentReferenceID | P_ARLockBoxBatchItem | DocumentReferenceID | ||
| PaymentManualTransacType | ||||
| BankLedgerIsPosted | ||||
| SubledgerIsPostedSuccessfully | ||||
| LockboxSubledgerDocument | ||||
| CompanyCode | P_ARLockBoxBatchItem | CompanyCode | ||
| FiscalYear | P_ARLockBoxBatchItem | FiscalYear | ||
| BankLedgerAcctgDocFiscalYear | P_ARLockBoxBatchItem | BankLedgerAcctgDocFiscalYear | ||
| SubledgerDocument | P_ARLockBoxBatchItem | SubledgerDocument | ||
| LockboxBatchItmAdditionalInfo | P_ARLockBoxBatchItem | AdditionalInformation | ||
| SubledgerAcctgDocFiscalYear | P_ARLockBoxBatchItem | SubledgerAcctgDocFiscalYear | ||
| PaymentAdvice | P_ARLockBoxBatchItem | PaymentAdvice | ||
| _Currency | _Currency | |||
| _Header | _Header | |||
| _JournalEntry | _JournalEntry | |||
| SubledgerOnAccountDocument | P_ARLockBoxBatchItem | SubledgerOnAccountDocument | ||
| Lockbox | _Header | Lockbox | ||
| BankStatementItemDraftUUID | P_ARLockBoxBatchItem | BankStatementItemDraftUUID | ||
| BankStatementInternalID | P_ARLockBoxBatchItem | BankStatementInternalID | ||
| LockboxProcessingStatus | P_ARLockBoxBatchItem | LockboxProcessingStatus | ||
| BankPostingDate | P_ARLockBoxBatchItem | BankPostingDate | ||
| BankPostingKey | P_ARLockBoxBatchItem | BankPostingKey | ||
| BankReference | P_ARLockBoxBatchItem | BankReference | ||
| BusinessArea | P_ARLockBoxBatchItem | BusinessArea | ||
| BusinessPartnerName | P_ARLockBoxBatchItem | BusinessPartnerName | ||
| TreasuryContract | P_ARLockBoxBatchItem | TreasuryContract | ||
| DaybookEntry | P_ARLockBoxBatchItem | DaybookEntry | ||
| DunningBlockingReason | P_ARLockBoxBatchItem | DunningBlockingReason | ||
| ExchangeRate | P_ARLockBoxBatchItem | ExchangeRate | ||
| FeeAmountInTransactionCrcy | P_ARLockBoxBatchItem | FeeAmountInTransactionCrcy | ||
| FeeAmountInOriginalCrcy | P_ARLockBoxBatchItem | FeeAmountInOriginalCrcy | ||
| MemoLineIsChanged | P_ARLockBoxBatchItem | MemoLineIsChanged | ||
| AmountInOriginalCurrency | P_ARLockBoxBatchItem | AmountInOriginalCurrency | ||
| OriginalCurrency | P_ARLockBoxBatchItem | OriginalCurrency | ||
| OverdueChargeAmtInTransacCrcy | P_ARLockBoxBatchItem | OverdueChargeAmtInTransacCrcy | ||
| PartnerBankIBAN | P_ARLockBoxBatchItem | PartnerBankIBAN | ||
| PartnerBankSWIFTCode | P_ARLockBoxBatchItem | PartnerBankSWIFTCode | ||
| PaymentAdviceAccount | P_ARLockBoxBatchItem | PaymentAdviceAccount | ||
| PaymentAdviceAccountType | P_ARLockBoxBatchItem | PaymentAdviceAccountType | ||
| PaymentAdviceAccountTypeName | P_ARLockBoxBatchItem | PaymentAdviceAccountTypeName | ||
| PaymentReference | P_ARLockBoxBatchItem | PaymentReference | ||
| PostingDate | P_ARLockBoxBatchItem | PostingDate | ||
| PostingErrorStatus | P_ARLockBoxBatchItem | PostingErrorStatus | ||
| ReferenceDocument | P_ARLockBoxBatchItem | ReferenceDocument | ||
| ReferenceDocumentType | P_ARLockBoxBatchItem | ReferenceDocumentType | ||
| BankStmntItemReprocessReason | P_ARLockBoxBatchItem | BankStmntItemReprocessReason | ||
| ReturnReason | P_ARLockBoxBatchItem | ReturnReason | ||
| TreasuryContractType | P_ARLockBoxBatchItem | TreasuryContractType | ||
| ValueDateTime | P_ARLockBoxBatchItem | ValueDateTime | ||
| MachineLrngBankStmntItemStatus | P_ARLockBoxBatchItem | MachineLrngBankStmntItemStatus | ||
| CostCenter | P_ARLockBoxBatchItem | CostCenter | ||
| ProfitCenter | P_ARLockBoxBatchItem | ProfitCenter | ||
| DebitCreditCode | P_ARLockBoxBatchItem | DebitCreditCode |
@EndUserText.label: 'Lockbox Batch Item Data'
//@Analytics.dataCategory: #CUBE
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA') //Partner's Bank Account - archiving is possible
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
define view entity I_ARLockBoxBatchItem
as select from P_ARLockBoxBatchItem as item
// select status description from fix values of the domain FAR_ASTAT
left outer join dd07t on dd07t.domvalue_l = item.LockboxBatchItmStatus
and dd07t.domname = 'FAR_CHECT_ASTAT'
and dd07t.ddlanguage = $session.system_language
association [0..1] to I_Currency as _Currency on _Currency.Currency = $projection.Currency
-- Association with Lockbox
association [1..1] to I_ARLockBoxBatch as _Header
on item.LockboxBatchInternalKey = _Header.LockboxBatchInternalKey
and item.LockboxBatch = _Header.LockboxBatch
association [0..1] to I_JournalEntry as _JournalEntry on $projection.BankLedgerDocument = _JournalEntry.AccountingDocument
and $projection.CompanyCode = _JournalEntry.CompanyCode
and $projection.FiscalYear = _JournalEntry.FiscalYear
association [0..1] to I_Arbsitmemolinewithorig as _MemoLine on $projection.LockboxBatchInternalKey = _MemoLine.BankStatementShortID
and $projection.LockboxBatchItem = _MemoLine.BankStatementItem
{
key item.LockboxBatchInternalKey,
key item.LockboxBatchItem,
key item.LockboxBatch,
item.ValueDate,
item.Currency,
@DefaultAggregation: #NONE
@Semantics.amount.currencyCode: 'Currency'
cast(item.AmountInTransactionCurrency as farp_fwbtr) as AmountInTransactionCurrency,
cast (item.LockboxBatchItmStatus as far_chect_astat) as LockboxBatchItmStatus,
cast(dd07t.ddtext as far_lb_stat_desc) as LockboxBatchItmStatusName,
item.IsCompleted,
cast(item.Cheque as farp_chect) as Cheque,//until 02/2018 CustomerReferenceNumber was used here. By accident.
cast(item.PartnerBankCountry as farp_pabks) as PartnerBankCountry,
cast(item.PartnerBank as farp_pablz) as PartnerBank,
cast(item.PartnerBankAccount as farp_pakto) as PartnerBankAccount,
item.BankLedgerDocument,
cast(item.PaymentAdviceAccount as kunnr) as Customer,
cast(item.ApplicationLog as far_applog) as ApplicationLog,
_MemoLine.MemoLine as MemoLine,
//not needed due to new string based persistence
cast(item.MemoLine1 as farp_memo_line_1) as MemoLine1,
item.AssignmentReference,
cast(item.PaymentExternalTransacType as farp_vorgc) as PaymentExternalTransacType,
cast(item.DocumentItemText as text50) as DocumentItemText,
item.DocumentReferenceID,
cast(item.PaymentManualTransacType as vgman_eb) as PaymentManualTransacType,
cast(item.BankLedgerIsPosted as farp_vb1ok) as BankLedgerIsPosted,
cast(item.SubledgerIsPostedSuccessfully as farp_vb2ok) as SubledgerIsPostedSuccessfully,
cast(item.LockboxSubledgerDocument as far_sdoc2) as LockboxSubledgerDocument,
item.CompanyCode,
item.FiscalYear ,
item.BankLedgerAcctgDocFiscalYear,
item.SubledgerDocument,
item.AdditionalInformation as LockboxBatchItmAdditionalInfo,
item.SubledgerAcctgDocFiscalYear,
item.PaymentAdvice,
_Currency,
_Header,
_JournalEntry,
item.SubledgerOnAccountDocument ,
_Header.Lockbox,
item.BankStatementItemDraftUUID,
item.BankStatementInternalID,
item.LockboxProcessingStatus,
item.BankPostingDate,
item.BankPostingKey,
item.BankReference,
item.BusinessArea,
item.BusinessPartnerName,
item.TreasuryContract,
item.DaybookEntry,
item.DunningBlockingReason,
item.ExchangeRate,
@Semantics.amount.currencyCode: 'CURRENCY'
item.FeeAmountInTransactionCrcy,
@Semantics.amount.currencyCode: 'CURRENCY'
item.FeeAmountInOriginalCrcy,
item.MemoLineIsChanged,
@Semantics.amount.currencyCode: 'CURRENCY'
item.AmountInOriginalCurrency,
item.OriginalCurrency,
@Semantics.amount.currencyCode: 'CURRENCY'
item.OverdueChargeAmtInTransacCrcy,
item.PartnerBankIBAN,
item.PartnerBankSWIFTCode,
item.PaymentAdviceAccount,
item.PaymentAdviceAccountType,
item.PaymentAdviceAccountTypeName,
item.PaymentReference,
item.PostingDate,
item.PostingErrorStatus,
item.ReferenceDocument,
item.ReferenceDocumentType,
item.BankStmntItemReprocessReason,
item.ReturnReason,
item.TreasuryContractType,
item.ValueDateTime,
item.MachineLrngBankStmntItemStatus,
item.CostCenter,
item.ProfitCenter,
item.DebitCreditCode
}
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