UPO_INT_V_WCVD_PRD

DDL: UPO_INT_V_WCVD_PRD SQL: UPOS_WCVD_PRD Type: view

List of WC which are marked as Producing and Operating

UPO_INT_V_WCVD_PRD is a CDS View that provides data about "List of WC which are marked as Producing and Operating" in SAP S/4HANA. It reads from 4 data sources (upoc_int_sts_cde, upot_udm_no_vd, gho_iflot_ext, upot_int_nobj) and exposes 5 fields with key field tplnr. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
upoc_int_sts_cde status_code left_outer
upot_udm_no_vd udm_no_vd left_outer
gho_iflot_ext wellID inner
upot_int_nobj WL_Label inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] oiu_pr_npsts non_prd_stat non_prd_stat.status_cd = status_code.status_cd_pra

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName UPOS_WCVD_PRD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label List of WC which are marked as Producing and Operating view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY tplnr upot_udm_no_vd tplnr
effective_to upot_udm_no_vd effective_to
WL_NO
WC_NO
op_fl upot_udm_no_vd op_fl
@AbapCatalog.sqlViewName: 'UPOS_WCVD_PRD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MASTER
@EndUserText.label: 'List of WC which are marked as Producing and Operating'
define view UPO_INT_V_WCVD_PRD
  as select distinct from UPOV_COMMINGLED_WC as commingled
    inner join            upot_int_nobj      as WL_Label    on WL_Label.converted_label = commingled.wl_no
    inner join            gho_iflot_ext      as wellID      on wellID.gho_wc_ref_id = WL_Label.tplnr
    left outer join       upot_udm_no_vd     as udm_no_vd   on  udm_no_vd.tplnr = wellID.tplnr
    left outer join       upoc_int_sts_cde   as status_code on  status_code.netobj_type      = udm_no_vd.gho_netobj_type
                                                            and status_code.netobj_stat_code = udm_no_vd.netobj_status
  association [0..1] to oiu_pr_npsts as non_prd_stat on non_prd_stat.status_cd = status_code.status_cd_pra
{
  key udm_no_vd.gho_netobj_type,
  key udm_no_vd.tplnr,
  key udm_no_vd.effective_from,
      udm_no_vd.effective_to,
      cast(commingled.wl_no as oiu_wl_no) as WL_NO, // Well id

      cast(commingled.wc_no as oiu_wc_no) as WC_NO, // Well completion

      udm_no_vd.op_fl
}
where
      non_prd_stat.mandt is null
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"UPOV_COMMINGLED_WC",
"GHO_IFLOT_EXT",
"OIU_PR_NPSTS",
"UPOC_INT_STS_CDE",
"UPOT_INT_NOBJ",
"UPOT_UDM_NO_VD"
],
"ASSOCIATED":
[
"OIU_PR_NPSTS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/