P_BalShtExpsrSnpshtItm

DDL: P_BALSHTEXPSRSNPSHTITM SQL: PBSESNAPITEMOWV Type: view COMPOSITE

P_BalShtExpsrSnpshtItm is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BalShtExpsrSnpshtItm) and exposes 8 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_BalShtExpsrSnpshtItm I_BalShtExpsrSnpshtItm from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PBSESNAPITEMOWV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (8)

KeyFieldSource TableSource FieldDescription
BalShtExpsrSnapshotID BalShtExpsrSnapshotID Snapshot ID
CompanyCode CompanyCode Receiver Company Code
Currency Currency Valuation Crcy
SnpshtHdgKeyFigType
BalShtExpsrSnpshtHdgAmt
BalShtExpsrSnapItmPerdStrtDte BalShtExpsrSnapItmPerdStrtDte
BalShtExpsrSnapItmPerdEndDate BalShtExpsrSnapItmPerdEndDate
CompanyCodeCurrency _CompanyCode Currency Valuation Crcy

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_BalShtExpsrSnpshtItm.
-- 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: PBSESNAPITEMOWV

CREATE VIEW P_BalShtExpsrSnpshtItm AS
SELECT
  BalShtExpsrSnapshotID,
  CompanyCode,
  Currency,
  cast('I' as fxm_snpsht_hdg_key_fig_type) AS SnpshtHdgKeyFigType,
  cast(sum(BalShtExpsrSnpshtItmAmt) as fxm_snap_hdg_amount ) AS BalShtExpsrSnpshtHdgAmt,
  BalShtExpsrSnapItmPerdStrtDte,
  BalShtExpsrSnapItmPerdEndDate,
  _CompanyCode.Currency AS CompanyCodeCurrency
FROM I_BalShtExpsrSnpshtItm
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;