I_EHSMyInvstgnActySource
Total number invstgn activities source
I_EHSMyInvstgnActySource is a Composite CDS View that provides data about "Total number invstgn activities source" in SAP S/4HANA. It reads from 2 data sources (I_BusinessUserBasic, I_EHSInvestigationActivity) and exposes 27 fields with key field EHSInvestigationActivityUUID. It has 1 association to related views. Part of development package EHHSS_BO_INVESTIGATION_IMPL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BusinessUserBasic | bususer | inner |
| I_EHSInvestigationActivity | invac | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EHSLocation | _EHSLocation | $projection.ehslocationuuid = _EHSLocation.EHSLocationUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Total number invstgn activities source | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.internalName | #LOCAL | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSInvestigationActivityUUID | I_EHSInvestigationActivity | EHSInvestigationActivityUUID | |
| EHSInvestigationID | ||||
| EHSInvestigationUUID | I_EHSInvestigationActivity | EHSInvestigationUUID | ||
| CreationDateTime | I_EHSInvestigationActivity | CreationDateTime | Timestamp | |
| CreatedByUser | I_EHSInvestigationActivity | CreatedByUser | User Name | |
| LastChangeDateTime | I_EHSInvestigationActivity | LastChangeDateTime | Timestamp | |
| LastChangedByUser | I_EHSInvestigationActivity | LastChangedByUser | User Name | |
| EHSInvestigationActivityType | I_EHSInvestigationActivity | EHSInvestigationActivityType | ||
| EHSInvstgnActivityTypeText | ||||
| EHSInvestigationActivityStatus | I_EHSInvestigationActivity | EHSInvestigationActivityStatus | ||
| EHSInvestigationActivityTitle | I_EHSInvestigationActivity | EHSInvestigationActivityTitle | ||
| EHSInvstgnActivityDescription | I_EHSInvestigationActivity | EHSInvstgnActivityDescription | ||
| StartDate | I_EHSInvestigationActivity | EHSInvstgnActyActualStartDate | ||
| EHSInvestigationCompletionDate | I_EHSInvestigationActivity | EHSInvestigationCompletionDate | ||
| EHSInvstgnActivityDueDate | I_EHSInvestigationActivity | EHSInvstgnActivityDueDate | ||
| EHSInvestigationActivityOwner | I_EHSInvestigationActivity | EHSInvestigationActivityOwner | ||
| EHSInvstgnActivityResponsible | I_EHSInvestigationActivity | EHSInvstgnActivityResponsible | ||
| EHSLocationUUID | ||||
| _EHSLocation | _EHSLocation | |||
| EHSLocationID | ||||
| _EHSInvestigation | I_EHSInvestigationActivity | _EHSInvestigation | ||
| _EHSInvstgnActivityStatus | I_EHSInvestigationActivity | _EHSInvstgnActivityStatus | ||
| _EHSInvstgnActivityType | I_EHSInvestigationActivity | _EHSInvstgnActivityType | ||
| _EHSInvstgnActyOwner | I_EHSInvestigationActivity | _EHSInvstgnActyOwner | ||
| _EHSInvstgnActyResponsible | I_EHSInvestigationActivity | _EHSInvstgnActyResponsible | ||
| EHSInvestigationTypeCode | ||||
| EHSNumberOfActivity | Activities |
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 I_EHSMyInvstgnActySource.
-- 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 I_EHSMyInvstgnActySource AS
SELECT
invac.EHSInvestigationActivityUUID AS EHSInvestigationActivityUUID,
invac._EHSInvestigation.EHSInvestigationID AS EHSInvestigationID,
invac.EHSInvestigationUUID AS EHSInvestigationUUID,
invac.CreationDateTime AS CreationDateTime,
invac.CreatedByUser AS CreatedByUser,
invac.LastChangeDateTime AS LastChangeDateTime,
invac.LastChangedByUser AS LastChangedByUser,
invac.EHSInvestigationActivityType AS EHSInvestigationActivityType,
invac._EHSInvstgnActivityType._Text[1:Language = $session.system_language].EHSInvstgnActivityTypeText AS EHSInvstgnActivityTypeText,
invac.EHSInvestigationActivityStatus AS EHSInvestigationActivityStatus,
invac.EHSInvestigationActivityTitle AS EHSInvestigationActivityTitle,
invac.EHSInvstgnActivityDescription AS EHSInvstgnActivityDescription,
invac.EHSInvstgnActyActualStartDate AS StartDate,
invac.EHSInvestigationCompletionDate AS EHSInvestigationCompletionDate,
invac.EHSInvstgnActivityDueDate AS EHSInvstgnActivityDueDate,
invac.EHSInvestigationActivityOwner AS EHSInvestigationActivityOwner,
invac.EHSInvstgnActivityResponsible AS EHSInvstgnActivityResponsible,
invac._EHSInvestigation._EHSInvstgnRelatedObject._Incident._IncidentBasicInfo.EHSLocationUUID AS EHSLocationUUID,
invac._EHSInvestigation._EHSInvstgnRelatedObject._Incident._IncidentBasicInfo._EHSLocationRoot.EHSLocationID AS EHSLocationID,
invac._EHSInvestigation AS _EHSInvestigation,
invac._EHSInvstgnActivityStatus AS _EHSInvstgnActivityStatus,
invac._EHSInvstgnActivityType AS _EHSInvstgnActivityType,
invac._EHSInvstgnActyOwner AS _EHSInvstgnActyOwner,
invac._EHSInvstgnActyResponsible AS _EHSInvstgnActyResponsible,
invac._EHSInvestigation.EHSInvestigationTypeCode AS EHSInvestigationTypeCode,
cast(1 as int4) AS EHSNumberOfActivity
FROM I_EHSInvestigationActivity AS invac
INNER JOIN I_BusinessUserBasic AS bususer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_EHSLocation AS _EHSLocation ON ehslocationuuid = _EHSLocation.EHSLocationUUID -- association [0..*]
;
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