C_SafetyInstructionBuildingTP
Consumption View for SI Building
C_SafetyInstructionBuildingTP is a Consumption CDS View that provides data about "Consumption View for SI Building" in SAP S/4HANA. It reads from 1 data source (I_SafetyInstructionBuildingTP) and exposes 17 fields with key field SafetyInstructionBuildingUUID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SafetyInstructionBuildingTP | I_SafetyInstructionBuildingTP | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_SafetyInstructionTP | _SafetyInstruction | $projection.SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID --Text associations |
| [0..1] | I_CurrentEHSLocationNameText | _EHSLocationName | $projection.EHSLocationUUID = _EHSLocationName.EHSLocationUUID and _EHSLocationName.Language = $session.system_language |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Consumption View for SI Building | view | |
| AbapCatalog.sqlViewName | CHSSFSIBLDNG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.representativeKey | SafetyInstructionBuildingUUID | view | |
| ObjectModel.semanticKey | 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 (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SafetyInstructionBuildingUUID | SafetyInstructionBuildingUUID | Buildings | |
| SafetyInstructionUUID | SafetyInstructionUUID | NodeID | ||
| EHSLocationUUID | EHSLocationUUID | Buildings | ||
| EHSLocationName | _EHSLocationName | EHSLocationName | ||
| SafetyInstrnIsValidInBuilding | SafetyInstrnIsValidInBuilding | Valid in Building | ||
| SafetyInstructionType | _SafetyInstruction | SafetyInstructionType | SI Type | |
| SafetyInstructionSubType | _SafetyInstruction | SafetyInstructionSubType | SI Subtype | |
| FactoryEHSLocationUUID | _SafetyInstruction | FactoryEHSLocationUUID | Location | |
| EHSLocationType | _EHSLocation | EHSLocationType | Loc. Type | |
| EHSLocationStatus | _EHSLocation | EHSLocationStatus | ||
| EHSLocationAuthorizationGroup | ||||
| Plant | _EHSLocation | Plant | Valuation Area | |
| CostCenter | _EHSLocation | CostCenter | Cost Center | |
| CompanyCode | _EHSLocation | CompanyCode | Receiver Company Code | |
| BusinessArea | _EHSLocation | BusinessArea | Business Area | |
| _SafetyInstruction | _SafetyInstruction | |||
| Textassociations_EHSLocationName |
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_SafetyInstructionBuildingTP.
-- 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_SafetyInstructionBuildingTP AS
SELECT
SafetyInstructionBuildingUUID,
SafetyInstructionUUID,
EHSLocationUUID,
_EHSLocationName.EHSLocationName AS EHSLocationName,
SafetyInstrnIsValidInBuilding,
_SafetyInstruction.SafetyInstructionType AS SafetyInstructionType,
_SafetyInstruction.SafetyInstructionSubType AS SafetyInstructionSubType,
_SafetyInstruction.FactoryEHSLocationUUID AS FactoryEHSLocationUUID,
_EHSLocation.EHSLocationType AS EHSLocationType,
_EHSLocation.EHSLocationStatus AS EHSLocationStatus,
cast(_EHSLocation.EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) AS EHSLocationAuthorizationGroup,
_EHSLocation.Plant AS Plant,
_EHSLocation.CostCenter AS CostCenter,
_EHSLocation.CompanyCode AS CompanyCode,
_EHSLocation.BusinessArea AS BusinessArea
FROM I_SafetyInstructionBuildingTP
LEFT OUTER JOIN C_SafetyInstructionTP AS _SafetyInstruction ON SafetyInstructionUUID = _SafetyInstruction.SafetyInstructionUUID -- association [1..1]
LEFT OUTER JOIN I_CurrentEHSLocationNameText AS _EHSLocationName ON EHSLocationUUID = _EHSLocationName.EHSLocationUUID AND _EHSLocationName.Language = $session.system_language -- 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