P_Arlockboxbatchitemaggr

DDL: P_ARLOCKBOXBATCHITEMAGGR SQL: PARLOCKBOXITMAGR Type: view BASIC

P_Arlockboxbatchitemaggr is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (febep) and exposes 5 fields with key fields LockboxBatchInternalKey, LockboxBatch.

Data Sources (1)

SourceAliasJoin Type
febep febep from

Annotations (4)

NameValueLevelField
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PARLOCKBOXITMAGR view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY LockboxBatchInternalKey kukey Statement Short Key
KEY LockboxBatch batch Lot No.
Currency
NumberOfItems
int2endasNumberOfIncompleteCheques

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_Arlockboxbatchitemaggr.
-- 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: PARLOCKBOXITMAGR

CREATE VIEW P_Arlockboxbatchitemaggr AS
SELECT
  kukey AS LockboxBatchInternalKey,
  batch AS LockboxBatch,
  min(kwaer) AS Currency,
  count (*) AS NumberOfItems,
  sum ( case when vb1ok = 'X' and vb2ok = 'X' and ( sdoc2 <> '' or estat <> '3' ) then cast(0 as abap.int2) else cast(1 as abap.int2) end ) as NumberOfIncompleteCheques AS int2endasNumberOfIncompleteCheques
FROM febep
;