M_V_PHL_EKBE

DDL: M_V_PHL_EKBE SQL: CDS_M_PHL_EKBE Type: view

CDS View for PO History Light

M_V_PHL_EKBE is a CDS View that provides data about "CDS View for PO History Light" in SAP S/4HANA. It reads from 3 data sources (ekbe, ekko, ekpo) and exposes 28 fields with key fields ebeln, ebelp, zekkn, vgabe.

Data Sources (3)

SourceAliasJoin Type
ekbe ekbe from
ekko ekko inner
ekpo ekpo inner

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CDS_M_PHL_EKBE view
EndUserText.label CDS View for PO History Light view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY ebeln ekbe ebeln Source PurchDoc
KEY ebelp ekbe ebelp Item pur. doc.
KEY zekkn ekbe zekkn Account Assgmt No.
KEY vgabe ekbe vgabe Transact. Type
bedat ekko bedat Start date
meins ekpo meins Valuation Unit
pstyp ekpo pstyp Item Category
vrtkz ekpo vrtkz Distribution
bewtp ekbe bewtp PO History Cat.
menge ekbe menge WarrCountValue
dmbtr
arewr ekbe arewr Ord.GRIR.Val
wesbs_a ekbe wesbs GR Bl.St. OUn
shkzg ekbe shkzg Returns
elikz ekpo elikz Delivery Completion
matnr ekpo matnr Vehicle Model
lifnr ekko lifnr Vendor no.
ekorg ekko ekorg Purchasing Org.
ekgrp ekko ekgrp Sub. purchasing grp
bstyp ekko bstyp Source doc.cat.
bsart ekko bsart Stnd purch.ord.
werks ekpo werks Receiving Plant
fplnr ekpo fplnr Invoicing plan
hswae ekbe hswae Local currency
rewrb ekbe rewrb FC invoice amnt
rtype
kschl
tbtkz

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 M_V_PHL_EKBE.
-- 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: CDS_M_PHL_EKBE

CREATE VIEW M_V_PHL_EKBE AS
SELECT
  ekbe.ebeln AS ebeln,
  ekbe.ebelp AS ebelp,
  ekbe.zekkn AS zekkn,
  ekbe.vgabe AS vgabe,
  ekko.bedat AS bedat,
  ekpo.meins AS meins,
  ekpo.pstyp AS pstyp,
  ekpo.vrtkz AS vrtkz,
  ekbe.bewtp AS bewtp,
  ekbe.menge AS menge,
  cast (ekbe.dmbtr as abap.curr( 19,2)) AS dmbtr,
  ekbe.arewr AS arewr,
  ekbe.wesbs AS wesbs_a,
  ekbe.shkzg AS shkzg,
  ekpo.elikz AS elikz,
  ekpo.matnr AS matnr,
  ekko.lifnr AS lifnr,
  ekko.ekorg AS ekorg,
  ekko.ekgrp AS ekgrp,
  ekko.bstyp AS bstyp,
  ekko.bsart AS bsart,
  ekpo.werks AS werks,
  ekpo.fplnr AS fplnr,
  ekbe.hswae AS hswae,
  ekbe.rewrb AS rewrb,
  cast('EKBE' as abap.char(10)) AS rtype,
  cast( ' ' as abap.char( 4)) AS kschl,
  cast( ' ' as abap.char(1)) AS tbtkz
FROM ekbe
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
INNER JOIN ekko ON /* join condition not captured in parsed metadata */
;