I_SafetyInstruction

DDL: I_SAFETYINSTRUCTION Type: view BASIC

Safety Instruction Interface View

I_SafetyInstruction is a Basic CDS View that provides data about "Safety Instruction Interface View" in SAP S/4HANA. It reads from 1 data source (ehhssv_fsi_root) and exposes 30 fields with key field SafetyInstructionUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehhssv_fsi_root ehhssv_fsi_root from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_EHSLocation _EHSLocation $projection.FactoryEHSLocationUUID = _EHSLocation.EHSLocationUUID and _EHSLocation.RevisionStartDate <= $session.system_date and _EHSLocation.RevisionEndDate >= $session.system_date
[0..1] I_Chemical _Chemical $projection.ChemicalUUID = _Chemical.ChemicalUUID and _Chemical.RevisionStartDate <= $session.system_date and _Chemical.RevisionEndDate >= $session.system_date
[0..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
[1..*] I_SafetyInstructionChapter _SafetyInstructionChapter $projection.SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID
[1..*] I_SafetyInstructionProduct _SafetyInstructionProduct $projection.SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID
[1..*] I_SafetyInstructionBuilding _SafetyInstructionBuilding $projection.SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID
[1..*] I_SafetyInstructionJob _SafetyInstructionJob $projection.SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID
[1..*] I_SafetyInstrnFactoryArea _SafetyInstrnFactoryAreaTP $projection.SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID
[0..*] I_SafetyInstructionEquipment _SafetyInstructionEquipment $projection.SafetyInstructionUUID = _SafetyInstructionEquipment.SafetyInstructionUUID

Annotations (10)

NameValueLevelField
EndUserText.label Safety Instruction Interface View view
AbapCatalog.sqlViewName IHSSFSI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK 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 (30)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionUUID safetyinstructionuuid NodeID
SafetyInstruction safetyinstruction Safety Instr. ID
SafetyInstructionStatus safetyinstructionstatus Status
FactoryEHSLocationUUID factoryehslocationuuid Location
ChemicalUUID chemicaluuid NodeID
ChmlCmplncInfoUUID chmlcmplncinfouuid Chemical Compliance Information PP
JobFreeText jobfreetext Job Description
FactoryAreaFreeText factoryareafreetext Fact. Area Descr.
Language language Report Text Language
SafetyInstructionRelDate safetyinstructionreldate Released On
ReleasedByUser releasedbyuser Released By
CreationUTCDateTime Time Stamp
CreatedByUser User Name
LastChangeUTCDateTime Time Stamp
LastChangedByUser User Name
SafetyInstructionType safetyinstructiontype SI Type
SafetyInstructionSubType safetyinstructionsubtype SI Subtype
SafetyInstructionSubjectDesc safetyinstructionsubjectdesc Subject Description
SafetyInstructionIsTemplate safetyinstructionistemplate Is Template
SafetyInstructionNote safetyinstructionnote Note
SftyInstrnMigrationSource sftyinstrnmigrationsource Migration Source
_EHSLocation _EHSLocation
_Chemical _Chemical
_SafetyInstructionChapter _SafetyInstructionChapter
_SafetyInstructionProduct _SafetyInstructionProduct
_SafetyInstructionBuilding _SafetyInstructionBuilding
_SafetyInstructionJob _SafetyInstructionJob
_SafetyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP
_SafetyInstructionEquipment _SafetyInstructionEquipment
_ChmlCmplncInfo _ChmlCmplncInfo

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_SafetyInstruction.
-- 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_SafetyInstruction AS
SELECT
  SafetyInstructionUUID,
  SafetyInstruction,
  SafetyInstructionStatus,
  FactoryEHSLocationUUID,
  ChemicalUUID,
  ChmlCmplncInfoUUID,
  JobFreeText,
  FactoryAreaFreeText,
  Language,
  SafetyInstructionRelDate,
  ReleasedByUser,
  cast(creationutcdatetime as ehfnd_bo_crea_date_time preserving type ) AS CreationUTCDateTime,
  cast(createdbyuser as ehfnd_bo_crea_uname preserving type ) AS CreatedByUser,
  cast(lastchangeutcdatetime as ehfnd_bo_lchg_date_time preserving type ) AS LastChangeUTCDateTime,
  cast(lastchangedbyuser as ehfnd_bo_lchg_uname preserving type ) AS LastChangedByUser,
  SafetyInstructionType,
  SafetyInstructionSubType,
  SafetyInstructionSubjectDesc,
  SafetyInstructionIsTemplate,
  SafetyInstructionNote,
  SftyInstrnMigrationSource
FROM ehhssv_fsi_root
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON FactoryEHSLocationUUID = _EHSLocation.EHSLocationUUID AND _EHSLocation.RevisionStartDate <= $session.system_date AND _EHSLocation.RevisionEndDate >= $session.system_date  -- association [1..1]
LEFT OUTER JOIN I_Chemical AS _Chemical ON ChemicalUUID = _Chemical.ChemicalUUID AND _Chemical.RevisionStartDate <= $session.system_date AND _Chemical.RevisionEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_ChmlCmplncInfo AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [0..1]
LEFT OUTER JOIN I_SafetyInstructionChapter AS _SafetyInstructionChapter ON SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstructionProduct AS _SafetyInstructionProduct ON SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstructionBuilding AS _SafetyInstructionBuilding ON SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstructionJob AS _SafetyInstructionJob ON SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstrnFactoryArea AS _SafetyInstrnFactoryAreaTP ON SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN I_SafetyInstructionEquipment AS _SafetyInstructionEquipment ON SafetyInstructionUUID = _SafetyInstructionEquipment.SafetyInstructionUUID  -- association [0..*]
;