C_SafetyInstrnBuildingVH

DDL: C_SAFETYINSTRNBUILDINGVH Type: view CONSUMPTION

FSI: Buildings Value Help

C_SafetyInstrnBuildingVH is a Consumption CDS View that provides data about "FSI: Buildings Value Help" in SAP S/4HANA. It reads from 2 data sources (I_EHSLocation, I_EHSLocationBuilding) and exposes 14 fields with key fields BuildingEHSLocationUUID, EHSParentLocationUUID. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_EHSLocation I_EHSLocation inner
I_EHSLocationBuilding I_EHSLocationBuilding from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.BuildingEHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language
[0..1] I_CurrentEHSLocationNameText _EHSParentLocationName $projection.EHSParentLocationUUID = _EHSParentLocationName.EHSLocationUUID and _EHSParentLocationName.Language = $session.system_language
[0..1] C_EHSLocationTypeVH _EHSLocationTypeVH $projection.EHSLocationType = _EHSLocationTypeVH.EHSLocationType

Annotations (16)

NameValueLevelField
EndUserText.label FSI: Buildings Value Help view
AbapCatalog.sqlViewName CFSIBLNDVH view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey BuildingEHSLocationUUID view
ObjectModel.semanticKey BuildingEHSLocationUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY BuildingEHSLocationUUID BuildingEHSLocationUUID
KEY EHSParentLocationUUID I_EHSLocationBuilding EHSLocationUUID Parent Location UUID
EHSLocationBuildingUUID EHSLocationBuildingUUID
EHSLocationRevisionUUID I_EHSLocationBuilding EHSLocationRevisionUUID UUID
EHSLocationName _EHSLocationName EHSLocationName Building Name
EHSParentLocationName _EHSParentLocationName EHSLocationName Parent Location Name
Plant I_EHSLocation Plant Valuation Area
EHSLocationType I_EHSLocation EHSLocationType Loc. Type
EHSLocationTypeText _EHSLocationTypeVH EHSLocationTypeText Location Type
CostCenter I_EHSLocation CostCenter Cost Center
_EHSLocationName _EHSLocationName
_EHSLocationRevision _EHSLocationRevision
_BuildingCurrentRevision _BuildingCurrentRevision
_EHSParentLocationName _EHSParentLocationName

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 C_SafetyInstrnBuildingVH.
-- 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 C_SafetyInstrnBuildingVH AS
SELECT
  BuildingEHSLocationUUID,
  I_EHSLocationBuilding.EHSLocationUUID AS EHSParentLocationUUID,
  EHSLocationBuildingUUID,
  I_EHSLocationBuilding.EHSLocationRevisionUUID AS EHSLocationRevisionUUID,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  _EHSParentLocationName.EHSLocationName AS EHSParentLocationName,
  I_EHSLocation.Plant AS Plant,
  I_EHSLocation.EHSLocationType AS EHSLocationType,
  _EHSLocationTypeVH.EHSLocationTypeText AS EHSLocationTypeText,
  I_EHSLocation.CostCenter AS CostCenter
FROM I_EHSLocationBuilding
INNER JOIN I_EHSLocation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSLocationName ON BuildingEHSLocationUUID = _EHSLocationName.EHSLocationUUID AND _EHSLocationName.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSParentLocationName ON EHSParentLocationUUID = _EHSParentLocationName.EHSLocationUUID AND _EHSParentLocationName.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_EHSLocationTypeVH AS _EHSLocationTypeVH ON EHSLocationType = _EHSLocationTypeVH.EHSLocationType  -- association [0..1]
;