I_SafetyInstructionBuilding

DDL: I_SAFETYINSTRUCTIONBUILDING Type: view BASIC

FSI: Building Interface View

I_SafetyInstructionBuilding is a Basic CDS View that provides data about "FSI: Building Interface View" in SAP S/4HANA. It reads from 1 data source (ehhssd_fsi_bldng) and exposes 6 fields with key field SafetyInstructionBuildingUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehhssd_fsi_bldng ehhssd_fsi_bldng from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_SafetyInstruction _SafetyInstruction $projection.SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID
[1..1] I_EHSLocation _EHSLocation $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID and _EHSLocation.RevisionStartDate <= $session.system_date and _EHSLocation.RevisionEndDate > $session.system_date

Annotations (10)

NameValueLevelField
EndUserText.label FSI: Building Interface View view
AbapCatalog.sqlViewName IHSSFSIBLDNG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionBuildingUUID safetyinstructionbuildinguuid NodeID
SafetyInstructionUUID safetyinstructionuuid NodeID
EHSLocationUUID ehslocationuuid NodeID
SafetyInstrnIsValidInBuilding safetyinstrnisvalidinbuilding Valid in Building
_SafetyInstruction _SafetyInstruction
_EHSLocation _EHSLocation

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 I_SafetyInstructionBuilding.
-- 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 I_SafetyInstructionBuilding AS
SELECT
  SafetyInstructionBuildingUUID,
  SafetyInstructionUUID,
  EHSLocationUUID,
  SafetyInstrnIsValidInBuilding
FROM ehhssd_fsi_bldng
LEFT OUTER JOIN I_SafetyInstruction AS _SafetyInstruction ON SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID  -- association [1..1]
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID AND _EHSLocation.RevisionStartDate <= $session.system_date AND _EHSLocation.RevisionEndDate > $session.system_date  -- association [1..1]
;