PPH_E_MDRELA_1

DDL: PPH_DDL_MDRELA_1 SQL: V_PPH_MDRELA_1 Type: view

PPH_E_MDRELA_1 is a CDS View in SAP S/4HANA. It reads from 3 data sources (ekes, ekpo, ekub) and exposes 28 fields.

Data Sources (3)

SourceAliasJoin Type
ekes ekes inner
ekpo ekpo inner
ekub ekub from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName V_PPH_MDRELA_1 view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #AUTOMATED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (28)

KeyFieldSource TableSource FieldDescription
matnr ekpo matnr Vehicle Model
werks ekub reswk Supplying Plant
dat00 ekes eindt Initial Entry
sort1
sort2
delkz
vrfkz
plumi
menge01
umren umren Denominator
umrez umrez Numerator
dat01 ekes eindt Initial Entry
beskz
wrk02 ekpo werks Receiving Plant
lgort ekpo lgort Sublocation
DELNR ekub ebeln Source PurchDoc
delps
delet ekes etens Sequential No.
revlv ekpo revlv Revision Level
knttp
arsnr ekpo arsnr Settle.reser.No
arsps ekpo arsps Settle.item no.
reslo ekpo reslo Iss. Stor. Loc.
mdrela_aktnr ekpo aktnr Promotion
mdrela_insmk spe_insmk_src Source Stock Type
knttp_db knttp AcctAssgnCat:CC
kzvbr_db kzvbr Consumption
kzbws_db kzbws Valuation

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 PPH_E_MDRELA_1.
-- 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: V_PPH_MDRELA_1

CREATE VIEW PPH_E_MDRELA_1 AS
SELECT
  ekpo.matnr AS matnr,
  ekub.reswk AS werks,
  ekes.eindt AS dat00,
  '1' AS sort1,
  '04' AS sort2,
  'LR' AS delkz,
  '' AS vrfkz,
  '+' AS plumi,
  ekes.menge - dabmg AS menge01,
  umren,
  umrez,
  ekes.eindt AS dat01,
  'F' AS beskz,
  ekpo.werks AS wrk02,
  ekpo.lgort AS lgort,
  ekub.ebeln AS DELNR,
  cast(rpad(ekub.ebelp,6,' ') as pph_delps) AS delps,
  ekes.etens AS delet,
  ekpo.revlv AS revlv,
  case when sobkz = '' then '' else knttp end AS knttp,
  ekpo.arsnr AS arsnr,
  ekpo.arsps AS arsps,
  ekpo.reslo AS reslo,
  ekpo.aktnr AS mdrela_aktnr,
  spe_insmk_src AS mdrela_insmk,
  knttp AS knttp_db,
  kzvbr AS kzvbr_db,
  kzbws AS kzbws_db
FROM ekub
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
INNER JOIN ekes ON /* join condition not captured in parsed metadata */
;