UPOV_COMMINGLED_WC
Commingled WC
UPOV_COMMINGLED_WC is a CDS View that provides data about "Commingled WC" in SAP S/4HANA. It reads from 6 data sources and exposes 9 fields.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| gho_com_wc_h | downhole_cm_well_cm | union |
| upot_mig_comm_wc | migCommingled | inner |
| upot_mig_comm_wc | migCommingled | left_outer |
| UPOV_MIGRATED_WELL | migWL | left_outer |
| UPOV_PR_WCDHH_PRA | praCommingled | from |
| upot_int_nobj | wl | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | UPOS_CMNGLD_WC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | Commingled WC | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| wl_no | UPOV_PR_WCDHH_PRA | wl_no | Well | |
| wc_no | UPOV_PR_WCDHH_PRA | wc_no | Well Completion | |
| majpd_cd | UPOV_PR_WCDHH_PRA | majpd_cd | Major Product | |
| eff_from_dt | UPOV_PR_WCDHH_PRA | eff_from_dt | Effective From Date | |
| converted_labelasoiu_wl_noasWL_NO | ||||
| WC_NO | ||||
| mediumWATERthen5elseendasMAJPD_CD | ||||
| clientNULLasEFF_FROM_DT | ||||
| clientNULLasEFF_TO_DT |
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_COMMINGLED_WC.
-- 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_CMNGLD_WC
CREATE VIEW UPOV_COMMINGLED_WC AS
SELECT
praCommingled.wl_no AS wl_no,
praCommingled.wc_no AS wc_no,
praCommingled.majpd_cd AS majpd_cd,
praCommingled.eff_from_dt AS eff_from_dt,
praCommingled.eff_to_dt AS converted_labelasoiu_wl_noasWL_NO,
case when downhole_cm_well_cm.medium = 'OIL' then '1' when downhole_cm_well_cm.medium = 'GAS' then '2' when downhole_cm_well_cm.medium = 'WATER' then '5' else '' end as MAJPD_CD AS mediumWATERthen5elseendasMAJPD_CD,
tstmp_to_dats(downhole_cm_well_cm.valid_from, 'UTC', $session.client,'NULL') as EFF_FROM_DT AS clientNULLasEFF_FROM_DT,
tstmp_to_dats(downhole_cm_well_cm.valid_to, 'UTC', $session.client,'NULL') as EFF_TO_DT AS clientNULLasEFF_TO_DT
FROM UPOV_PR_WCDHH_PRA AS praCommingled
INNER JOIN upot_mig_comm_wc AS migCommingled ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN UPOV_MIGRATED_WELL AS migWL ON /* join condition not captured in parsed metadata */
INNER JOIN upot_int_nobj AS wl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN upot_mig_comm_wc AS migCommingled ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): gho_com_wc_h
;
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