P_FctryClndrDate2

DDL: P_FCTRYCLNDRDATE2 SQL: PFCTRYCLNDRDATE2 Type: view BASIC

P_FctryClndrDate2 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, tfacs) and exposes 28 fields.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate Date from
tfacs FactoryCalendar inner

Parameters (1)

NameTypeDefault
P_CountryCode SMI_COUNTRYCODE_FCTRYCLNDR

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PFCTRYCLNDRDATE2 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientDependent true view
VDM.viewType #BASIC view

Fields (28)

KeyFieldSource TableSource FieldDescription
CalendarYear I_CalendarDate CalendarYear Year
CalendarMonth I_CalendarDate CalendarMonth Calendar Month
CalendarWeek I_CalendarDate CalendarWeek Calendar Week
CalendarQuarter I_CalendarDate CalendarQuarter Calendar Quarter
YearQuarter I_CalendarDate YearQuarter Year Quarter
YearMonth I_CalendarDate YearMonth Year Month
YearWeek I_CalendarDate YearWeek Year and Calendar Week
CalendarDate I_CalendarDate CalendarDate Calendar Date
CalendarDay I_CalendarDate CalendarDay Occur Day in a Month
WeekDay I_CalendarDate WeekDay Weekdays
ident tfacs ident Tree Structure
jahr tfacs jahr Year stored
mon01 tfacs mon01 Days in month
mon02 tfacs mon02 Days in month
mon03 tfacs mon03 Days in month
mon04 tfacs mon04 Days in month
mon05 tfacs mon05 Days in month
mon06 tfacs mon06 Days in month
mon07 tfacs mon07 Days in month
mon08 tfacs mon08 Days in month
mon09 tfacs mon09 Days in month
mon10 tfacs mon10 Days in month
mon11 tfacs mon11 Days in month
mon12 tfacs mon12 Days in month
basis tfacs basis Start days
fenum tfacs fenum Number of days
wenum tfacs wenum No. workdays
load tfacs load Buffer flag

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_FctryClndrDate2.
-- 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: PFCTRYCLNDRDATE2
-- Parameters: P_CountryCode : SMI_COUNTRYCODE_FCTRYCLNDR

CREATE VIEW P_FctryClndrDate2 AS
SELECT
  Date.CalendarYear AS CalendarYear,
  Date.CalendarMonth AS CalendarMonth,
  Date.CalendarWeek AS CalendarWeek,
  Date.CalendarQuarter AS CalendarQuarter,
  Date.YearQuarter AS YearQuarter,
  Date.YearMonth AS YearMonth,
  Date.YearWeek AS YearWeek,
  Date.CalendarDate AS CalendarDate,
  Date.CalendarDay AS CalendarDay,
  Date.WeekDay AS WeekDay,
  FactoryCalendar.ident AS ident,
  FactoryCalendar.jahr AS jahr,
  FactoryCalendar.mon01 AS mon01,
  FactoryCalendar.mon02 AS mon02,
  FactoryCalendar.mon03 AS mon03,
  FactoryCalendar.mon04 AS mon04,
  FactoryCalendar.mon05 AS mon05,
  FactoryCalendar.mon06 AS mon06,
  FactoryCalendar.mon07 AS mon07,
  FactoryCalendar.mon08 AS mon08,
  FactoryCalendar.mon09 AS mon09,
  FactoryCalendar.mon10 AS mon10,
  FactoryCalendar.mon11 AS mon11,
  FactoryCalendar.mon12 AS mon12,
  FactoryCalendar.basis AS basis,
  FactoryCalendar.fenum AS fenum,
  FactoryCalendar.wenum AS wenum,
  FactoryCalendar.load AS load
FROM I_CalendarDate AS Date
INNER JOIN tfacs AS FactoryCalendar ON /* join condition not captured in parsed metadata */
;