P_DGR_EOD_Date_Data

DDL: P_DGR_EOD_DATE_DATA SQL: PDGREODDATEDATA Type: view COMPOSITE

P_DGR_EOD_Date_Data is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_DailyGrainReportDayEndRun) and exposes 8 fields.

Data Sources (1)

SourceAliasJoin Type
I_DailyGrainReportDayEndRun I_DailyGrainReportDayEndRun from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PDGREODDATEDATA view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (8)

KeyFieldSource TableSource FieldDescription
EvaluationKeyDate EvaluationKeyDate Key Date
EndOfDaySnapshotTime EndOfDaySnapshotTime Time Stamp
EndOfDaySnapshotTimezone EndOfDaySnapshotTimezone Time Zone Difference
EndOfDaySnapshotDateTime EndOfDaySnapshotDateTime Timestamp
EndOfDaySnapshotDateUTCDate Timestamp
currentUTCTimestamp
currentUTCDate
dec173ashoursDifference

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_DGR_EOD_Date_Data.
-- 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: PDGREODDATEDATA

CREATE VIEW P_DGR_EOD_Date_Data AS
SELECT
  EvaluationKeyDate,
  EndOfDaySnapshotTime,
  EndOfDaySnapshotTimezone,
  EndOfDaySnapshotDateTime,
  substring( cast(EndOfDaySnapshotDateTime as abap.char( 17 )), 1, 8 ) AS EndOfDaySnapshotDateUTCDate,
  tstmp_current_utctimestamp() AS currentUTCTimestamp,
  substring( cast(tstmp_current_utctimestamp() as abap.char( 17 )), 1, 8 ) AS currentUTCDate,
  DIV( TSTMP_SECONDS_BETWEEN(tstmp_current_utctimestamp(), EndOfDaySnapshotDateTime, 'NULL') , cast(3600 as abap.dec( 17, 3 )) ) as hoursDifference AS dec173ashoursDifference
FROM I_DailyGrainReportDayEndRun
;