P_GLE_ADB_PERIOD_LAST

DDL: P_GLE_ADB_PERIOD_LAST SQL: PGADBPRLAST Type: view COMPOSITE

P_GLE_ADB_PERIOD_LAST is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnVersion, P_DataSubmitRequest) and exposes 7 fields.

Data Sources (2)

SourceAliasJoin Type
I_CnsldtnVersion I_CnsldtnVersion inner
P_DataSubmitRequest R from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PGADBPRLAST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
cgrp GS ConsolidationGroup Cons. Group
cunit P_DataSubmitRequest bunit Consolidation Unit
rvers P_DataSubmitRequest rvers Version: Tax rt
ctime P_DataSubmitRequest close_time Per.Close TimeStamp
period P_DataSubmitRequest fperi Prd first cons
yr P_DataSubmitRequest fyear Year first cons
FiscalYearVariantelseK4endasperiv

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_GLE_ADB_PERIOD_LAST.
-- 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: PGADBPRLAST

CREATE VIEW P_GLE_ADB_PERIOD_LAST AS
SELECT
  GS.ConsolidationGroup AS cgrp,
  R.bunit AS cunit,
  R.rvers AS rvers,
  R.close_time AS ctime,
  R.fperi AS period,
  R.fyear AS yr,
  case when I_CnsldtnUnitByTimeVersion.FiscalYearVariant is not null and I_CnsldtnUnitByTimeVersion.FiscalYearVariant <> ' ' then I_CnsldtnUnitByTimeVersion.FiscalYearVariant when I_CnsldtnVersion.FiscalYearVariant is not null and I_CnsldtnVersion.FiscalYearVariant <> ' ' then I_CnsldtnVersion.FiscalYearVariant else 'K4' end as periv AS FiscalYearVariantelseK4endasperiv
FROM P_DataSubmitRequest AS R
INNER JOIN I_CnsldtnVersion ON /* join condition not captured in parsed metadata */
;