I_CN_MaterialStockAcctgDoc

DDL: I_CN_MATERIALSTOCKACCTGDOC SQL: ICNMATSTKACCTDOC Type: view BASIC

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)

SourceAliasJoin Type
acdoca accdoc from
fmlt_curtp_ml MAPP inner

Annotations (13)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;