P_ShrtTrmCshPosLatestBalTS

DDL: P_SHRTTRMCSHPOSLATESTBALTS Type: view_entity COMPOSITE

P_ShrtTrmCshPosLatestBalTS is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_BankCashBalanceHistory, P_ShrtTrmCshPosLatestBalDate) and exposes 4 fields with key fields BankAccountInternalID, CashBalanceType.

Data Sources (2)

SourceAliasJoin Type
I_BankCashBalanceHistory Balance inner
P_ShrtTrmCshPosLatestBalDate BalanceDate from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY BankAccountInternalID P_ShrtTrmCshPosLatestBalDate BankAccountInternalID Technical ID
KEY CashBalanceType P_ShrtTrmCshPosLatestBalDate CashBalanceType Balance Type
CashBalanceDate P_ShrtTrmCshPosLatestBalDate CashBalanceDate Value Date
CashBalanceCreatedAtDateTime

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_ShrtTrmCshPosLatestBalTS.
-- 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.

CREATE VIEW P_ShrtTrmCshPosLatestBalTS AS
SELECT
  BalanceDate.BankAccountInternalID AS BankAccountInternalID,
  BalanceDate.CashBalanceType AS CashBalanceType,
  BalanceDate.CashBalanceDate AS CashBalanceDate,
  max(Balance.CashBalanceCreatedAtDateTime) AS CashBalanceCreatedAtDateTime
FROM P_ShrtTrmCshPosLatestBalDate AS BalanceDate
INNER JOIN I_BankCashBalanceHistory AS Balance ON /* join condition not captured in parsed metadata */
;