P_Arlockboxbatch

DDL: P_ARLOCKBOXBATCH SQL: PARLOCKBOXBATCH Type: view COMPOSITE

P_Arlockboxbatch is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_Arbanktransactiondoc, P_Arlockboxbatchitemaggr) and exposes 27 fields with key fields LockboxBatchInternalKey, LockboxBatch.

Data Sources (2)

SourceAliasJoin Type
P_Arbanktransactiondoc hdr from
P_Arlockboxbatchitemaggr itm left_outer

Annotations (4)

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

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY LockboxBatchInternalKey StatementShortID
KEY LockboxBatch P_Arlockboxbatchitemaggr LockboxBatch Lot No.
Lockbox
SendingBank SendingBank
CompanyCode CompanyCode Receiver Company Code
HouseBank HouseBank House Bank
HouseBankAccount HouseBankAccount House Bank Account
DepositDate StatementDate
DepositTime BankStatementTime
NumberOfItems P_Arlockboxbatchitemaggr NumberOfItems
Currency P_Arlockboxbatchitemaggr Currency Valuation Crcy
AmountInTransactionCurrency P_Arlockboxbatchitemaggr AmountInTransactionCurrency Pt Crcy Amt
NumberOfIncompleteCheques P_Arlockboxbatchitemaggr NumberOfIncompleteCheques
BankAccount BankAccount Bank acct
BankAccountInternalID BankAccountInternalID Technical ID
BankAccountHolderName BankAccountHolderName Account Holder
BankAccountAdditionalName BankAccountAdditionalName
BankAccountType BankAccountType Account Type
BankName BankName Bank Name
ChartOfAccounts ChartOfAccounts Node Class
CreatedByUser CreatedByUser User Name
GLAccount GLAccount General Ledger
InterestRateInPercent InterestRateInPercent
BankAccountReferenceText BankAccountReferenceText Reference
BankStatementImportDate BankStatementImportDate
BankStatementImportTime BankStatementImportTime
char1endasLockboxBatchStatus

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_Arlockboxbatch.
-- 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: PARLOCKBOXBATCH

CREATE VIEW P_Arlockboxbatch AS
SELECT
  StatementShortID AS LockboxBatchInternalKey,
  itm.LockboxBatch AS LockboxBatch,
  cast(LPAD(RTRIM(SUBSTRING(InternalID,1,7),' '),7,'0') as abap.numc(7)) AS Lockbox,
  SendingBank,
  CompanyCode,
  HouseBank,
  HouseBankAccount,
  StatementDate AS DepositDate,
  BankStatementTime AS DepositTime,
  itm.NumberOfItems AS NumberOfItems,
  itm.Currency AS Currency,
  itm.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  itm.NumberOfIncompleteCheques AS NumberOfIncompleteCheques,
  BankAccount,
  BankAccountInternalID,
  BankAccountHolderName,
  BankAccountAdditionalName,
  BankAccountType,
  BankName,
  ChartOfAccounts,
  CreatedByUser,
  GLAccount,
  InterestRateInPercent,
  BankAccountReferenceText,
  BankStatementImportDate,
  BankStatementImportTime,
  case when NumberOfIncompleteCheques = 0 then cast( '8' as abap.char(1)) else cast('7' as abap.char(1)) end as LockboxBatchStatus AS char1endasLockboxBatchStatus
FROM P_Arbanktransactiondoc AS hdr
LEFT OUTER JOIN P_Arlockboxbatchitemaggr AS itm ON /* join condition not captured in parsed metadata */
;