V_WB2_MKPF_MSEG_2

DDL: V_WB2_MKPF_MSEG_2 SQL: VWB2_MKPF_MSEG_2 Type: view

Business Volume from Goods Receipt -EKKN

V_WB2_MKPF_MSEG_2 is a CDS View that provides data about "Business Volume from Goods Receipt -EKKN" in SAP S/4HANA. It reads from 3 data sources (ekko, ekpo, nsdm_e_mseg) and exposes 40 fields with key fields mblnr, mjahr, zeile, zekkn.

Data Sources (3)

SourceAliasJoin Type
ekko ekko inner
ekpo ekpo inner
nsdm_e_mseg mseg from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName VWB2_MKPF_MSEG_2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Business Volume from Goods Receipt -EKKN view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY mblnr nsdm_e_mseg mblnr Material Doc.
KEY mjahr nsdm_e_mseg mjahr Mat. Doc. Year
KEY zeile nsdm_e_mseg zeile Mat. Doc.Item
KEY zekkn nsdm_e_mseg zekkn Account Assgmt No.
lifnr nsdm_e_mseg lifnr Vendor no.
budat nsdm_e_mseg budat_mkpf
waers ekko waers Transaction Currency
bukrs nsdm_e_mseg bukrs Value
ekorg ekko ekorg Purchasing Org.
ekgrp ekko ekgrp Sub. purchasing grp
llief ekko llief Goods Supplier
bsart ekko bsart Stnd purch.ord.
stceg ekko stceg VAT Reg. No.
stceg_l ekko stceg_l Tax Dest. Cty/R
matkl ekpo matkl Product Sold Group
ekkol ekpo ekkol Condition Group
werks nsdm_e_mseg werks Receiving Plant
matnr nsdm_e_mseg matnr Vehicle Model
shkzg nsdm_e_mseg shkzg Returns
meins nsdm_e_mseg meins Valuation Unit
bstme nsdm_e_mseg bstme Unit.Order
erfme nsdm_e_mseg erfme Unit of Entry
gewei ekpo gewei Weight Unit
voleh ekpo voleh Volume Unit
punei ekpo punei Points Unit
mwskz ekpo mwskz Tax Code
txjcd ekpo txjcd Tax Jurisdict.
aktnr ekpo aktnr Promotion
gsber
prctr
txdat_from ekpo txdat_from Tax Rate Valid-From
satnr ekpo satnr Cross-plant CM
mtart ekpo mtart Product Type
ps_psp_pnr nsdm_e_mseg ps_psp_pnr WBS Element
bupla t001w j_1bbranch Business Place
tax_country ekpo tax_country Tax Ctry/Rgn
ltsnr ekpo ltsnr Suppl. Subrange
knttp ekpo knttp AcctAssgnCat:CC
kzbws ekpo kzbws Valuation
sobkz ekpo sobkz Special Stock

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 V_WB2_MKPF_MSEG_2.
-- 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: VWB2_MKPF_MSEG_2

CREATE VIEW V_WB2_MKPF_MSEG_2 AS
SELECT
  mseg.mblnr AS mblnr,
  mseg.mjahr AS mjahr,
  mseg.zeile AS zeile,
  mseg.zekkn AS zekkn,
  mseg.lifnr AS lifnr,
  mseg.budat_mkpf AS budat,
  ekko.waers AS waers,
  mseg.bukrs AS bukrs,
  ekko.ekorg AS ekorg,
  ekko.ekgrp AS ekgrp,
  ekko.llief AS llief,
  ekko.bsart AS bsart,
  ekko.stceg AS stceg,
  ekko.stceg_l AS stceg_l,
  ekpo.matkl AS matkl,
  ekpo.ekkol AS ekkol,
  mseg.werks AS werks,
  mseg.matnr AS matnr,
  mseg.shkzg AS shkzg,
  mseg.meins AS meins,
  mseg.bstme AS bstme,
  mseg.erfme AS erfme,
  ekpo.gewei AS gewei,
  ekpo.voleh AS voleh,
  ekpo.punei AS punei,
  ekpo.mwskz AS mwskz,
  ekpo.txjcd AS txjcd,
  ekpo.aktnr AS aktnr,
  cast( mseg.pargb as gsber preserving type ) AS gsber,
  cast( mseg.pprctr as prctr preserving type ) AS prctr,
  ekpo.txdat_from AS txdat_from,
  ekpo.satnr AS satnr,
  ekpo.mtart AS mtart,
  mseg.ps_psp_pnr AS ps_psp_pnr,
  t001w.j_1bbranch AS bupla,
  ekpo.tax_country AS tax_country,
  ekpo.ltsnr AS ltsnr,
  ekpo.knttp AS knttp,
  ekpo.kzbws AS kzbws,
  ekpo.sobkz AS sobkz
FROM nsdm_e_mseg AS mseg
INNER JOIN ekko ON /* join condition not captured in parsed metadata */
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
;