m_v_inforecord_entity

DDL: M_V_INFORECORD_ENTITY SQL: CDS_IR_ENTITY Type: view

Info Record General Data - Draft and Original

m_v_inforecord_entity is a CDS View that provides data about "Info Record General Data - Draft and Original" in SAP S/4HANA. It reads from 2 data sources (eina_eine_d, M_V_inforecord) and exposes 106 fields with key field guid. It has 9 associations to related views.

Data Sources (2)

SourceAliasJoin Type
eina_eine_d draft from
M_V_inforecord original union_all

Parameters (2)

NameTypeDefault
systemLanguage abap.char( 1 )
username abap.char( 12 )

Associations (9)

CardinalityTargetAliasCondition
[0..1] lfa1 draft_supplier draft.lifnr = draft_supplier.lifnr
[0..1] makt draft_material draft.matnr = draft_material.maktx
[0..1] t023t draft_matgroup draft.matkl = draft_matgroup.matkl
[0..1] t024e draft_ekorg draft.ekorg = draft_ekorg.ekorg
[0..1] t001w draft_werks draft.werks = draft_werks.werks
[0..1] mara draft_mara draft.matnr = draft_mara.matnr
[0..1] lfa1 original_supplier original.lifnr = original_supplier.lifnr
[0..1] makt original_material original.matnr = original_material.maktx
[0..1] t023t original_matgroup original.matkl = original_matgroup.matkl

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName CDS_IR_ENTITY view
EndUserText.label Info Record General Data - Draft and Original view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (106)

KeyFieldSource TableSource FieldDescription
KEY guid eina_eine_d guid UUID 22 char.
infnr eina_eine_d infnr Info Record
ekorg eina_eine_d ekorg Purchasing Org.
werks eina_eine_d werks Receiving Plant
esokz eina_eine_d esokz Infotype
lifnr eina_eine_d lifnr Vendor no.
name1 draft_supplier name1 PA text
name1_p draft_werks name1 Name 1
matnr eina_eine_d matnr Vehicle Model
maktx
ekotx draft_ekorg ekotx Description
entitystate eina_eine_d entitystate Single-Character Flag
wgbez
loekz_a eina_eine_d loekz_a Complete
txz01 eina_eine_d txz01 Text
meins eina_eine_d meins Valuation Unit
umrez eina_eine_d umrez Numerator
umren eina_eine_d umren Denominator
idnlf eina_eine_d idnlf Vendor Material
verkf eina_eine_d verkf Salesperson
telf1 eina_eine_d telf1 Telephone no.
lmein eina_eine_d lmein Base Unit
wglif eina_eine_d wglif Suppl. Mat. Grp
kolif eina_eine_d kolif Prior Supplier
lifab eina_eine_d lifab Available from
lifbi eina_eine_d lifbi Available to
vabme eina_eine_d vabme Var. Order Unit
relif eina_eine_d relif Reg. Supplier
loekz_e eina_eine_d loekz_e Purch.org. data
ekgrp eina_eine_d ekgrp Sub. purchasing grp
waers eina_eine_d waers Transaction Currency
minbm eina_eine_d minbm Minimum Qty
norbm eina_eine_d norbm Standard Qty
aplfz eina_eine_d aplfz Pl. Deliv. Time
uebto eina_eine_d uebto Overrun Tol.
untto eina_eine_d untto Underdel. Tol.
uebtk eina_eine_d uebtk Unlimited Tol.
ebeln eina_eine_d ebeln Source PurchDoc
ebelp eina_eine_d ebelp Item pur. doc.
netpr eina_eine_d netpr Price
peinh eina_eine_d peinh Unit of measure
bprme eina_eine_d bprme PO Price Unit
prdat eina_eine_d prdat Valid to
bpumz eina_eine_d bpumz Qty Conversion
bpumn eina_eine_d bpumn Qty Conversion
webre eina_eine_d webre GR-Based IV
mwskz eina_eine_d mwskz Tax Code
inco1 eina_eine_d inco1 Incoterms
inco2 eina_eine_d inco2 Incoterms 2
bstma eina_eine_d bstma To Lot Size
aut_source eina_eine_d aut_source Auto. Sourcing
creator eina_eine_d crea_uname User Name
esokzasguid
infnr M_V_inforecord infnr Info Record
ekorg M_V_inforecord ekorg Purchasing Org.
werks M_V_inforecord werks Receiving Plant
esokz M_V_inforecord esokz Infotype
lifnr M_V_inforecord lifnr Vendor no.
name1 original_supplier name1 PA text
name1_p M_V_inforecord name1_p Name 1
matnr M_V_inforecord matnr Vehicle Model
maktx
ekotx M_V_inforecord ekotx Description
entitystate M_V_inforecord entitystate Single-Character Flag
matkl M_V_inforecord matkl Product Sold Group
wgbez
loekz_a M_V_inforecord loekz_a Complete
txz01 M_V_inforecord txz01 Text
meins M_V_inforecord meins Valuation Unit
umrez M_V_inforecord umrez Numerator
umren M_V_inforecord umren Denominator
idnlf M_V_inforecord idnlf Vendor Material
verkf M_V_inforecord verkf Salesperson
telf1 M_V_inforecord telf1 Telephone no.
lmein M_V_inforecord lmein Base Unit
wglif M_V_inforecord wglif Suppl. Mat. Grp
kolif M_V_inforecord kolif Prior Supplier
lifab M_V_inforecord lifab Available from
lifbi M_V_inforecord lifbi Available to
vabme M_V_inforecord vabme Var. Order Unit
relif M_V_inforecord relif Reg. Supplier
loekz_e M_V_inforecord loekz_e Purch.org. data
ekgrp M_V_inforecord ekgrp Sub. purchasing grp
waers M_V_inforecord waers Transaction Currency
minbm M_V_inforecord minbm Minimum Qty
norbm M_V_inforecord norbm Standard Qty
aplfz M_V_inforecord aplfz Pl. Deliv. Time
uebto M_V_inforecord uebto Overrun Tol.
untto M_V_inforecord untto Underdel. Tol.
uebtk M_V_inforecord uebtk Unlimited Tol.
ebeln M_V_inforecord ebeln Source PurchDoc
ebelp M_V_inforecord ebelp Item pur. doc.
netpr M_V_inforecord netpr Price
peinh M_V_inforecord peinh Unit of measure
bprme M_V_inforecord bprme PO Price Unit
prdat M_V_inforecord prdat Valid to
bpumz M_V_inforecord bpumz Qty Conversion
bpumn M_V_inforecord bpumn Qty Conversion
webre M_V_inforecord webre GR-Based IV
mwskz M_V_inforecord mwskz Tax Code
inco1 M_V_inforecord inco1 Incoterms
inco2 M_V_inforecord inco2 Incoterms 2
bstma M_V_inforecord bstma To Lot Size
aut_source M_V_inforecord aut_source Auto. Sourcing
creator User Name
change_date

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_inforecord_entity.
-- 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_IR_ENTITY
-- Parameters: systemLanguage : abap.char( 1 ), username : abap.char( 12 )

CREATE VIEW m_v_inforecord_entity AS
SELECT
  draft.guid AS guid,
  draft.infnr AS infnr,
  draft.ekorg AS ekorg,
  draft.werks AS werks,
  draft.esokz AS esokz,
  draft.lifnr AS lifnr,
  draft_supplier.name1 AS name1,
  draft_werks.name1 AS name1_p,
  draft.matnr AS matnr,
  draft_material[spras = $parameters.systemLanguage].maktx AS maktx,
  draft_ekorg.ekotx AS ekotx,
  draft.entitystate AS entitystate,
  draft_matgroup[spras = $parameters.systemLanguage].wgbez AS wgbez,
  draft.loekz_a AS loekz_a,
  draft.txz01 AS txz01,
  draft.meins AS meins,
  draft.umrez AS umrez,
  draft.umren AS umren,
  draft.idnlf AS idnlf,
  draft.verkf AS verkf,
  draft.telf1 AS telf1,
  draft.lmein AS lmein,
  draft.wglif AS wglif,
  draft.kolif AS kolif,
  draft.lifab AS lifab,
  draft.lifbi AS lifbi,
  draft.vabme AS vabme,
  draft.relif AS relif,
  draft.loekz_e AS loekz_e,
  draft.ekgrp AS ekgrp,
  draft.waers AS waers,
  draft.minbm AS minbm,
  draft.norbm AS norbm,
  draft.aplfz AS aplfz,
  draft.uebto AS uebto,
  draft.untto AS untto,
  draft.uebtk AS uebtk,
  draft.ebeln AS ebeln,
  draft.ebelp AS ebelp,
  draft.netpr AS netpr,
  draft.peinh AS peinh,
  draft.bprme AS bprme,
  draft.prdat AS prdat,
  draft.bpumz AS bpumz,
  draft.bpumn AS bpumn,
  draft.webre AS webre,
  draft.mwskz AS mwskz,
  draft.inco1 AS inco1,
  draft.inco2 AS inco2,
  draft.bstma AS bstma,
  draft.aut_source AS aut_source,
  draft.crea_uname AS creator,
  draft.lchg_date_time as change_date AS esokzasguid,
  original.matkl AS matkl,
  cast(0 as abap.dec( 14, 0 )) AS change_date
FROM eina_eine_d AS draft
LEFT OUTER JOIN lfa1 AS draft_supplier ON draft.lifnr = draft_supplier.lifnr  -- association [0..1]
LEFT OUTER JOIN makt AS draft_material ON draft.matnr = draft_material.maktx  -- association [0..1]
LEFT OUTER JOIN t023t AS draft_matgroup ON draft.matkl = draft_matgroup.matkl  -- association [0..1]
LEFT OUTER JOIN t024e AS draft_ekorg ON draft.ekorg = draft_ekorg.ekorg  -- association [0..1]
LEFT OUTER JOIN t001w AS draft_werks ON draft.werks = draft_werks.werks  -- association [0..1]
LEFT OUTER JOIN mara AS draft_mara ON draft.matnr = draft_mara.matnr  -- association [0..1]
LEFT OUTER JOIN lfa1 AS original_supplier ON original.lifnr = original_supplier.lifnr  -- association [0..1]
LEFT OUTER JOIN makt AS original_material ON original.matnr = original_material.maktx  -- association [0..1]
LEFT OUTER JOIN t023t AS original_matgroup ON original.matkl = original_matgroup.matkl  -- association [0..1]
-- UNION ALL with additional select branch(es): M_V_inforecord
;