C_GenericSafetyInstructionFDP
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. Part of development package EHHSS_CNS_FSI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SafetyInstruction | I_SafetyInstruction | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA