P_Arlockboxbatchitemaggr
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)
| Source | Alias | Join Type |
|---|---|---|
| febep | febep | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PARLOCKBOXITMAGR | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LockboxBatchInternalKey | kukey | ||
| KEY | LockboxBatch | batch | ||
| Currency | ||||
| NumberOfItems | ||||
| int2endasNumberOfIncompleteCheques |
@VDM.viewType: #BASIC
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName: 'PARLOCKBOXITMAGR'
define view P_Arlockboxbatchitemaggr
as select from febep
{
key kukey as LockboxBatchInternalKey,
key batch as LockboxBatch,
//For Performance optimization over group by Currency
min(kwaer) as Currency,
sum ( case epvoz
when 'D' then - abs(kwbtr)
when 'S' then - abs(kwbtr)
else kwbtr
end ) as AmountInTransactionCurrency,
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
}group by kukey,
batch
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FEBEP"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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