I_RO_SAFTMaterialDocumentItem
RO SAFT Material Document Item
I_RO_SAFTMaterialDocumentItem is a Basic CDS View (Dimension) that provides data about "RO SAFT Material Document Item" in SAP S/4HANA. It reads from 2 data sources (matdoc, t001w) and exposes 35 fields. It has 1 association to related views. Part of development package GLO_LOG_SAFT_RO.
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_RO_SAFTProductValuation | _Valuation | _Matdoc.matbf = _Valuation.Product and _Plant.bwkey = _Valuation.ValuationArea and _Matdoc.bwtar = _Valuation.ValuationType |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IROSAFTMATDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | RO SAFT Material Document Item | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| MaterialDocument | matdoc | mblnr | Material Doc. | |
| MaterialDocumentYear | matdoc | mjahr | Mat. Doc. Year | |
| MaterialDocumentRecordType | matdoc | record_type | Type of Data Record | |
| MaterialDocumentItem | ||||
| MaterialDocumentLine | ||||
| StockIdentifyingMaterial | ||||
| Plant | matdoc | werks | Receiving Plant | |
| Supplier | matdoc | lifnr | Vendor no. | |
| Customer | ||||
| ProjectNetworkHasSpecialStock | ||||
| CompanyCode | matdoc | bukrs | Value | |
| EntryUnit | matdoc | erfme | Unit of Entry | |
| GoodsMovementEntryQty | matdoc | erfmg | Quantity in UnE | |
| PostingDate | matdoc | budat | Posting Date | |
| Product | matdoc | matnr | Vehicle Model | |
| GoodsMovementStkAmtInCCCrcy | ||||
| CompanyCodeCurrency | ||||
| MatlStkChangeQtyInBaseUnit | matdoc | stock_qty | Stock Quantity | |
| GoodsMovementQuantity | matdoc | menge | WarrCountValue | |
| AlternativeUnit | matdoc | meins | Valuation Unit | |
| FiscalYear | ||||
| DocumentDate | matdoc | bldat | Journal Entry Date | |
| DocumentReferenceID | matdoc | xblnr | Reference | |
| Batch | matdoc | charg | Chargeable Proc. | |
| StorageLocation | matdoc | lgort | Sublocation | |
| GoodsMovementType | matdoc | bwart | Valuation Type | |
| InventoryValuationType | matdoc | bwtar | Valuation Type | |
| DebitCreditCode | matdoc | shkzg | Returns | |
| ActiveGLAccount | matdoc | sakto | G/L Account | |
| AccountingDocumentType | matdoc | blart | Rep. rec. doc. type | |
| MaterialDocumentItemText | matdoc | sgtxt | Text | |
| CreatedByUser | matdoc | usnam | User Name | |
| MaterialLedgerTransactionType | matdoc | vgart | Transactn Type | |
| OriginalReferenceDocument | ||||
| ValuationClass | _Valuation | ValuationClass | Valuation Class |
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_RO_SAFTMaterialDocumentItem.
-- 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: IROSAFTMATDOC
CREATE VIEW I_RO_SAFTMaterialDocumentItem AS
SELECT
_Matdoc.mblnr AS MaterialDocument,
_Matdoc.mjahr AS MaterialDocumentYear,
_Matdoc.record_type AS MaterialDocumentRecordType,
cast(_Matdoc.zeile as nsdm_mblpo preserving type) AS MaterialDocumentItem,
cast(_Matdoc.line_id as nsdm_mb_line_id preserving type ) AS MaterialDocumentLine,
cast(_Matdoc.matbf as nsdm_matbf preserving type ) AS StockIdentifyingMaterial,
_Matdoc.werks AS Plant,
_Matdoc.lifnr AS Supplier,
cast(_Matdoc.kunnr as nsdm_ekunn preserving type ) AS Customer,
cast(_Matdoc.sobkz as nsdm_spcl_stock_type preserving type ) AS ProjectNetworkHasSpecialStock,
_Matdoc.bukrs AS CompanyCode,
_Matdoc.erfme AS EntryUnit,
_Matdoc.erfmg AS GoodsMovementEntryQty,
_Matdoc.budat AS PostingDate,
_Matdoc.matnr AS Product,
cast(_Matdoc.dmbtr_stock as nsdm_dmbtr_stock_l preserving type ) AS GoodsMovementStkAmtInCCCrcy,
cast(_Matdoc.waers as nsdm_comp_code_currency preserving type ) AS CompanyCodeCurrency,
_Matdoc.stock_qty AS MatlStkChangeQtyInBaseUnit,
_Matdoc.menge AS GoodsMovementQuantity,
_Matdoc.meins AS AlternativeUnit,
cast(_Matdoc.gjahr as fis_gjahr_no_conv preserving type ) AS FiscalYear,
_Matdoc.bldat AS DocumentDate,
_Matdoc.xblnr AS DocumentReferenceID,
_Matdoc.charg AS Batch,
_Matdoc.lgort AS StorageLocation,
_Matdoc.bwart AS GoodsMovementType,
_Matdoc.bwtar AS InventoryValuationType,
_Matdoc.shkzg AS DebitCreditCode,
_Matdoc.sakto AS ActiveGLAccount,
_Matdoc.blart AS AccountingDocumentType,
_Matdoc.sgtxt AS MaterialDocumentItemText,
_Matdoc.usnam AS CreatedByUser,
_Matdoc.vgart AS MaterialLedgerTransactionType,
cast(concat( _Matdoc.mblnr, _Matdoc.mjahr) as fac_awkey) AS OriginalReferenceDocument,
_Valuation.ValuationClass AS ValuationClass
FROM matdoc AS _Matdoc
INNER JOIN t001w AS _Plant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RO_SAFTProductValuation AS _Valuation ON _Matdoc.matbf = _Valuation.Product AND _Plant.bwkey = _Valuation.ValuationArea AND _Matdoc.bwtar = _Valuation.ValuationType -- association [0..1]
;
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