C_SafetyInstructionBuildingTP

DDL: C_SAFETYINSTRUCTIONBUILDINGTP Type: view CONSUMPTION

Consumption View for SI Building

C_SafetyInstructionBuildingTP is a Consumption CDS View that provides data about "Consumption View for SI Building" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstructionBuildingTP) and exposes 17 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_SafetyInstructionTP _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 Consumption View for SI Building view
AbapCatalog.sqlViewName CHSSFSIBLDNG 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 #MIXED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
Metadata.ignorePropagatedAnnotations false view
Metadata.allowExtensions true view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionBuildingUUID SafetyInstructionBuildingUUID Buildings
SafetyInstructionUUID SafetyInstructionUUID NodeID
EHSLocationUUID EHSLocationUUID Buildings
EHSLocationName _EHSLocationName EHSLocationName
SafetyInstrnIsValidInBuilding SafetyInstrnIsValidInBuilding Valid in Building
SafetyInstructionType _SafetyInstruction SafetyInstructionType SI Type
SafetyInstructionSubType _SafetyInstruction SafetyInstructionSubType SI Subtype
FactoryEHSLocationUUID _SafetyInstruction FactoryEHSLocationUUID Location
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

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_SafetyInstructionBuildingTP.
-- 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_SafetyInstructionBuildingTP AS
SELECT
  SafetyInstructionBuildingUUID,
  SafetyInstructionUUID,
  EHSLocationUUID,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  SafetyInstrnIsValidInBuilding,
  _SafetyInstruction.SafetyInstructionType AS SafetyInstructionType,
  _SafetyInstruction.SafetyInstructionSubType AS SafetyInstructionSubType,
  _SafetyInstruction.FactoryEHSLocationUUID AS FactoryEHSLocationUUID,
  _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
FROM I_SafetyInstructionBuildingTP
LEFT OUTER JOIN C_SafetyInstructionTP 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]
;