m_v_m2s_pd_itm
View for Purchasing Document Item
m_v_m2s_pd_itm is a CDS View that provides data about "View for Purchasing Document Item" in SAP S/4HANA. It reads from 11 data sources and exposes 77 fields with key field ebelp.
Data Sources (11)
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CDS_M_M2S_PD_ITM | view | |
| EndUserText.label | View for Purchasing Document Item | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (77)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ebeln | ||||
| KEY | ebelp | ekpo | ebelp | Item pur. doc. |
| txz01 | ||||
| matnr | ekpo | matnr | Vehicle Model | |
| matkl | ekpo | matkl | Product Sold Group | |
| werks | ekpo | werks | Receiving Plant | |
| lmein | ekpo | lmein | Base Unit | |
| lgort | ekpo | lgort | Sublocation | |
| bukrs | ekpo | bukrs | Value | |
| meins | ekpo | meins | Valuation Unit | |
| bprme | ekpo | bprme | PO Price Unit | |
| knttp | ekpo | knttp | AcctAssgnCat:CC | |
| loekz_i | ekpo | loekz | Status | |
| banfn | ekpo | banfn | Requisition | |
| bnfpo | ekpo | bnfpo | Requisn. item | |
| ematn | ekpo | ematn | MPN: Material | |
| menge | ekpo | menge | WarrCountValue | |
| peinh | ekpo | peinh | Unit of measure | |
| netpr | ekpo | netpr | Price | |
| netwr | ekpo | netwr | Value | |
| ktmng | ekpo | ktmng | Target Quantity | |
| zwert | ekpo | zwert | Target Value | |
| statu | ekpo | statu | Vehicle Status | |
| pstyp | ekpo | pstyp | Item Category | |
| stapo | ekpo | stapo | Statistical | |
| retpo | ekpo | retpo | Returns Item | |
| umren | ekpo | umren | Denominator | |
| umrez | ekpo | umrez | Numerator | |
| elikz | ekpo | elikz | Delivery Completion | |
| erekz | ekpo | erekz | Final Invoice Ind. | |
| wepos | ekpo | wepos | Goods Receipt | |
| webre | ekpo | webre | GR-Based IV | |
| repos | ekpo | repos | Invoice Receipt Ind. | |
| dec95aswkurs | ||||
| bstyp | ekko | bstyp | Source doc.cat. | |
| bsart | ekko | bsart | Stnd purch.ord. | |
| aedat | ekko | aedat | Obsolete | |
| ernam | ekko | ernam | User Name | |
| lifnr | ekko | lifnr | Vendor no. | |
| zterm | ekko | zterm | Terms of Payment | |
| ekorg | ekko | ekorg | Purchasing Org. | |
| ekgrp | ekko | ekgrp | Sub. purchasing grp | |
| waers | ekko | waers | Transaction Currency | |
| bedat | ekko | bedat | Start date | |
| kdatb | ekko | kdatb | Validity Start | |
| kdate | ekko | kdate | Validity End | |
| kufix | ekko | kufix | Fixed Exch.Rate | |
| konnr | ekko | konnr | Agreement | |
| reswk | ekko | reswk | Supplying Plant | |
| loekz_h | ekko | loekz | Status | |
| angdt | ekko | angdt | Valid From | |
| submi | ekko | submi | Collective No. | |
| ktwrt | ekko | ktwrt | Target Value | |
| description | ekko | description | Well Code Des. | |
| iseopblocked | ekko | iseopblocked | Business Usage Comp. | |
| name1 | ||||
| sortl | lfa1 | sortl | Sort Term | |
| eknam | t024 | eknam | Description | |
| ekotx | t024e | ekotx | Description | |
| butxt | t001 | butxt | Posting Text | |
| name1_p | t001w | name1 | PA text | |
| name1_sp | t001w | name1 | PA text | |
| name_text | adrp | name_text | Full Name | |
| wemng | m_v_m2s_pd_i_c | wemng | Received | |
| wewrt | m_v_m2s_pd_i_c | wewrt | GR value | |
| remng | m_v_m2s_pd_i_c | remng | Invoice qty | |
| rewrt | m_v_m2s_pd_i_c | rewrt | Invoice Value | |
| qtymismatch | m_v_m2s_pd_i_c | qtymismatch | ||
| confmiss | m_v_m2s_pd_i_c | confmiss | ||
| wesbs | m_v_m2s_pd_i_c | wesbs | GR Bl.St. OUn | |
| wgbez | ||||
| batxt | ||||
| statustext | ||||
| cntf | ||||
| cntk | ||||
| cntl | ||||
| releasevalue |
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_m2s_pd_itm.
-- 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_M2S_PD_ITM
CREATE VIEW m_v_m2s_pd_itm AS
SELECT
ekpo.ebelp AS ebelp,
ekpo.matnr AS matnr,
ekpo.matkl AS matkl,
ekpo.werks AS werks,
ekpo.lmein AS lmein,
ekpo.lgort AS lgort,
ekpo.bukrs AS bukrs,
ekpo.meins AS meins,
ekpo.bprme AS bprme,
ekpo.knttp AS knttp,
ekpo.loekz AS loekz_i,
ekpo.banfn AS banfn,
ekpo.bnfpo AS bnfpo,
ekpo.ematn AS ematn,
ekpo.menge AS menge,
ekpo.peinh AS peinh,
ekpo.netpr AS netpr,
ekpo.netwr AS netwr,
ekpo.ktmng AS ktmng,
ekpo.zwert AS zwert,
ekpo.statu AS statu,
ekpo.pstyp AS pstyp,
ekpo.stapo AS stapo,
ekpo.retpo AS retpo,
ekpo.umren AS umren,
ekpo.umrez AS umrez,
ekpo.elikz AS elikz,
ekpo.erekz AS erekz,
ekpo.wepos AS wepos,
ekpo.webre AS webre,
ekpo.repos AS repos,
_PurchasingDocument.bstyp AS bstyp,
_PurchasingDocument.bsart AS bsart,
_PurchasingDocument.aedat AS aedat,
_PurchasingDocument.ernam AS ernam,
_PurchasingDocument.lifnr AS lifnr,
_PurchasingDocument.zterm AS zterm,
_PurchasingDocument.ekorg AS ekorg,
_PurchasingDocument.ekgrp AS ekgrp,
_PurchasingDocument.waers AS waers,
_PurchasingDocument.bedat AS bedat,
_PurchasingDocument.kdatb AS kdatb,
_PurchasingDocument.kdate AS kdate,
_PurchasingDocument.kufix AS kufix,
_PurchasingDocument.konnr AS konnr,
_PurchasingDocument.reswk AS reswk,
_PurchasingDocument.loekz AS loekz_h,
_PurchasingDocument.angdt AS angdt,
_PurchasingDocument.submi AS submi,
_PurchasingDocument.ktwrt AS ktwrt,
_PurchasingDocument.description AS description,
_PurchasingDocument.iseopblocked AS iseopblocked,
lfa1.sortl AS sortl,
t024.eknam AS eknam,
t024e.ekotx AS ekotx,
t001.butxt AS butxt,
t001w.name1 AS name1_p,
t001w_sp.name1 AS name1_sp,
adrp.name_text AS name_text,
pdi_calc.wemng AS wemng,
pdi_calc.wewrt AS wewrt,
pdi_calc.remng AS remng,
pdi_calc.rewrt AS rewrt,
pdi_calc.qtymismatch AS qtymismatch,
pdi_calc.confmiss AS confmiss,
pdi_calc.wesbs AS wesbs,
cast('' as abap.char(20)) AS wgbez,
cast('' as abap.char(20)) AS batxt,
cast('' as abap.char(40)) AS statustext,
cast(0 as abap.int4) AS cntf,
cast(0 as abap.int4) AS cntk,
cast(0 as abap.int4) AS cntl,
cast(0 as abap.curr(19,2)) AS releasevalue
FROM ekpo
INNER JOIN ekko AS _PurchasingDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN lfa1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t024e ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t024 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001w ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001w AS t001w_sp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN usr21 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN m_v_m2s_pd_i_c AS pdi_calc ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA