R_FHC_HCAL_COMBINED

DDL: R_FHC_HCAL_COMBINED Type: view_entity Package: S_FHC_MAINTENANCE

Combined Holiday Calendar View

R_FHC_HCAL_COMBINED is a CDS View that provides data about "Combined Holiday Calendar View" in SAP S/4HANA. It reads from 2 data sources (fhc_c_hcal, thoci) and exposes 8 fields with key field PublicHolidayCalendarLegacyID. It has 1 association to related views. Part of development package S_FHC_MAINTENANCE.

Data Sources (2)

SourceAliasJoin Type
fhc_c_hcal fhc_hcal union
thoci scal_hcal from

Associations (1)

CardinalityTargetAliasCondition
[0..*] R_FHC_HCAL_COMBINED_TEXT _Text $projection.PublicHolidayCalendarLegacyID = _Text.PublicHolidayCalendarLegacyID

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Combined Holiday Calendar View view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PublicHolidayCalendarLegacyID thoci ident Tree Structure
PublicHolidayCalendarID Holiday Cal. ID
PublHldayCalValidityStartDate Validity Start Time
PublHldayCalValidityEndDate Validity End Time
PublicHolidayCalendarID fhc_c_hcal holidaycalendar_id Holiday Cal. ID
PublHldayCalValidityStartDate fhc_c_hcal valid_from Validity Start Time
PublHldayCalValidityEndDate fhc_c_hcal valid_to Validity End Time
_Text _Text

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 R_FHC_HCAL_COMBINED.
-- 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.

CREATE VIEW R_FHC_HCAL_COMBINED AS
SELECT
  scal_hcal.ident AS PublicHolidayCalendarLegacyID,
  cast( concat('Z_' , scal_hcal.ident ) as fhc_hcalid ) AS PublicHolidayCalendarID,
  cast( concat( scal_hcal.vjahr , '0101' ) as fhc_date_from ) AS PublHldayCalValidityStartDate,
  cast( concat( scal_hcal.bjahr , '1231' ) as fhc_date_to ) AS PublHldayCalValidityEndDate
FROM thoci AS scal_hcal
LEFT OUTER JOIN R_FHC_HCAL_COMBINED_TEXT AS _Text ON PublicHolidayCalendarLegacyID = _Text.PublicHolidayCalendarLegacyID  -- association [0..*]
-- UNION with additional select branch(es): fhc_c_hcal
;