I_MaterialLedgerDocument
Material Ledger Document Header
I_MaterialLedgerDocument is a Basic CDS View that provides data about "Material Ledger Document Header" in SAP S/4HANA. It reads from 1 data source (P_MaterialLedgerDocumentHeader) and exposes 19 fields with key fields MaterialLedgerDocument, MaterialLedgerDocumentYear. It has 1 association to related views. Part of development package FINS_ML_DOCUMENT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MaterialLedgerDocumentHeader | P_MaterialLedgerDocumentHeader | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_MatlPrChgAcctDetnDiffntnRsnT | _Text | $projection.MatlPrChgAcctDetnDiffntnRsn = _Text.MatlPrChgAcctDetnDiffntnRsn |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMLDOCHEADER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Material Ledger Document Header | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialLedgerDocument | belnr | SD Document | |
| KEY | MaterialLedgerDocumentYear | kjahr | Year | |
| MaterialLedgerTransactionType | vgart | Transactn Type | ||
| LedgerGroup | ldgrp | Target Ledger Group | ||
| ReferenceDocumentType | awtyp | Reference Document Type | ||
| ReferenceDocument | awref | Reference Doc. | ||
| ReferenceDocumentContext | Refer. Org.Unit | |||
| ReferenceDocumentLogicalSystem | Logical System | |||
| IsReversalDocument | storno | Reversal | ||
| DocumentDate | Journal Entry Date | |||
| CreationDate | Imported On | |||
| CreationTime | Time | |||
| CreatedByUser | User Name | |||
| ExecutedTransaction | tcode | Undefined range (can be used for patch levels) | ||
| BusinessTransactionType | Bus.transaction | |||
| LogicalSystem | logsys | Source system | ||
| DocumentHeaderText | bktxt | Header Text | ||
| MatlPrChgAcctDetnDiffntnRsn | kongr | Reason | ||
| _Text | _Text |
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 I_MaterialLedgerDocument.
-- 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: IMLDOCHEADER
CREATE VIEW I_MaterialLedgerDocument AS
SELECT
belnr AS MaterialLedgerDocument,
kjahr AS MaterialLedgerDocumentYear,
vgart AS MaterialLedgerTransactionType,
ldgrp AS LedgerGroup,
awtyp AS ReferenceDocumentType,
awref AS ReferenceDocument,
cast(aworg as fis_aworg preserving type) AS ReferenceDocumentContext,
cast(awsys as fis_awsys preserving type) AS ReferenceDocumentLogicalSystem,
storno AS IsReversalDocument,
cast(bldat as fis_bldat preserving type) AS DocumentDate,
cast(cpudt as fis_cpdat preserving type) AS CreationDate,
cast(cputm as ttet_dt_cr_time preserving type) AS CreationTime,
cast(usnam as vdm_createdbyuserid preserving type) AS CreatedByUser,
tcode AS ExecutedTransaction,
cast(glvor as fins_custbttype preserving type) AS BusinessTransactionType,
logsys AS LogicalSystem,
bktxt AS DocumentHeaderText,
kongr AS MatlPrChgAcctDetnDiffntnRsn
FROM P_MaterialLedgerDocumentHeader
LEFT OUTER JOIN I_MatlPrChgAcctDetnDiffntnRsnT AS _Text ON MatlPrChgAcctDetnDiffntnRsn = _Text.MatlPrChgAcctDetnDiffntnRsn -- association [0..*]
;
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