P_ARLockBoxBatchItem

DDL: P_ARLOCKBOXBATCHITEM SQL: PARLOCKBOXITEM Type: view COMPOSITE

P_ARLockBoxBatchItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_Arbanktransactiondocitem_07) and exposes 69 fields with key fields LockboxBatchInternalKey, LockboxBatchItem, LockboxBatch.

Data Sources (1)

SourceAliasJoin Type
P_Arbanktransactiondocitem_07 P_Arbanktransactiondocitem_07 from

Annotations (4)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PARLOCKBOXITEM view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY LockboxBatchInternalKey StatementShortID
KEY LockboxBatchItem StatementItem
KEY LockboxBatch BatchNumber
ValueDate ValueDate Value Date
Currency TransactionCurrency Transaction Currency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
AmountInOriginalCurrency AmountInOriginalCurrency
char1asLockboxBatchItmStatus
BankStatementItemDraftUUID BankStatementItemDraftUUID UUID
BankStatementInternalID BankStatementInternalID Temp. Document ID
LockboxProcessingStatus ProcessingStatus Worklist Status
Cheque CustomerReferenceNumber
PartnerBankCountry PartnerBankCountry Part. Ctry/Rgn
PartnerBank PartnerBank
PartnerBankAccount PartnerBankAccount
BankLedgerDocument BankLedgerDocument
BankLedgerAcctgDocFiscalYear BankLedgerAcctgDocFiscalYear
ApplicationLog
MemoLine1 MemoLine1
MemoLine
AssignmentReference AssignmentReference Assignment Reference
PaymentExternalTransacType PaymentExternalTransacType
DocumentItemText DocumentItemText Text
DocumentReferenceID DocumentReferenceID Reference
PaymentManualTransacType PaymentManualTransacType
BankLedgerIsPosted BankLedgerIsPosted
SubledgerIsPostedSuccessfully SubledgerIsPostedSuccessfully
LockboxSubledgerDocument NumberOfSecondSubledgerDoc
CompanyCode CompanyCode Receiver Company Code
FiscalYear FiscalYear G/L Fiscal Year
SubledgerDocument SubledgerDocument
SubledgerAcctgDocFiscalYear SubledgerAcctgDocFiscalYear
PaymentAdvice PaymentAdvice Payment Advice Number
NumberOfSecondSubledgerDoc NumberOfSecondSubledgerDoc
SubledgerOnAccountDocument SubledgerOnAccountDocument
DebitCreditCode DebitCreditCode Single-Character Flag
BankPostingDate BankPostingDate
BankPostingKey BankPostingKey
BankReference BankReference Payment Reference
BusinessArea BusinessArea Business Area
BusinessPartnerName BusinessPartnerName Extracted Customer Name
TreasuryContract TreasuryContract Contract Number
DaybookEntry DaybookEntry
DunningBlockingReason DunningBlockingReason Set Dunning Block
ExchangeRate ExchangeRate Exchange rate
FeeAmountInTransactionCrcy FeeAmountInTransactionCrcy AC Fees
FeeAmountInOriginalCrcy FeeAmountInOriginalCrcy
IsCompleted IsCompleted
MemoLineIsChanged MemoLineIsChanged
OriginalCurrency OriginalCurrency
OverdueChargeAmtInTransacCrcy OverdueChargeAmtInTransacCrcy
PartnerBankIBAN PartnerBankIBAN
PartnerBankSWIFTCode PartnerBankSWIFTCode Partner SWIFT
PaymentAdviceAccount PaymentAdviceAccount Account
PaymentAdviceAccountType PaymentAdviceAccountType Account Type
PaymentAdviceAccountTypeName PaymentAdviceAccountTypeName Short text
PaymentReference PaymentReference Payment Reference
PostingDate PostingDate Posting Date for GR
PostingErrorStatus PostingErrorStatus
ProfitCenter ProfitCenter Profit Center
ReferenceDocument ReferenceDocument Reference Document
ReferenceDocumentType ReferenceDocumentType Reference Document Type
BankStmntItemReprocessReason BankStmntItemReprocessReason
ReturnReason ReturnReason Return Reason
TreasuryContractType TreasuryContractType Treasury Contract Type
ValueDateTime ValueDateTime
MachineLrngBankStmntItemStatus MachineLrngBankStmntItemStatus
CostCenter CostCenter Cost Center
AdditionalInformation AdditionalInformation

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 P_ARLockBoxBatchItem.
-- 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: PARLOCKBOXITEM

CREATE VIEW P_ARLockBoxBatchItem AS
SELECT
  StatementShortID AS LockboxBatchInternalKey,
  StatementItem AS LockboxBatchItem,
  BatchNumber AS LockboxBatch,
  ValueDate,
  TransactionCurrency AS Currency,
  AmountInTransactionCurrency,
  AmountInOriginalCurrency,
  cast(case when BankLedgerIsPosted = 'X' and SubledgerIsPostedSuccessfully = 'X' then case when NumberOfSecondSubledgerDoc = '' and PostingErrorStatus = '3' then '1' else '2' end else case when SubledgerOnAccountDocument = '' then '4' else '3' end end as abap.char(1)) as LockboxBatchItmStatus AS char1asLockboxBatchItmStatus,
  BankStatementItemDraftUUID,
  BankStatementInternalID,
  ProcessingStatus AS LockboxProcessingStatus,
  CustomerReferenceNumber AS Cheque,
  PartnerBankCountry,
  PartnerBank,
  PartnerBankAccount,
  BankLedgerDocument,
  BankLedgerAcctgDocFiscalYear,
  cast ('Log' as abap.char(3) ) AS ApplicationLog,
  MemoLine1,
  cast ( ' ' as abap.char(1333) ) AS MemoLine,
  AssignmentReference,
  PaymentExternalTransacType,
  DocumentItemText,
  DocumentReferenceID,
  PaymentManualTransacType,
  BankLedgerIsPosted,
  SubledgerIsPostedSuccessfully,
  NumberOfSecondSubledgerDoc AS LockboxSubledgerDocument,
  CompanyCode,
  FiscalYear,
  SubledgerDocument,
  SubledgerAcctgDocFiscalYear,
  PaymentAdvice,
  NumberOfSecondSubledgerDoc,
  SubledgerOnAccountDocument,
  DebitCreditCode,
  BankPostingDate,
  BankPostingKey,
  BankReference,
  BusinessArea,
  BusinessPartnerName,
  TreasuryContract,
  DaybookEntry,
  DunningBlockingReason,
  ExchangeRate,
  FeeAmountInTransactionCrcy,
  FeeAmountInOriginalCrcy,
  IsCompleted,
  MemoLineIsChanged,
  OriginalCurrency,
  OverdueChargeAmtInTransacCrcy,
  PartnerBankIBAN,
  PartnerBankSWIFTCode,
  PaymentAdviceAccount,
  PaymentAdviceAccountType,
  PaymentAdviceAccountTypeName,
  PaymentReference,
  PostingDate,
  PostingErrorStatus,
  ProfitCenter,
  ReferenceDocument,
  ReferenceDocumentType,
  BankStmntItemReprocessReason,
  ReturnReason,
  TreasuryContractType,
  ValueDateTime,
  MachineLrngBankStmntItemStatus,
  CostCenter,
  AdditionalInformation
FROM P_Arbanktransactiondocitem_07
;