C_GenericSafetyInstructionFDP

DDL: C_GENERICSAFETYINSTRUCTIONFDP Type: view CONSUMPTION

Generic SI: Root Consump. View for FDP

C_GenericSafetyInstructionFDP is a Consumption CDS View that provides data about "Generic SI: Root Consump. View for FDP" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstruction) and exposes 45 fields with key field SafetyInstructionUUID. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SafetyInstruction I_SafetyInstruction from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_SafetyInstrnStructureByPlant _SafetyInstrnStructureByPlant $projection.FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID and $projection.SafetyInstructionSubType = _SafetyInstrnStructureByPlant.SafetyInstructionSubType and _SafetyInstrnStructureByPlant.SafetyInstructionType = 'GENRC'
[1..1] P_GnrcSftyInstrnStrucById _GnrcSftyInstrnStrucById $projection.FactoryEHSLocationUUID = _GnrcSftyInstrnStrucById.EHSLocationUUID and $projection.SafetyInstructionSubType = _GnrcSftyInstrnStrucById.SafetyInstructionSubType and $projection.SafetyInstructionUUID = _GnrcSftyInstrnStrucById.SafetyInstructionUUID -- Text Associations
[0..1] I_SafetyInstructionSubTypeText _SafetyInstructionSubTypeText $projection.SafetyInstructionSubType = _SafetyInstructionSubTypeText.SafetyInstructionSubType and _SafetyInstructionSubTypeText.Language = $session.system_language
[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 (13)

NameValueLevelField
EndUserText.label Generic SI: Root Consump. View for FDP view
AbapCatalog.sqlViewName CGNRCFSI 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.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 (45)

KeyFieldSource TableSource FieldDescription
KEY SafetyInstructionUUID SafetyInstructionUUID NodeID
SafetyInstruction SafetyInstruction Safety Instr. ID
SafetyInstructionStatus SafetyInstructionStatus Status
SftyInstrnStatusCriticality 0
SftyInstrnIsTmplCriticality 0
SafetyInstructionMajorRevision SafetyInstructionMajorRevision Major Revision
SafetyInstructionMinorRevision SafetyInstructionMinorRevision Minor Revision
SafetyInstructionRevision
FactoryEHSLocationUUID FactoryEHSLocationUUID Location
FactoryEHSLocationUUIDForCopy FactoryEHSLocationUUID Location
SftyInstrnFactAreasCnctntdText
SftyInstrnBuildingsCnctntdText
EHSLocationName _EHSLocationName EHSLocationName
CityName _EHSLocation CityName Name
SafetyInstrnJobsCnctntdText
JobFreeText JobFreeText Job Description
FactoryAreaFreeText FactoryAreaFreeText Fact. Area Descr.
Language Language Report Text Language
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
SafetyInstructionRelDateTime Released On
ReleasedByUserName _ReleasedByUserText UserDescription Full Name
ReleasedByUser ReleasedByUser Released By
SafetyInstructionType SafetyInstructionType SI Type
SafetyInstructionSubType SafetyInstructionSubType SI Subtype
SafetyInstructionIsTemplate SafetyInstructionIsTemplate Is Template
SafetyInstructionNote SafetyInstructionNote Note
SafetyInstructionSubjectDesc SafetyInstructionSubjectDesc Subject Description
Plant _EHSLocation Plant Valuation Area
SafetyInstructionStructure _GnrcSftyInstrnStrucById SafetyInstructionStructure Structure
SafetyInstructionSubTypeText _SafetyInstructionSubTypeText SafetyInstructionSubTypeText
_SafetyInstructionSubTypeText _SafetyInstructionSubTypeText
_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_GenericSafetyInstructionFDP.
-- 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_GenericSafetyInstructionFDP AS
SELECT
  SafetyInstructionUUID,
  SafetyInstruction,
  SafetyInstructionStatus,
  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,
  _EHSLocationName.EHSLocationName AS EHSLocationName,
  _EHSLocation.CityName AS CityName,
  cast ( '' as abap.char( 255 ) ) AS SafetyInstrnJobsCnctntdText,
  JobFreeText,
  FactoryAreaFreeText,
  Language,
  CreationUTCDateTime,
  _CreatedByUserText.UserDescription AS CreatedByUserDescription,
  CreatedByUser,
  LastChangeUTCDateTime,
  _LastChangedByUserText.UserDescription AS LastChangedByUserDescription,
  LastChangedByUser,
  cast ( SafetyInstructionRelDate as timestampl preserving type ) AS SafetyInstructionRelDateTime,
  _ReleasedByUserText.UserDescription AS ReleasedByUserName,
  ReleasedByUser,
  SafetyInstructionType,
  SafetyInstructionSubType,
  SafetyInstructionIsTemplate,
  SafetyInstructionNote,
  SafetyInstructionSubjectDesc,
  _EHSLocation.Plant AS Plant,
  _GnrcSftyInstrnStrucById.SafetyInstructionStructure AS SafetyInstructionStructure,
  _SafetyInstructionSubTypeText.SafetyInstructionSubTypeText AS SafetyInstructionSubTypeText,
  _EHSLocation._Plant AS _Plant
FROM I_SafetyInstruction
LEFT OUTER JOIN I_SafetyInstrnStructureByPlant AS _SafetyInstrnStructureByPlant ON FactoryEHSLocationUUID = _SafetyInstrnStructureByPlant.EHSLocationUUID AND SafetyInstructionSubType = _SafetyInstrnStructureByPlant.SafetyInstructionSubType AND _SafetyInstrnStructureByPlant.SafetyInstructionType = 'GENRC'  -- association [1..1]
LEFT OUTER JOIN P_GnrcSftyInstrnStrucById AS _GnrcSftyInstrnStrucById ON FactoryEHSLocationUUID = _GnrcSftyInstrnStrucById.EHSLocationUUID AND SafetyInstructionSubType = _GnrcSftyInstrnStrucById.SafetyInstructionSubType AND SafetyInstructionUUID = _GnrcSftyInstrnStrucById.SafetyInstructionUUID  -- association [1..1]
LEFT OUTER JOIN I_SafetyInstructionSubTypeText AS _SafetyInstructionSubTypeText ON SafetyInstructionSubType = _SafetyInstructionSubTypeText.SafetyInstructionSubType AND _SafetyInstructionSubTypeText.Language = $session.system_language  -- association [0..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]
;