C_EquipSafetyInstructionTP

DDL: C_EQUIPSAFETYINSTRUCTIONTP Type: view CONSUMPTION Package: EHHSS_CNS_FSI

SI for Equip.: Root Consumption View

C_EquipSafetyInstructionTP is a Consumption CDS View that provides data about "SI for Equip.: Root Consumption View" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstructionTP) and exposes 57 fields with key field SafetyInstructionUUID. It has 12 associations to related views. Part of development package EHHSS_CNS_FSI.

Data Sources (1)

SourceAliasJoin Type
I_SafetyInstructionTP I_SafetyInstructionTP from

Associations (12)

CardinalityTargetAliasCondition
[1..*] C_EquipSftyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP $projection.SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID
[1..*] C_EquipSafetyInstrnEquipTP _SafetyInstructionEquipment $projection.SafetyInstructionUUID = _SafetyInstructionEquipment.SafetyInstructionUUID
[1..*] C_EquipSafetyInstrnBuildingTP _SafetyInstructionBuilding $projection.SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID
[1..*] C_EquipSafetyInstructionJobTP _SafetyInstructionJob $projection.SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID
[1..*] C_EquipSafetyInstrnChapterTP _SafetyInstructionChapter $projection.SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID
[1..1] I_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant $projection.FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID and _SafetyInstrnStructureByPlant.SafetyInstructionType = 'EQUIP' and _SafetyInstrnStructureByPlant.SafetyInstructionSubType = '' -- Text Associations
[0..*] I_SafetyInstructionStatusText _SafetyInstructionStatusText $projection.SafetyInstructionStatus = _SafetyInstructionStatusText.SafetyInstructionStatus
[0..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.FactoryEHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language
[0..*] I_LanguageText _LanguageText $projection.Language = _LanguageText.LanguageCode
[0..1] I_User _LastChangedByUserText $projection.LastChangedByUser = _LastChangedByUserText.UserID
[0..1] I_User _CreatedByUserText $projection.CreatedByUser = _CreatedByUserText.UserID
[0..1] I_User _ReleasedByUserText $projection.ReleasedByUser = _ReleasedByUserText.UserID

Annotations (19)

NameValueLevelField
EndUserText.label SI for Equip.: Root Consumption View view
AbapCatalog.sqlViewName CEQUIPFSITP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.draftEnabled true view
ObjectModel.representativeKey SafetyInstructionUUID view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
Metadata.ignorePropagatedAnnotations false view
Metadata.allowExtensions true view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionUUID SafetyInstructionUUID NodeID
SafetyInstruction SafetyInstruction Safety Instr. ID
SafetyInstructionStatus SafetyInstructionStatus Status
SafetyInstructionStatusText
SftyInstrnStatusCriticality 0
SftyInstrnIsTmplCriticality 0
SafetyInstructionMajorRevision SafetyInstructionMajorRevision Major Revision
SafetyInstructionMinorRevision SafetyInstructionMinorRevision Minor Revision
SafetyInstructionRevision
FactoryEHSLocationUUID FactoryEHSLocationUUID Location
FactoryEHSLocationUUIDForCopy FactoryEHSLocationUUID Location
SftyInstrnFactAreasCnctntdText
SftyInstrnBuildingsCnctntdText
SftyInstrnEquipCnctntdText
EHSLocationName _EHSLocationName EHSLocationName
CityName _EHSLocation CityName Name
SafetyInstrnJobsCnctntdText
ChemicalUUID ChemicalUUID NodeID
JobFreeText JobFreeText Job Description
FactoryAreaFreeText FactoryAreaFreeText Fact. Area Descr.
Language Language Report Text Language
LanguageName
CreationUTCDateTime CreationUTCDateTime Time Stamp
CreatedByUserDescription _CreatedByUserText UserDescription Full Name
CreatedByUser CreatedByUser User Name
LastChangeUTCDateTime LastChangeUTCDateTime Time Stamp
LastChangedByUserDescription _LastChangedByUserText UserDescription Full Name
LastChangedByUser LastChangedByUser User Name
SafetyInstructionRelDate SafetyInstructionRelDate Released On
ReleasedByUserName _ReleasedByUserText UserDescription Full Name
ReleasedByUser ReleasedByUser Released By
SftyInstrnChangeInfoFieldCtrl 0
SftyInstrnReleaseInfoFieldCtrl 0
SafetyInstructionType SafetyInstructionType SI Type
SafetyInstructionSubType SafetyInstructionSubType SI Subtype
SafetyInstructionIsTemplate SafetyInstructionIsTemplate Is Template
ObjectHasAIGeneratedContent ObjectHasAIGeneratedContent
SftyInstrnAIGnrtnSystemPrptTxt SftyInstrnAIGnrtnSystemPrptTxt
SftyInstrnAIGnrtnUserPrptTxt SftyInstrnAIGnrtnUserPrptTxt
SafetyInstructionNote SafetyInstructionNote Note
SafetyInstructionSubjectDesc SafetyInstructionSubjectDesc Subject Description
Plant _EHSLocation Plant Valuation Area
SafetyInstructionStructure _SafetyInstrnStructureByPlant SafetyInstructionStructure Structure
_SafetyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP
_SafetyInstructionEquipment _SafetyInstructionEquipment
_SafetyInstructionBuilding _SafetyInstructionBuilding
_SafetyInstructionJob _SafetyInstructionJob
_SafetyInstructionChapter _SafetyInstructionChapter
_SafetyInstructionStatusText _SafetyInstructionStatusText
_EHSLocationName _EHSLocationName
_LanguageText _LanguageText
_LastChangedByUserText _LastChangedByUserText
_CreatedByUserText _CreatedByUserText
_ReleasedByUserText _ReleasedByUserText
_EHSLocation _EHSLocation
_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant
_Plant _EHSLocation _Plant

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_EquipSafetyInstructionTP.
-- 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_EquipSafetyInstructionTP AS
SELECT
  SafetyInstructionUUID,
  SafetyInstruction,
  SafetyInstructionStatus,
  _SafetyInstructionStatusText[1: Language = $session.system_language].SafetyInstructionStatusText AS SafetyInstructionStatusText,
  0 AS SftyInstrnStatusCriticality,
  0 AS SftyInstrnIsTmplCriticality,
  SafetyInstructionMajorRevision,
  SafetyInstructionMinorRevision,
  cast(' ' as ehhss_hsi_revision preserving type ) AS SafetyInstructionRevision,
  FactoryEHSLocationUUID,
  FactoryEHSLocationUUID AS FactoryEHSLocationUUIDForCopy,
  cast ( '' as abap.char( 255 ) ) AS SftyInstrnFactAreasCnctntdText,
  cast ( '' as abap.char( 255 ) ) AS SftyInstrnBuildingsCnctntdText,
  cast ( '' as abap.char( 255 ) ) AS SftyInstrnEquipCnctntdText,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  _EHSLocation.CityName AS CityName,
  cast ( '' as abap.char( 255 ) ) AS SafetyInstrnJobsCnctntdText,
  ChemicalUUID,
  JobFreeText,
  FactoryAreaFreeText,
  Language,
  _LanguageText[1: Language = $session.system_language].LanguageName AS LanguageName,
  CreationUTCDateTime,
  _CreatedByUserText.UserDescription AS CreatedByUserDescription,
  CreatedByUser,
  LastChangeUTCDateTime,
  _LastChangedByUserText.UserDescription AS LastChangedByUserDescription,
  LastChangedByUser,
  SafetyInstructionRelDate,
  _ReleasedByUserText.UserDescription AS ReleasedByUserName,
  ReleasedByUser,
  0 AS SftyInstrnChangeInfoFieldCtrl,
  0 AS SftyInstrnReleaseInfoFieldCtrl,
  SafetyInstructionType,
  SafetyInstructionSubType,
  SafetyInstructionIsTemplate,
  ObjectHasAIGeneratedContent,
  SftyInstrnAIGnrtnSystemPrptTxt,
  SftyInstrnAIGnrtnUserPrptTxt,
  SafetyInstructionNote,
  SafetyInstructionSubjectDesc,
  _EHSLocation.Plant AS Plant,
  _SafetyInstrnStructureByPlant.SafetyInstructionStructure AS SafetyInstructionStructure,
  _EHSLocation._Plant AS _Plant
FROM I_SafetyInstructionTP
LEFT OUTER JOIN C_EquipSftyInstrnFactoryAreaTP AS _SafetyInstrnFactoryAreaTP ON SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_EquipSafetyInstrnEquipTP AS _SafetyInstructionEquipment ON SafetyInstructionUUID = _SafetyInstructionEquipment.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_EquipSafetyInstrnBuildingTP AS _SafetyInstructionBuilding ON SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_EquipSafetyInstructionJobTP AS _SafetyInstructionJob ON SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_EquipSafetyInstrnChapterTP AS _SafetyInstructionChapter ON SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstrnStructureByPlant AS _SafetyInstrnStructureByPlant ON FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID AND _SafetyInstrnStructureByPlant.SafetyInstructionType = 'EQUIP' AND _SafetyInstrnStructureByPlant.SafetyInstructionSubType = ''  -- association [1..1]
LEFT OUTER JOIN I_SafetyInstructionStatusText AS _SafetyInstructionStatusText ON SafetyInstructionStatus = _SafetyInstructionStatusText.SafetyInstructionStatus  -- association [0..*]
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSLocationName ON FactoryEHSLocationUUID = _EHSLocationName.EHSLocationUUID AND _EHSLocationName.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON Language = _LanguageText.LanguageCode  -- association [0..*]
LEFT OUTER JOIN I_User AS _LastChangedByUserText ON LastChangedByUser = _LastChangedByUserText.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUserText ON CreatedByUser = _CreatedByUserText.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _ReleasedByUserText ON ReleasedByUser = _ReleasedByUserText.UserID  -- association [0..1]
;