I_CN_MaterialStockAcctgDoc
Material stock accounting document for china turnover report
I_CN_MaterialStockAcctgDoc is a Basic CDS View that provides data about "Material stock accounting document for china turnover report" in SAP S/4HANA. It reads from 2 data sources (acdoca, fmlt_curtp_ml) and exposes 19 fields with key fields AccountingDocument, FiscalYear, GLAccountLineItem, Ledger, CompanyCode.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| acdoca | accdoc | from |
| fmlt_curtp_ml | MAPP | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Material stock accounting document for china turnover report | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AbapCatalog.sqlViewName | ICNMATSTKACCTDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | false | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingDocument | belnr | SD Document | |
| KEY | FiscalYear | gjahr | Settlement Year | |
| KEY | GLAccountLineItem | docln | Matching Document Line Item | |
| KEY | Ledger | acdoca | rldnr | Ledger (Compat.) |
| KEY | CompanyCode | acdoca | rbukrs | Company Code |
| AccountingDocumentItem | buzei | Posting View Item | ||
| CompanyCodeCurrency | rhcur | Local Currency | ||
| StockIdentifyingMaterial | matnr | Vehicle Model | ||
| Plant | bwkey | Valuation Area | ||
| InventoryValuationType | bwtar | Valuation Type | ||
| InventorySpecialStockType | sobkz | Special Stock | ||
| DebitCreditCode | drcrk | Debit/Credit | ||
| GoodsMovementStkAmtInCCCrcy | hsl | Local Crcy Amt | ||
| MatlStkIncrQtyAmountInCCCrcy | Total goods Received Value | |||
| MatlStkDecrQtyAmountInCCCrcy | Total goods Issued Value | |||
| PostingDate | budat | Posting Date | ||
| DocumentDate | bldat | Journal Entry Date | ||
| AccountingDocumentType | blart | Rep. rec. doc. type | ||
| ReferenceDocumentType | awtyp | Reference Document Type |
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_CN_MaterialStockAcctgDoc.
-- 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: ICNMATSTKACCTDOC
CREATE VIEW I_CN_MaterialStockAcctgDoc AS
SELECT
belnr AS AccountingDocument,
gjahr AS FiscalYear,
docln AS GLAccountLineItem,
accdoc.rldnr AS Ledger,
accdoc.rbukrs AS CompanyCode,
buzei AS AccountingDocumentItem,
rhcur AS CompanyCodeCurrency,
matnr AS StockIdentifyingMaterial,
bwkey AS Plant,
bwtar AS InventoryValuationType,
sobkz AS InventorySpecialStockType,
drcrk AS DebitCreditCode,
hsl AS GoodsMovementStkAmtInCCCrcy,
(case when hsl > 0 then hsl else 0 end) AS MatlStkIncrQtyAmountInCCCrcy,
(case when hsl < 0 then hsl else 0 end ) AS MatlStkDecrQtyAmountInCCCrcy,
budat AS PostingDate,
bldat AS DocumentDate,
blart AS AccountingDocumentType,
awtyp AS ReferenceDocumentType
FROM acdoca AS accdoc
INNER JOIN fmlt_curtp_ml AS MAPP ON /* join condition not captured in parsed metadata */
;
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