C_SafetyInstructionTP
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SafetyInstructionTP | I_SafetyInstructionTP | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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