UPOV_WCDWN_DETAILS
Well Completion Downtime Details
UPOV_WCDWN_DETAILS is a CDS View that provides data about "Well Completion Downtime Details" in SAP S/4HANA. It reads from 1 data source (gho_dm_event) and exposes 13 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| gho_dm_event | event | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | UPOS_WCDWN_DTLS | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Well Completion Downtime Details | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| EventID | gho_dm_event | event_id | ID | |
| strt_period | gho_dm_event | strt_period | Start Period | |
| end_period | gho_dm_event | end_period | Result End Period | |
| start_date | ||||
| end_date | ||||
| start_time | ||||
| end_time | ||||
| DiffSec | ||||
| clientNULLasConverted_To_Days | ||||
| Converted_To_Hours | ||||
| int83600601002asRemaining_Minutes | ||||
| DiffHrs | ||||
| dec52asoiu_hrsaseventTime |
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 UPOV_WCDWN_DETAILS.
-- 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.
-- SQL view name: UPOS_WCDWN_DTLS
CREATE VIEW UPOV_WCDWN_DETAILS AS
SELECT
event.event_id AS EventID,
event.strt_period AS strt_period,
event.end_period AS end_period,
TSTMP_TO_DATS(event.strt_period,'UTC',$session.client,'NULL') AS start_date,
TSTMP_TO_DATS(event.end_period,'UTC',$session.client,'NULL') AS end_date,
TSTMP_TO_TIMS(event.strt_period,'UTC',$session.client,'NULL') AS start_time,
TSTMP_TO_TIMS(event.end_period,'UTC',$session.client,'NULL') AS end_time,
TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period, 'INITIAL') AS DiffSec,
DATS_DAYS_BETWEEN( tstmp_to_dats(event.strt_period,'UTC',$session.client,'NULL'), tstmp_to_dats(event.end_period,'UTC',$session.client,'NULL')) as Converted_To_Days AS clientNULLasConverted_To_Days,
DIV(TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period,'INITIAL'),3600) AS Converted_To_Hours,
DIVISION(DIV(MOD(cast(cast(replace(cast(TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period,'INITIAL') as abap.char( 19 )),',','.') as abap.numc( 19 )) as abap.int8), 3600),60),100,2) as Remaining_Minutes AS int83600601002asRemaining_Minutes,
DIV(TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period,'INITIAL'),3600) AS DiffHrs,
cast(cast(cast(RIGHT(REPLACE(cast(cast( DIV(TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period,'INITIAL'),3600) + DIVISION(DIV(MOD(cast(cast(replace(cast(TSTMP_SECONDS_BETWEEN( event.strt_period, event.end_period,'INITIAL') as abap.char( 19 )),',','.') as abap.numc( 19 )) as abap.int8), 3600),60),100,2) as abap.dec( 23, 2 ) ) as abap.char(25 )),',','.'), 6) as abap.numc( 6 )) as abap.dec( 5, 2 )) as oiu_hrs) as eventTime AS dec52asoiu_hrsaseventTime
FROM gho_dm_event AS event
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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