C_SubstSafetyInstructionTP

DDL: C_SUBSTSAFETYINSTRUCTIONTP Type: view CONSUMPTION Package: EHHSS_CNS_FSI

Consumption View for SI for Substance

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

Data Sources (1)

SourceAliasJoin Type
I_SafetyInstructionTP I_SafetyInstructionTP from

Associations (17)

CardinalityTargetAliasCondition
[1..*] C_SubstSftyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP $projection.SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID
[1..*] C_SubstSftyInstrnChapterTP _SafetyInstructionChapter $projection.SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID
[1..*] C_SubstSftyInstrnProductTP _SafetyInstructionProduct $projection.SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID
[1..*] C_SubstSftyInstrnBuildingTP _SafetyInstructionBuilding $projection.SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID
[1..*] C_SubstSftyInstrnJobTP _SafetyInstructionJob $projection.SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID -- For Filtering by Materials
[0..*] C_SubstSftyInstrnProductTP _SafetyInstructionAssgdProd $projection.SafetyInstructionUUID = _SafetyInstructionAssgdProd.SafetyInstructionUUID and _SafetyInstructionAssgdProd.ProductIsUsedInFactoryAreas = 'X' -- Text Associations
[1..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
[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.SafetyInstructionReldByUser = _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 = 'S02'
[1..1] P_SubstSftyInstrnStrucByPlnt _SubstSftyInstrnStrucByPlnt $projection.FactoryEHSLocationUUID = _SubstSftyInstrnStrucByPlnt.EHSLocationUUID

Annotations (19)

NameValueLevelField
EndUserText.label Consumption View for SI for Substance view
AbapCatalog.sqlViewName CHSSFSSITP 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 (72)

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
ChmlCmplncInternalName _ChmlCmplncInfo ChmlCmplncInternalName Internal Name
Specification _ChmlCmplncInfo Specification Substance ID
ChmlCmplncInfoUUID ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlCmplncInfoUUIDForEdit ChmlCmplncInfoUUID Chemical Compliance Information PP
SemanticObject
ChmlCmplncInfoNavgnLink ChmlCmplncInfoUUID Chemical Compliance Information PP
JobFreeText JobFreeText Job Description
FactoryAreaFreeText FactoryAreaFreeText Fact. Area Descr.
Language Language Report Text Language
LanguageName
SafetyInstructionJobsCnctntd
SftyInstrnFactAreasCnctntd
SftyInstrnBuildingsCnctntd
SftyInstrnHzdsIngrdntCnctntd Hazardous Ingredients
SftyInstrnRelUTCDateTime SafetyInstructionRelDate Released On
ReleasedByUserName _ReleasedByUserText UserDescription Released By User Name
SafetyInstructionReldByUser 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
SafetyInstructionStructure _SubstSftyInstrnStrucByPlnt SafetyInstructionStructure Structure
SafetyInstructionType SafetyInstructionType SI Type
SafetyInstructionSubType SafetyInstructionSubType SI Subtype
SafetyInstructionSubjectDesc SafetyInstructionSubjectDesc Subject Description
MaterialIsBaseProduct _ChmlCmplncInfo MaterialIsBaseProduct Is Base Product
MaterialIsSold _ChmlCmplncInfo MaterialIsSold Is Sold
MaterialIsTransported _ChmlCmplncInfo MaterialIsTransported Is Transported
MaterialIsSourced _ChmlCmplncInfo MaterialIsSourced Is Purchased
MaterialIsProduced _ChmlCmplncInfo MaterialIsProduced Is Produced
MaterialIsDisposed _ChmlCmplncInfo MaterialIsDisposed Is Disposed
MaterialIsEmissionRelevant _ChmlCmplncInfo MaterialIsEmissionRelevant Emission Relevant
ProdStewardshipRespUnit _ChmlCmplncInfo ProdStewardshipRespUnit Responsible Unit
ObjectHasAIGeneratedContent ObjectHasAIGeneratedContent
SftyInstrnAIGnrtnSystemPrptTxt SftyInstrnAIGnrtnSystemPrptTxt
SftyInstrnAIGnrtnUserPrptTxt SftyInstrnAIGnrtnUserPrptTxt
_SafetyInstrnFactoryAreaTP _SafetyInstrnFactoryAreaTP
_SafetyInstructionChapter _SafetyInstructionChapter
_SafetyInstructionProduct _SafetyInstructionProduct
_SafetyInstructionBuilding _SafetyInstructionBuilding
_SafetyInstructionJob _SafetyInstructionJob
_EHSLocationName _EHSLocationName
_EHSJobNameText _EHSJobNameText
_EHSLocation _EHSLocation
_Country _EHSLocation _Country
_Plant _EHSLocation _Plant
_SafetyInstructionAssgdProd _SafetyInstructionAssgdProd
_LastChangedByUserText _LastChangedByUserText
_CreatedByUserText _CreatedByUserText
_ReleasedByUserText _ReleasedByUserText
_SafetyInstructionStatusText _SafetyInstructionStatusText
_LanguageText _LanguageText
_CountryText _CountryText
_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant
_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 C_SubstSafetyInstructionTP.
-- 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_SubstSafetyInstructionTP 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,
  _ChmlCmplncInfo.ChmlCmplncInternalName AS ChmlCmplncInternalName,
  _ChmlCmplncInfo.Specification AS Specification,
  ChmlCmplncInfoUUID,
  ChmlCmplncInfoUUID AS ChmlCmplncInfoUUIDForEdit,
  cast ( '' as ehfnd_semantic_object ) AS SemanticObject,
  ChmlCmplncInfoUUID AS ChmlCmplncInfoNavgnLink,
  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( 1333 ) ) AS SftyInstrnHzdsIngrdntCnctntd,
  SafetyInstructionRelDate AS SftyInstrnRelUTCDateTime,
  _ReleasedByUserText.UserDescription AS ReleasedByUserName,
  ReleasedByUser AS SafetyInstructionReldByUser,
  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,
  _SubstSftyInstrnStrucByPlnt.SafetyInstructionStructure AS SafetyInstructionStructure,
  SafetyInstructionType,
  SafetyInstructionSubType,
  SafetyInstructionSubjectDesc,
  _ChmlCmplncInfo.MaterialIsBaseProduct AS MaterialIsBaseProduct,
  _ChmlCmplncInfo.MaterialIsSold AS MaterialIsSold,
  _ChmlCmplncInfo.MaterialIsTransported AS MaterialIsTransported,
  _ChmlCmplncInfo.MaterialIsSourced AS MaterialIsSourced,
  _ChmlCmplncInfo.MaterialIsProduced AS MaterialIsProduced,
  _ChmlCmplncInfo.MaterialIsDisposed AS MaterialIsDisposed,
  _ChmlCmplncInfo.MaterialIsEmissionRelevant AS MaterialIsEmissionRelevant,
  _ChmlCmplncInfo.ProdStewardshipRespUnit AS ProdStewardshipRespUnit,
  ObjectHasAIGeneratedContent,
  SftyInstrnAIGnrtnSystemPrptTxt,
  SftyInstrnAIGnrtnUserPrptTxt,
  _EHSLocation._Country AS _Country,
  _EHSLocation._Plant AS _Plant
FROM I_SafetyInstructionTP
LEFT OUTER JOIN C_SubstSftyInstrnFactoryAreaTP AS _SafetyInstrnFactoryAreaTP ON SafetyInstructionUUID = _SafetyInstrnFactoryAreaTP.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SubstSftyInstrnChapterTP AS _SafetyInstructionChapter ON SafetyInstructionUUID = _SafetyInstructionChapter.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SubstSftyInstrnProductTP AS _SafetyInstructionProduct ON SafetyInstructionUUID = _SafetyInstructionProduct.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SubstSftyInstrnBuildingTP AS _SafetyInstructionBuilding ON SafetyInstructionUUID = _SafetyInstructionBuilding.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SubstSftyInstrnJobTP AS _SafetyInstructionJob ON SafetyInstructionUUID = _SafetyInstructionJob.SafetyInstructionUUID  -- association [1..*]
LEFT OUTER JOIN C_SubstSftyInstrnProductTP AS _SafetyInstructionAssgdProd ON SafetyInstructionUUID = _SafetyInstructionAssgdProd.SafetyInstructionUUID AND _SafetyInstructionAssgdProd.ProductIsUsedInFactoryAreas = 'X'  -- association [0..*]
LEFT OUTER JOIN I_ChmlCmplncInfo AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [1..1]
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 SafetyInstructionReldByUser = _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 = 'S02'  -- association [1..1]
LEFT OUTER JOIN P_SubstSftyInstrnStrucByPlnt AS _SubstSftyInstrnStrucByPlnt ON FactoryEHSLocationUUID = _SubstSftyInstrnStrucByPlnt.EHSLocationUUID  -- association [1..1]
;