UPOV_WLTST_MEDOC

DDL: UPO_INT_V_WLTEST_MEDOC SQL: UPOS_WLTST_MEDOC Type: view

Well Test document

UPOV_WLTST_MEDOC is a CDS View that provides data about "Well Test document" in SAP S/4HANA. It reads from 4 data sources (gho_uom_rule_h, gho_well_prior, UPOV_PR_WELLTEST_UOM, upot_int_wltest) and exposes 18 fields with key fields DOCNR, DOCYR.

Data Sources (4)

SourceAliasJoin Type
gho_uom_rule_h um_rule inner
gho_well_prior well_prior inner
UPOV_PR_WELLTEST_UOM well_test inner
upot_int_wltest wltst from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName UPOS_WLTST_MEDOC 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 Test document view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY DOCNR upot_int_wltest wl_docnr DocNr
KEY DOCYR upot_int_wltest wl_docyr Doc. year
MECLS
METYP
OBJNR
MESRC
SRCKY
SRC_DOCNR upot_int_wltest wctst_no Well Test No
SRC_DOCYR upot_int_wltest doc_year Mat. Doc. Year
UOMGR
UMRSL gho_uom_rule_h conv_grp Conv. Grp.
MEAYR upot_int_wltest doc_year Mat. Doc. Year
clientNULL62asoiu_me_meapdasMEAPD
clientNULLasoiu_me_meatsasMEATS
changed_byisnotnullthenXendasXCHNG
XDELT
OIU_CRUSER UPOV_PR_WELLTEST_UOM OIU_CRUSER Created By
OIU_TIMESTAMP UPOV_PR_WELLTEST_UOM OIU_TIMESTAMP Timestamp

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_WLTST_MEDOC.
-- 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_WLTST_MEDOC

CREATE VIEW UPOV_WLTST_MEDOC AS
SELECT
  wltst.wl_docnr AS DOCNR,
  wltst.wl_docyr AS DOCYR,
  cast('WELL_TEST' as oiu_me_mecls) AS MECLS,
  cast('WC_WTSTD' as oiu_me_metyp) AS METYP,
  cast(' ' as oiu_me_objnr) AS OBJNR,
  cast('WCMP' as oiu_me_mesrc) AS MESRC,
  cast( well_test.WL_NO as oiu_me_srcky) AS SRCKY,
  wltst.wctst_no AS SRC_DOCNR,
  wltst.doc_year AS SRC_DOCYR,
  cast('NA1' as oiu_me_uomgr) AS UOMGR,
  um_rule.conv_grp AS UMRSL,
  wltst.doc_year AS MEAYR,
  cast(right(left(tstmp_to_dats(well_prior.start_timestamp, 'UTC', $session.client,'NULL'),6) , 2) as oiu_me_meapd) as MEAPD AS clientNULL62asoiu_me_meapdasMEAPD,
  cast (dats_tims_to_tstmp(tstmp_to_dats(well_prior.start_timestamp,'UTC', $session.client,'NULL'), cast('000000' as abap.tims),'UTC', $session.client,'NULL') as oiu_me_meats) as MEATS AS clientNULLasoiu_me_meatsasMEATS,
  case when well_prior.changed_by is not null then 'X' end as XCHNG AS changed_byisnotnullthenXendasXCHNG,
  cast(' ' as oiu_me_xdelt) AS XDELT,
  well_test.OIU_CRUSER AS OIU_CRUSER,
  well_test.OIU_TIMESTAMP AS OIU_TIMESTAMP
FROM upot_int_wltest AS wltst
INNER JOIN UPOV_PR_WELLTEST_UOM AS well_test ON /* join condition not captured in parsed metadata */
INNER JOIN gho_well_prior AS well_prior ON /* join condition not captured in parsed metadata */
INNER JOIN gho_uom_rule_h AS um_rule ON /* join condition not captured in parsed metadata */
;