P_MaterialLedgerDocumentItem
Material Ledger document item
P_MaterialLedgerDocumentItem is a Basic CDS View that provides data about "Material Ledger document item" in SAP S/4HANA. It reads from 1 data source (mlit) and exposes 43 fields with key fields belnr, kjahr, posnr. Part of development package FINS_ML_DOCUMENT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mlit | mlit | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMLDOCITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | belnr | belnr | SD Document | |
| KEY | kjahr | kjahr | Year | |
| KEY | posnr | posnr | WBS Element | |
| bukrs | bukrs | Value | ||
| bwkey | bwkey | Valuation Area | ||
| kalnr | kalnr | ProdCostEst.No. | ||
| urzeile | urzeile | Item | ||
| matnr | matnr | Vehicle Model | ||
| bwtar | bwtar | Valuation Type | ||
| meins | meins | Valuation Unit | ||
| spart | spart | Source supplier | ||
| gsber | gsber | Business Area | ||
| bwmod | bwmod | Val.Grpg Code | ||
| ktopl | ktopl | G/L Chart of Accounts | ||
| mlast | mlast | Price Determ. | ||
| psart | psart | Item type | ||
| belnr_ea | belnr_ea | Document Number | ||
| kjahr_ea | kjahr_ea | Document Year | ||
| belnr_ma | belnr_ma | Document Number | ||
| kjahr_ma | kjahr_ma | Document Year | ||
| aschema | aschema | MatlUpdateStr. | ||
| ptyp | ptyp | Visibility (I/E/V/C) | ||
| ptyp_kat | ptyp_kat | Cat-Process Cat | ||
| ptyp_bvalt | ptyp_bvalt | PrcCat-Pr/Cnalt | ||
| ptyp_proc | ptyp_proc | Proc.-Proc.Cat. | ||
| bewartgrp | bewartgrp | Mvmt Type Group | ||
| kategorie | kategorie | Charc Category | ||
| bvalt | bvalt | PrcrmntAlt/Proc | ||
| process | process | Trans. | ||
| csplit | csplit | Apportionment | ||
| vbeln | vbeln | SD Sched. Agmt | ||
| vbelp | vbelp | Schd. Agmt Item | ||
| pspnr | pspnr | WBS Element | ||
| lifnr | lifnr | Vendor no. | ||
| kzbws | kzbws | Valuation | ||
| xobew | xobew | Vendor stk val. | ||
| sobkz | sobkz | Special Stock | ||
| xabrerr | xabrerr | Obsolete | ||
| belnr_cons | belnr_cons | Document Number | ||
| kjahr_cons | kjahr_cons | Document Year | ||
| belnr_wip | belnr_wip | Document Number | ||
| kjahr_wip | kjahr_wip | Document Year | ||
| prctr | prctr | Profit Centers |
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 P_MaterialLedgerDocumentItem.
-- 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: PMLDOCITEM
CREATE VIEW P_MaterialLedgerDocumentItem AS
SELECT
belnr,
kjahr,
posnr,
bukrs,
bwkey,
kalnr,
urzeile,
matnr,
bwtar,
meins,
spart,
gsber,
bwmod,
ktopl,
mlast,
psart,
belnr_ea,
kjahr_ea,
belnr_ma,
kjahr_ma,
aschema,
ptyp,
ptyp_kat,
ptyp_bvalt,
ptyp_proc,
bewartgrp,
kategorie,
bvalt,
process,
csplit,
vbeln,
vbelp,
pspnr,
lifnr,
kzbws,
xobew,
sobkz,
xabrerr,
belnr_cons,
kjahr_cons,
belnr_wip,
kjahr_wip,
prctr
FROM mlit
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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