P_WBHK_ValueHelp

DDL: P_WBHK_VALUEHELP SQL: PWBHKVH Type: view BASIC

P_WBHK_ValueHelp is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (wbhd, wbhk) and exposes 22 fields with key field tkonn. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
wbhd wbhd inner
wbhk wbhk from

Associations (2)

CardinalityTargetAliasCondition
[0..1] knvv _CustomerSalesArea $projection.kunnr = _CustomerSalesArea.kunnr and $projection.vkorg = _CustomerSalesArea.vkorg and tvta.vtwku = _CustomerSalesArea.vtweg and tvta.spaku = _CustomerSalesArea.spart
[0..1] P_WLF_CDS_LFA1_BG _Supplier $projection.elifn = _Supplier.vendor_account

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PWBHKVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY tkonn wbhk tkonn
tkonn_ex wbhk tkonn_ex
tctyp wbhk tctyp
tksachb wbhk tksachb
kunnr wbhk kunnr
elifn wbhd elifn
vkorg wbhk vkorg
vtweg wbhk vtweg
spart wbhk spart
ekorg wbhd ekorg
ekgrp wbhd ekgrp
ernam wbhk ernam
erdat wbhk erdat
erzeit wbhk erzeit
aenam wbhk aenam
aedat wbhk aedat
aezeit wbhk aezeit
tccat wbhk tccat
use_case wbhk use_case
purpose wbhk purpose
complete wbhk complete
vendor_begru _Supplier vendor_begru
@AbapCatalog.sqlViewName: 'PWBHKVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@ClientHandling.type: #INHERITED
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #MANDATORY
// 'Trading Contract Value Help' with access control for display activity

// ABAP unit tests available in class: CL_CDS_P_WBHK_VALUEHELP

define view P_WBHK_ValueHelp

  as select from    wbhk
    inner join      wbhd on wbhd.tkonn = wbhk.tkonn
    left outer to one join tvta on tvta.vkorg = wbhk.vkorg and tvta.vtweg = wbhk.vtweg and tvta.spart = wbhk.spart

  association [0..1] to knvv as _CustomerSalesArea on $projection.kunnr = _CustomerSalesArea.kunnr 
                                                  and $projection.vkorg = _CustomerSalesArea.vkorg 
                                                  and tvta.vtwku        = _CustomerSalesArea.vtweg
                                                  and tvta.spaku        = _CustomerSalesArea.spart
  association [0..1] to P_WLF_CDS_LFA1_BG as _Supplier on $projection.elifn = _Supplier.vendor_account

{
  key wbhk.tkonn,
      wbhk.tkonn_ex,
      wbhk.tctyp,
      wbhk.tksachb,
      wbhk.kunnr,
      wbhd.elifn as elifn,
      wbhk.vkorg,
      wbhk.vtweg,
      wbhk.spart,
      wbhd.ekorg as ekorg,
      wbhd.ekgrp as ekgrp,
      wbhk.ernam,
      wbhk.erdat,
      wbhk.erzeit,
      wbhk.aenam,
      wbhk.aedat,
      wbhk.aezeit,
      wbhk.tccat,
      wbhk.use_case,
      wbhk.purpose,
      wbhk.complete,
      _Supplier.vendor_begru,
      _CustomerSalesArea.begru as customer_begru
}
where
      wbhd.tposn     = '000000'
  and wbhd.tposn_sub = '000000'