C_EquipSafetyInstrnBuildingTP

DDL: C_EQUIPSAFETYINSTRNBUILDINGTP Type: view CONSUMPTION

SI for Equip.: Building Consumption View

C_EquipSafetyInstrnBuildingTP is a Consumption CDS View that provides data about "SI for Equip.: Building Consumption View" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstructionBuildingTP) and exposes 22 fields with key field SafetyInstructionBuildingUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SafetyInstructionBuildingTP I_SafetyInstructionBuildingTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_EquipSafetyInstructionTP _SafetyInstruction $projection.SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID --Text associations
[0..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.EHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language

Annotations (19)

NameValueLevelField
EndUserText.label SI for Equip.: Building Consumption View view
AbapCatalog.sqlViewName CEQUIPFSIBLDNGTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.representativeKey SafetyInstructionBuildingUUID view
ObjectModel.semanticKey SafetyInstructionUUID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
Metadata.ignorePropagatedAnnotations false view
Metadata.allowExtensions true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionBuildingUUID SafetyInstructionBuildingUUID Buildings
SafetyInstructionUUID SafetyInstructionUUID NodeID
EHSLocationUUID EHSLocationUUID Buildings
EHSLocationName _EHSLocationName EHSLocationName
SafetyInstrnIsValidInBuilding SafetyInstrnIsValidInBuilding Valid in Building
FactoryEHSLocationUUID _SafetyInstruction FactoryEHSLocationUUID Location
SafetyInstructionType _SafetyInstruction SafetyInstructionType SI Type
SafetyInstructionSubType _SafetyInstruction SafetyInstructionSubType SI Subtype
EHSLocationType _EHSLocation EHSLocationType Loc. Type
EHSLocationStatus _EHSLocation EHSLocationStatus
EHSLocationAuthorizationGroup
Plant _EHSLocation Plant Valuation Area
CostCenter _EHSLocation CostCenter Cost Center
CompanyCode _EHSLocation CompanyCode Receiver Company Code
BusinessArea _EHSLocation BusinessArea Business Area
_SafetyInstruction _SafetyInstruction
Textassociations_EHSLocationName
_EHSLocationType _EHSLocation _EHSLocationType
_Plant _EHSLocation _Plant
_EHSLocationStatus _EHSLocation _EHSLocationStatus
_CompanyCode _EHSLocation _CompanyCode
_BusinessArea _EHSLocation _BusinessArea

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_EquipSafetyInstrnBuildingTP.
-- 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_EquipSafetyInstrnBuildingTP AS
SELECT
  SafetyInstructionBuildingUUID,
  SafetyInstructionUUID,
  EHSLocationUUID,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  SafetyInstrnIsValidInBuilding,
  _SafetyInstruction.FactoryEHSLocationUUID AS FactoryEHSLocationUUID,
  _SafetyInstruction.SafetyInstructionType AS SafetyInstructionType,
  _SafetyInstruction.SafetyInstructionSubType AS SafetyInstructionSubType,
  _EHSLocation.EHSLocationType AS EHSLocationType,
  _EHSLocation.EHSLocationStatus AS EHSLocationStatus,
  cast(_EHSLocation.EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) AS EHSLocationAuthorizationGroup,
  _EHSLocation.Plant AS Plant,
  _EHSLocation.CostCenter AS CostCenter,
  _EHSLocation.CompanyCode AS CompanyCode,
  _EHSLocation.BusinessArea AS BusinessArea,
  _EHSLocation._EHSLocationType AS _EHSLocationType,
  _EHSLocation._Plant AS _Plant,
  _EHSLocation._EHSLocationStatus AS _EHSLocationStatus,
  _EHSLocation._CompanyCode AS _CompanyCode,
  _EHSLocation._BusinessArea AS _BusinessArea
FROM I_SafetyInstructionBuildingTP
LEFT OUTER JOIN C_EquipSafetyInstructionTP AS _SafetyInstruction ON SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID  -- association [1..1]
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSLocationName ON EHSLocationUUID = _EHSLocationName.EHSLocationUUID AND _EHSLocationName.Language = $session.system_language  -- association [0..1]
;