C_SafetyInstructionTP

DDL: C_SAFETYINSTRUCTIONTP Type: view CONSUMPTION

Consumption View for Safety Instruction

C_SafetyInstructionTP is a Consumption CDS View that provides data about "Consumption View for Safety Instruction" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstructionTP) and exposes 63 fields with key field SafetyInstructionUUID. It has 16 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SafetyInstructionTP I_SafetyInstructionTP from

Associations (16)

CardinalityTargetAliasCondition
[1..*] C_SafetyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP $projection.SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID
[1..*] C_SafetyInstructionChapterTP _SafetyInstructionChapter $projection.SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID
[1..*] C_SafetyInstructionProductTP _SafetyInstructionProduct $projection.SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID
[1..*] C_SafetyInstructionBuildingTP _SafetyInstructionBuilding $projection.SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID
[1..*] C_SafetyInstructionJobTP _SafetyInstructionJob $projection.SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID -- For Filtering by Materials
[0..*] C_SafetyInstructionProductTP _SafetyInstructionAssgdProd $projection.SafetyInstructionUUID = _SafetyInstructionAssgdProd.SafetyInstructionUUID and _SafetyInstructionAssgdProd.ProductIsUsedInFactoryAreas = 'X' -- Text Assotiations
[0..*] I_ChemicalNameText _ChemicalNameText $projection.ChemicalUUID = _ChemicalNameText.ChemicalUUID and $projection.chemicalrevisionuuid = _ChemicalNameText.ChemicalRevisionUUID
[0..*] I_EHSJobNameText _EHSJobNameText $projection.JobFreeText = _EHSJobNameText.EHSJobName and _EHSJobNameText.Language = $session.system_language
[0..*] I_CountryText _CountryText $projection.country = _CountryText.Country
[0..1] I_CurrentEHSLocationNameText _EHSLocationName $projection.FactoryEHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language
[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
[0..*] I_SafetyInstructionStatusText _SafetyInstructionStatusText $projection.SafetyInstructionStatus = _SafetyInstructionStatusText.SafetyInstructionStatus
[0..*] I_LanguageText _LanguageText $projection.Language = _LanguageText.LanguageCode
[1..1] I_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant $projection.FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID and _SafetyInstrnStructureByPlant.SafetyInstructionType = 'SUBST' and _SafetyInstrnStructureByPlant.SafetyInstructionSubType = ''

Annotations (19)

NameValueLevelField
EndUserText.label Consumption View for Safety Instruction view
AbapCatalog.sqlViewName CHSSFSITP 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 #MIXED view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
Metadata.ignorePropagatedAnnotations false view
Metadata.allowExtensions true view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionUUID SafetyInstructionUUID NodeID
SafetyInstruction SafetyInstruction ID
SftyInstrnStatusCriticality 0
SafetyInstructionStatus SafetyInstructionStatus Status
SafetyInstructionMajorRevision SafetyInstructionMajorRevision Major Revision
SafetyInstructionMinorRevision SafetyInstructionMinorRevision Minor Revision
SafetyInstructionRevision
FactoryEHSLocationUUID FactoryEHSLocationUUID Location
FactoryEHSLocationUUIDForCopy FactoryEHSLocationUUID Location
EHSLocationName _EHSLocationName EHSLocationName
ChemicalUUID ChemicalUUID NodeID
ChemicalRevisionUUID _Chemical ChemicalRevisionUUID
NameOfChemical
ChemicalUUIDForEdit ChemicalUUID NodeID
JobFreeText JobFreeText Job Description
FactoryAreaFreeText FactoryAreaFreeText Fact. Area Descr.
Language Language Report Text Language
LanguageName
SafetyInstructionJobsCnctntd
SftyInstrnFactAreasCnctntd
SftyInstrnBuildingsCnctntd
FactoryJargonForSubstance Factory Jargon
SftyInstrnHzdsIngrdntCnctntd Hazardous Ingredients
SafetyInstructionRelDate SafetyInstructionRelDate Released On
ReleasedByUserName _ReleasedByUserText UserDescription Released By User Name
ReleasedByUser ReleasedByUser Released By
SftyInstrnChangeInfoFieldCtrl 0
SftyInstrnReleaseInfoFieldCtrl 0
CreationUTCDateTime CreationUTCDateTime Time Stamp
CreatedByUserDescription _CreatedByUserText UserDescription Created By User Name
CreatedByUser I_SafetyInstructionTP CreatedByUser User Name
LastChangeUTCDateTime LastChangeUTCDateTime Time Stamp
LastChangedByUserDescription _LastChangedByUserText UserDescription Last Changed By User Name
LastChangedByUser I_SafetyInstructionTP LastChangedByUser User Name
Plant _EHSLocation Plant Valuation Area
Country _EHSLocation Country Venue: Ctry/Reg
CityName _EHSLocation CityName Name
CASNumber
ChemicalID Substance ID
SafetyInstructionStructure _SafetyInstrnStructureByPlant SafetyInstructionStructure Structure
SafetyInstructionType SafetyInstructionType SI Type
SafetyInstructionSubType SafetyInstructionSubType SI Subtype
SafetyInstructionSubjectDesc SafetyInstructionSubjectDesc Subject Description
_SafetyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP
_SafetyInstructionChapter _SafetyInstructionChapter
_SafetyInstructionProduct _SafetyInstructionProduct
_SafetyInstructionBuilding _SafetyInstructionBuilding
_SafetyInstructionJob _SafetyInstructionJob
_ChemicalNameText _ChemicalNameText
_EHSLocationName _EHSLocationName
_EHSJobNameText _EHSJobNameText
_EHSLocation _EHSLocation
_Country _EHSLocation _Country
_Chemical _Chemical
_Plant _EHSLocation _Plant
_SafetyInstructionAssgdProd _SafetyInstructionAssgdProd
_LastChangedByUserText _LastChangedByUserText
_CreatedByUserText _CreatedByUserText
_ReleasedByUserText _ReleasedByUserText
_SafetyInstructionStatusText _SafetyInstructionStatusText
_LanguageText _LanguageText
_CountryText _CountryText
_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant

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_SafetyInstructionTP.
-- 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_SafetyInstructionTP AS
SELECT
  SafetyInstructionUUID,
  SafetyInstruction,
  0 AS SftyInstrnStatusCriticality,
  SafetyInstructionStatus,
  SafetyInstructionMajorRevision,
  SafetyInstructionMinorRevision,
  cast(' ' as ehhss_hsi_revision preserving type ) AS SafetyInstructionRevision,
  FactoryEHSLocationUUID,
  FactoryEHSLocationUUID AS FactoryEHSLocationUUIDForCopy,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  ChemicalUUID,
  _Chemical.ChemicalRevisionUUID AS ChemicalRevisionUUID,
  _Chemical._ChemicalBasicInfo._ChemicalName[1: Language = $session.system_language ].NameOfChemical AS NameOfChemical,
  ChemicalUUID AS ChemicalUUIDForEdit,
  JobFreeText,
  FactoryAreaFreeText,
  Language,
  _LanguageText[1: Language = $session.system_language].LanguageName AS LanguageName,
  cast ( '' as abap.char( 1333 ) ) AS SafetyInstructionJobsCnctntd,
  cast ( '' as abap.char( 1333 ) ) AS SftyInstrnFactAreasCnctntd,
  cast ( '' as abap.char( 1333 ) ) AS SftyInstrnBuildingsCnctntd,
  cast( '' as abap.char( 255 ) ) AS FactoryJargonForSubstance,
  cast( '' as abap.char( 1333 ) ) AS SftyInstrnHzdsIngrdntCnctntd,
  SafetyInstructionRelDate,
  _ReleasedByUserText.UserDescription AS ReleasedByUserName,
  ReleasedByUser,
  0 AS SftyInstrnChangeInfoFieldCtrl,
  0 AS SftyInstrnReleaseInfoFieldCtrl,
  CreationUTCDateTime,
  _CreatedByUserText.UserDescription AS CreatedByUserDescription,
  I_SafetyInstructionTP.CreatedByUser AS CreatedByUser,
  LastChangeUTCDateTime,
  _LastChangedByUserText.UserDescription AS LastChangedByUserDescription,
  I_SafetyInstructionTP.LastChangedByUser AS LastChangedByUser,
  _EHSLocation.Plant AS Plant,
  _EHSLocation.Country AS Country,
  _EHSLocation.CityName AS CityName,
  _Chemical._ChemicalBasicInfo.CASNumber AS CASNumber,
  _Chemical._ChemicalRoot.ChemicalID AS ChemicalID,
  _SafetyInstrnStructureByPlant.SafetyInstructionStructure AS SafetyInstructionStructure,
  SafetyInstructionType,
  SafetyInstructionSubType,
  SafetyInstructionSubjectDesc,
  _EHSLocation._Country AS _Country,
  _EHSLocation._Plant AS _Plant
FROM I_SafetyInstructionTP
LEFT OUTER JOIN C_SafetyInstrnFactoryAreaTP AS _SafetyInstrnFactoryAreaTP ON SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SafetyInstructionChapterTP AS _SafetyInstructionChapter ON SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SafetyInstructionProductTP AS _SafetyInstructionProduct ON SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SafetyInstructionBuildingTP AS _SafetyInstructionBuilding ON SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SafetyInstructionJobTP AS _SafetyInstructionJob ON SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SafetyInstructionProductTP AS _SafetyInstructionAssgdProd ON SafetyInstructionUUID = _SafetyInstructionAssgdProd.SafetyInstructionUUID AND _SafetyInstructionAssgdProd.ProductIsUsedInFactoryAreas = 'X'  -- association [0..*]
LEFT OUTER JOIN I_ChemicalNameText AS _ChemicalNameText ON ChemicalUUID = _ChemicalNameText.ChemicalUUID AND chemicalrevisionuuid = _ChemicalNameText.ChemicalRevisionUUID  -- association [0..*]
LEFT OUTER JOIN I_EHSJobNameText AS _EHSJobNameText ON JobFreeText = _EHSJobNameText.EHSJobName AND _EHSJobNameText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_CountryText AS _CountryText ON country = _CountryText.Country  -- 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_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]
LEFT OUTER JOIN I_SafetyInstructionStatusText AS _SafetyInstructionStatusText ON SafetyInstructionStatus = _SafetyInstructionStatusText.SafetyInstructionStatus  -- association [0..*]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON Language = _LanguageText.LanguageCode  -- association [0..*]
LEFT OUTER JOIN I_SafetyInstrnStructureByPlant AS _SafetyInstrnStructureByPlant ON FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID AND _SafetyInstrnStructureByPlant.SafetyInstructionType = 'SUBST' AND _SafetyInstrnStructureByPlant.SafetyInstructionSubType = ''  -- association [1..1]
;