P_WBHI_ValueHelp

DDL: P_WBHI_VALUEHELP SQL: PWBHIVH Type: view BASIC

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

Data Sources (3)

SourceAliasJoin Type
wbhd wbhd inner
wbhi wbhi from
wbhk wbhk inner

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 PWBHIVH 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 wbhi tkonn Trading Contract
KEY tposn wbhi tposn Item Number
KEY tposn_sub wbhi tposn_sub Subitem
matnr wbhi matnr Vehicle Model
werks wbhi werks Receiving Plant
lgort wbhi lgort Sublocation
arktx wbhi arktx Short Text
charg wbhi charg Chargeable Proc.
portfolio wbhi portfolio Portfolio
tkonn_ex wbhk tkonn_ex Ext. Identifier
tctyp wbhk tctyp Contract Type
tksachb wbhk tksachb Pers. Respons.
kunnr wbhk kunnr Stock customer
elifn wbhd elifn Supplier
vkorg wbhk vkorg SD Sales Org.
vtweg wbhk vtweg RefDistCh-Cust/Mat.
spart wbhk spart Source supplier
ekorg wbhd ekorg Purchasing Org.
ekgrp wbhd ekgrp Sub. purchasing grp
tccat wbhk tccat TC Category
wbhd_tposn wbhi wbhd_tposn Item Number
vendor_begru _Supplier vendor_begru

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 P_WBHI_ValueHelp.
-- 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: PWBHIVH

CREATE VIEW P_WBHI_ValueHelp AS
SELECT
  wbhi.tkonn AS tkonn,
  wbhi.tposn AS tposn,
  wbhi.tposn_sub AS tposn_sub,
  wbhi.matnr AS matnr,
  wbhi.werks AS werks,
  wbhi.lgort AS lgort,
  wbhi.arktx AS arktx,
  wbhi.charg AS charg,
  wbhi.portfolio AS portfolio,
  wbhk.tkonn_ex AS tkonn_ex,
  wbhk.tctyp AS tctyp,
  wbhk.tksachb AS tksachb,
  wbhk.kunnr AS kunnr,
  wbhd.elifn AS elifn,
  wbhk.vkorg AS vkorg,
  wbhk.vtweg AS vtweg,
  wbhk.spart AS spart,
  wbhd.ekorg AS ekorg,
  wbhd.ekgrp AS ekgrp,
  wbhk.tccat AS tccat,
  wbhi.wbhd_tposn AS wbhd_tposn,
  _Supplier.vendor_begru AS vendor_begru
FROM wbhi
INNER JOIN wbhk ON /* join condition not captured in parsed metadata */
INNER JOIN wbhd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN knvv AS _CustomerSalesArea ON kunnr = _CustomerSalesArea.kunnr AND vkorg = _CustomerSalesArea.vkorg AND tvta.vtwku = _CustomerSalesArea.vtweg AND tvta.spaku = _CustomerSalesArea.spart  -- association [0..1]
LEFT OUTER JOIN P_WLF_CDS_LFA1_BG AS _Supplier ON elifn = _Supplier.vendor_account  -- association [0..1]
;