P_SG_CAClrAmntCalc

DDL: P_SG_CACLRAMNTCALC SQL: PSGCACLRCALC Type: view COMPOSITE

P_SG_CAClrAmntCalc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CADocumentBPItemPhysical, I_CADocumentHeader) and exposes 3 fields.

Data Sources (2)

SourceAliasJoin Type
I_CADocumentBPItemPhysical _bp_item from
I_CADocumentHeader _header inner

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat
P_ToPostingDate fis_budat

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSGCACLRCALC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (3)

KeyFieldSource TableSource FieldDescription
CAClearingDocumentNumber I_CADocumentBPItemPhysical CAClearingDocumentNumber Clearing Doc.
CAAmountInLocalCurrency
CAAmountInTransactionCurrency

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_SG_CAClrAmntCalc.
-- 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: PSGCACLRCALC
-- Parameters: P_FromPostingDate : fis_budat, P_ToPostingDate : fis_budat

CREATE VIEW P_SG_CAClrAmntCalc AS
SELECT
  _bp_item.CAClearingDocumentNumber AS CAClearingDocumentNumber,
  sum(_bp_item.CAAmountInLocalCurrency) AS CAAmountInLocalCurrency,
  sum(_bp_item.CAAmountInTransactionCurrency) AS CAAmountInTransactionCurrency
FROM I_CADocumentBPItemPhysical AS _bp_item
INNER JOIN I_CADocumentHeader AS _header ON /* join condition not captured in parsed metadata */
;