R_EHSTaskDefinitionDraft
EHS Task Definition - Draft
R_EHSTaskDefinitionDraft is a Basic CDS View that provides data about "EHS Task Definition - Draft" in SAP S/4HANA. It reads from 1 data source (ehfndw_tdef_root) and exposes 58 fields with key field EHSTaskDefinitionUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ehfndw_tdef_root | EHSTaskDefinitionRootDraft | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..1] | I_BusinessUserBasic | _EHSTaskOwnerUser | $projection.EHSTaskOwnerUser = _EHSTaskOwnerUser.BusinessPartner |
| [0..1] | I_BusinessUserBasic | _EHSTaskAssignedUser | $projection.EHSTaskAssignedUser = _EHSTaskAssignedUser.BusinessPartner |
| [0..1] | I_BusinessUserBasic | _EHSTaskApprovingUser | $projection.EHSTaskApprovingUser = _EHSTaskApprovingUser.BusinessPartner |
| [0..1] | I_DraftAdministrativeData | _DraftAdministrativeData | $projection.EHSTaskDefinitionUUID = _DraftAdministrativeData.DraftUUID and _DraftAdministrativeData.DraftEntityType = 'I_EHSTASKDEFINITIONTP' |
| [1..1] | I_EHSTaskAdapterClass | _EHSTaskAdapterClass | $projection.EHSTaskHostObjectAdapterClass = _EHSTaskAdapterClass.EHSTaskAdapterClass |
| [1..1] | I_EHSTaskDefinitionType | _EHSTaskDefinitionType | $projection.EHSTaskHostObjectAdapterClass = _EHSTaskDefinitionType.EHSTaskAdapterClass and $projection.EHSTaskWorkflowEvent = _EHSTaskDefinitionType.EHSTaskDefinitionType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | EHS Task Definition - Draft | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EHSTaskDefinitionUUID | ehfndw_tdef_root | ehstaskdefinitionuuid | Task Definition |
| CreationUTCDateTime | ehfndw_tdef_root | creationutcdatetime | Time Stamp | |
| CreatedByUser | ehfndw_tdef_root | createdbyuser | User Name | |
| LastChangeUTCDateTime | ehfndw_tdef_root | lastchangeutcdatetime | Time Stamp | |
| LastChangedByUser | ehfndw_tdef_root | lastchangedbyuser | User Name | |
| EHSTaskHostObjectInstanceUUID | ehfndw_tdef_root | ehstaskhostobjectinstanceuuid | Host Obj. UUID | |
| EHSTaskHostObjectInstance | ehfndw_tdef_root | ehstaskhostobjectinstance | Instance ID | |
| EHSTaskHostObjectAdapterClass | ehfndw_tdef_root | ehstaskhostobjectadapterclass | Class Name | |
| EHSTaskWorkflowEvent | ehfndw_tdef_root | ehstaskworkflowevent | Task Type | |
| EHSTaskPriority | ehfndw_tdef_root | ehstaskpriority | Priority | |
| EHSTaskAssignedUser | ehfndw_tdef_root | ehstaskassigneduser | Assignee | |
| EHSTaskOwnerUser | ehfndw_tdef_root | ehstaskowneruser | Owner | |
| EHSTaskApprovingUser | ehfndw_tdef_root | ehstaskapprovinguser | Approver | |
| EHSTaskDefinitionStatus | ehfndw_tdef_root | ehstaskdefinitionstatus | Status | |
| EHSTaskTitle | ehfndw_tdef_root | ehstasktitle | Title | |
| EHSTaskDescription | ehfndw_tdef_root | ehstaskdescription | Description | |
| EHSTaskStartDate | ehfndw_tdef_root | ehstaskstartdate | Start Date | |
| EHSTaskDueInValue | ehfndw_tdef_root | ehstaskdueinvalue | Due In | |
| EHSTaskDueInUnit | ehfndw_tdef_root | ehstaskdueinunit | Due In | |
| EHSTaskDueDate | ehfndw_tdef_root | ehstaskduedate | Due Date | |
| EHSTaskIsDueOnSameDay | ehfndw_tdef_root | ehstaskisdueonsameday | Due Same Day | |
| EHSTaskStartBeforeValue | ehfndw_tdef_root | ehstaskstartbeforevalue | Start Before | |
| EHSTaskStartBeforeUnit | ehfndw_tdef_root | ehstaskstartbeforeunit | Start Before | |
| EHSTaskRecurrenceIsByDueDate | ehfndw_tdef_root | ehstaskrecurrenceisbyduedate | Due Date Based | |
| EHSTaskRecurrenceType | ehfndw_tdef_root | ehstaskrecurrencetype | Recurrence Type | |
| EHSTaskRecurrenceInterval | ehfndw_tdef_root | ehstaskrecurrenceinterval | Recurrence | |
| EHSTaskIsRecurringOnMonday | ehfndw_tdef_root | ehstaskisrecurringonmonday | Monday | |
| EHSTaskIsRecurringOnTuesday | ehfndw_tdef_root | ehstaskisrecurringontuesday | Tuesday | |
| EHSTaskIsRecurringOnWednesday | ehfndw_tdef_root | ehstaskisrecurringonwednesday | Wednesday | |
| EHSTaskIsRecurringOnThursday | ehfndw_tdef_root | ehstaskisrecurringonthursday | Thursday | |
| EHSTaskIsRecurringOnFriday | ehfndw_tdef_root | ehstaskisrecurringonfriday | Friday | |
| EHSTaskIsRecurringOnSaturday | ehfndw_tdef_root | ehstaskisrecurringonsaturday | Saturday | |
| EHSTaskIsRecurringOnSunday | ehfndw_tdef_root | ehstaskisrecurringonsunday | Sunday | |
| EHSTaskRecurrenceDay | ehfndw_tdef_root | ehstaskrecurrenceday | Day of Month | |
| EHSTaskRecurrenceMonth | ehfndw_tdef_root | ehstaskrecurrencemonth | Month of Year | |
| EHSTaskRecurrenceOffset | ehfndw_tdef_root | ehstaskrecurrenceoffset | Recur. Offset | |
| EHSTaskRecurrenceWeekDay | ehfndw_tdef_root | ehstaskrecurrenceweekday | Weekday | |
| EHSTaskRecurrenceEndType | ehfndw_tdef_root | ehstaskrecurrenceendtype | Recur. End Type | |
| EHSTaskRecurrenceEndDate | ehfndw_tdef_root | ehstaskrecurrenceenddate | Recur. End Date | |
| EHSTaskRecurrenceFirstDueDate | ehfndw_tdef_root | ehstaskrecurrencefirstduedate | First Due Date | |
| EHSTaskDefinitionIsPaused | ehfndw_tdef_root | ehstaskdefinitionispaused | Is Paused | |
| EHSLocationUUID | ehfndw_tdef_root | ehslocationuuid | NodeID | |
| EHSTaskID | ehfndw_tdef_root | ehstaskid | ID | |
| EHSTaskMigrationSource | ehfndw_tdef_root | ehstaskmigrationsource | Migr. Source | |
| EHSTaskAssignedType | ehfndw_tdef_root | ehstaskassignedtype | Assignment Type of Assignee | |
| EHSTaskAssignedLocRole | ehfndw_tdef_root | ehstaskassignedlocrole | Assignee Location Role | |
| EHSTaskApproverType | ehfndw_tdef_root | ehstaskapprovertype | Assignment Type of Approver | |
| EHSTaskApproverLocRole | ehfndw_tdef_root | ehstaskapproverlocrole | Approver Location Role | |
| EHSTaskDefinitionActiveUUID | ehfndw_tdef_root | activeuuid | UUID | |
| HasActiveEntity | ehfndw_tdef_root | hasactiveentity | TRUE | |
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _EHSTaskOwnerUser | _EHSTaskOwnerUser | |||
| _EHSTaskAssignedUser | _EHSTaskAssignedUser | |||
| _EHSTaskApprovingUser | _EHSTaskApprovingUser | |||
| _DraftAdministrativeData | _DraftAdministrativeData | |||
| _EHSTaskAdapterClass | _EHSTaskAdapterClass | |||
| _EHSTaskDefinitionType | _EHSTaskDefinitionType |
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 R_EHSTaskDefinitionDraft.
-- 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 R_EHSTaskDefinitionDraft AS
SELECT
EHSTaskDefinitionRootDraft.ehstaskdefinitionuuid AS EHSTaskDefinitionUUID,
EHSTaskDefinitionRootDraft.creationutcdatetime AS CreationUTCDateTime,
EHSTaskDefinitionRootDraft.createdbyuser AS CreatedByUser,
EHSTaskDefinitionRootDraft.lastchangeutcdatetime AS LastChangeUTCDateTime,
EHSTaskDefinitionRootDraft.lastchangedbyuser AS LastChangedByUser,
EHSTaskDefinitionRootDraft.ehstaskhostobjectinstanceuuid AS EHSTaskHostObjectInstanceUUID,
EHSTaskDefinitionRootDraft.ehstaskhostobjectinstance AS EHSTaskHostObjectInstance,
EHSTaskDefinitionRootDraft.ehstaskhostobjectadapterclass AS EHSTaskHostObjectAdapterClass,
EHSTaskDefinitionRootDraft.ehstaskworkflowevent AS EHSTaskWorkflowEvent,
EHSTaskDefinitionRootDraft.ehstaskpriority AS EHSTaskPriority,
EHSTaskDefinitionRootDraft.ehstaskassigneduser AS EHSTaskAssignedUser,
EHSTaskDefinitionRootDraft.ehstaskowneruser AS EHSTaskOwnerUser,
EHSTaskDefinitionRootDraft.ehstaskapprovinguser AS EHSTaskApprovingUser,
EHSTaskDefinitionRootDraft.ehstaskdefinitionstatus AS EHSTaskDefinitionStatus,
EHSTaskDefinitionRootDraft.ehstasktitle AS EHSTaskTitle,
EHSTaskDefinitionRootDraft.ehstaskdescription AS EHSTaskDescription,
EHSTaskDefinitionRootDraft.ehstaskstartdate AS EHSTaskStartDate,
EHSTaskDefinitionRootDraft.ehstaskdueinvalue AS EHSTaskDueInValue,
EHSTaskDefinitionRootDraft.ehstaskdueinunit AS EHSTaskDueInUnit,
EHSTaskDefinitionRootDraft.ehstaskduedate AS EHSTaskDueDate,
EHSTaskDefinitionRootDraft.ehstaskisdueonsameday AS EHSTaskIsDueOnSameDay,
EHSTaskDefinitionRootDraft.ehstaskstartbeforevalue AS EHSTaskStartBeforeValue,
EHSTaskDefinitionRootDraft.ehstaskstartbeforeunit AS EHSTaskStartBeforeUnit,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceisbyduedate AS EHSTaskRecurrenceIsByDueDate,
EHSTaskDefinitionRootDraft.ehstaskrecurrencetype AS EHSTaskRecurrenceType,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceinterval AS EHSTaskRecurrenceInterval,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonmonday AS EHSTaskIsRecurringOnMonday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringontuesday AS EHSTaskIsRecurringOnTuesday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonwednesday AS EHSTaskIsRecurringOnWednesday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonthursday AS EHSTaskIsRecurringOnThursday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonfriday AS EHSTaskIsRecurringOnFriday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonsaturday AS EHSTaskIsRecurringOnSaturday,
EHSTaskDefinitionRootDraft.ehstaskisrecurringonsunday AS EHSTaskIsRecurringOnSunday,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceday AS EHSTaskRecurrenceDay,
EHSTaskDefinitionRootDraft.ehstaskrecurrencemonth AS EHSTaskRecurrenceMonth,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceoffset AS EHSTaskRecurrenceOffset,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceweekday AS EHSTaskRecurrenceWeekDay,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceendtype AS EHSTaskRecurrenceEndType,
EHSTaskDefinitionRootDraft.ehstaskrecurrenceenddate AS EHSTaskRecurrenceEndDate,
EHSTaskDefinitionRootDraft.ehstaskrecurrencefirstduedate AS EHSTaskRecurrenceFirstDueDate,
EHSTaskDefinitionRootDraft.ehstaskdefinitionispaused AS EHSTaskDefinitionIsPaused,
EHSTaskDefinitionRootDraft.ehslocationuuid AS EHSLocationUUID,
EHSTaskDefinitionRootDraft.ehstaskid AS EHSTaskID,
EHSTaskDefinitionRootDraft.ehstaskmigrationsource AS EHSTaskMigrationSource,
EHSTaskDefinitionRootDraft.ehstaskassignedtype AS EHSTaskAssignedType,
EHSTaskDefinitionRootDraft.ehstaskassignedlocrole AS EHSTaskAssignedLocRole,
EHSTaskDefinitionRootDraft.ehstaskapprovertype AS EHSTaskApproverType,
EHSTaskDefinitionRootDraft.ehstaskapproverlocrole AS EHSTaskApproverLocRole,
EHSTaskDefinitionRootDraft.activeuuid AS EHSTaskDefinitionActiveUUID,
EHSTaskDefinitionRootDraft.hasactiveentity AS HasActiveEntity
FROM ehfndw_tdef_root AS EHSTaskDefinitionRootDraft
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _EHSTaskOwnerUser ON EHSTaskOwnerUser = _EHSTaskOwnerUser.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _EHSTaskAssignedUser ON EHSTaskAssignedUser = _EHSTaskAssignedUser.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _EHSTaskApprovingUser ON EHSTaskApprovingUser = _EHSTaskApprovingUser.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_DraftAdministrativeData AS _DraftAdministrativeData ON EHSTaskDefinitionUUID = _DraftAdministrativeData.DraftUUID AND _DraftAdministrativeData.DraftEntityType = 'I_EHSTASKDEFINITIONTP' -- association [0..1]
LEFT OUTER JOIN I_EHSTaskAdapterClass AS _EHSTaskAdapterClass ON EHSTaskHostObjectAdapterClass = _EHSTaskAdapterClass.EHSTaskAdapterClass -- association [1..1]
LEFT OUTER JOIN I_EHSTaskDefinitionType AS _EHSTaskDefinitionType ON EHSTaskHostObjectAdapterClass = _EHSTaskDefinitionType.EHSTaskAdapterClass AND EHSTaskWorkflowEvent = _EHSTaskDefinitionType.EHSTaskDefinitionType -- 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