SAP S/4 HANA新变化-MM物料管理:数据模型(转)

数据模型变化


The SAP ERP 6.0 stock inventory management data model consists of the two document tables MKPF for document header information and MSEG for document item data. Additionally there were aggregated actual stock quantity data stored in several tables. Some of these tables do also store material master data attributes like the tables MARC, MARD and MCHB. Such tables with material master data attributes as well as actual stock quantities will be named as hybrid tables in the following. In contrast there are also tables like MSSA containing only aggregated actual stock quantities for sales order stock. Such tables will be called in the following as replaced aggregation tables.

With S/4HANA this data model has been changed significantly. The new de-normalized table MATDOC has been introduced which contains the former header and item data of a material document as well as a lot of further attributes. Material document data will be stored in MATDOC only and not anymore in MKPF and MSEG. Additionally the aggregated actual stock quantities will not be persisted anymore in the hybrid or replaced aggregation tables. Instead, actual stock quantity data will be calculated on-the-fly from the new material document table MATDOC for which some of those additional special fields are used. Hence, with the new MM-IM data model the system will work on data base level in an INSERT only mode without DB locks.

Nevertheless, for stock decreasing processes there will be still ABAP locks to ensure stock consistency. A further advantage of the new MM-IM data model is the capability of simple and fast reporting because the most information is in one place: MATDOC.

All below mentioned tables of the SAP ERP 6.0 world do still exist in S/4HANA as DDIC definition as well as data base object and the hybrid tables will still be used to store the material master data attributes. For compatibility reasons there are Core Data Service (CDS) Views assigned as proxy objects to all those tables ensuring that each read access to one of the mentioned tables below still returns the data as before in SAP ERP 6.0. The CDS Views do the on-the-fly aggregation of actual stock quantities from the new MM-IM data model and join the master data attributes from the material master data table. Hence all customer coding will work as before because each read access to one of the tables will get redirected in the database interface layer of NetWeaver to the assigned CDS view.



库存管理数据模型改变了。新的MATDOC表会记录所有物料凭证数据和其他属性,不再记录在MKPF 和 MSEG表中(实际上这两个表仍有记录,应该是考虑到兼容性)。实际库存数据不再记录,而是实时对照MATDOC表算出。

历史表、汇总表都不存在了,换成了CDS视图。


The affected tables are listedbelow:

Table

Table  description

DDL  Source of CDS

View  for redirect

View  to read the content of

the  database table (w/o

redirect  to compatibility

view)

View  to read the

master  data

attributes  only

MKPF

Material

document

header

NSDM_DDL_MKPF

NSDM_MIG_MKPF


MSEG

Material

document item

NSDM_DDL_MSEG

NSDM_MIG_MSEG


MARC

Plant Data for

Material

NSDM_DDL_MARC

NSDM_MIG_MARC

V_MARC_MD

MARD

Storage Location

Data for Material

NSDM_DDL_MARD

NSDM_MIG_MARD

V_MARD_MD

MCHB

Batch stocks

NSDM_DDL_MCHB

NSDM_MIG_MCHB

V_MCHB_MD

MKOL

Special Stocks

from Vendor

NSDM_DDL_MKOL

NSDM_MIG_MKOL

V_MKOL_MD

MSLB

Special Stocks

with Vendor

NSDM_DDL_MSLB

NSDM_MIG_MSLB

V_MSLB_MD

MSKA

Sales Order Stock

NSDM_DDL_MSKA

NSDM_MIG_MSKA

V_MSKA_MD

MSSA

Total Customer

Orders on Hand

NSDM_DDL_MSSA

NSDM_MIG_MSSA


MSPR

Project Stock

NSDM_DDL_MSPR

NSDM_MIG_MSPR

V_MSPR_MD

MSSL

Total Special

Stocks with

Vendor

NSDM_DDL_MSSL

NSDM_MIG_MSSL


MSSQ

Project Stock

Total

NSDM_DDL_MSSQ

NSDM_MIG_MSSQ


MSKU

Special Stocks

with Customer

NSDM_DDL_MSKA

NSDM_MIG_MSKU

V_MSKU_MD

MSTB

Stock in Transit

NSDM_DDL_MSTB

NSDM_MIG_MSTB


MSTE

Stock in Transit

to Sales and

Distribution

Document

NSDM_DDL_MSTE

NSDM_MIG_MSTE


MSTQ

Stock in Transit

for Project

NSDM_DDL_MSTQ

NSDM_MIG_MSTQ


MCSD

DIMP: Customer

Stock

NSDM_DDL_MCSD

NSDM_MIG_MCSD

MCSD_MD

MCSS

DIMP: Total

Customer Stock

NSDM_DDL_MCSS

NSDM_MIG_MCSS

MCSS_MD

MSCD

DIMP: Customer

stock with

vendor

NSDM_DDL_MSCD

NSDM_MIG_MSCD

MSCD_MD

MSCS

DIMP: Customer

stock with

vendor - Total

NSDM_DDL_MSCS

NSDM_MIG_MSCS

MSCS_MD

MSFD

DIMP: Sales

Order Stock with

Vendor

NSDM_DDL_MSFD

NSDM_MIG_MSFD

MSFD_MD

MSFS

DIMP: Sales

Order Stock with

Vendor - Total

NSDM_DDL_MFS

NSDM_MIG_MSFS

MSFS_MD

MSID

DIMP: Vendor

Stock with

Vendor

NSDM_DDL_MSID

NSDM_MIG_MSID

MSID_MD

MSIS

DIMP: Vendor

Stock with

Vendor - Total

NSDM_DDL_MSIS

NSDM_MIG_MSIS

MSIS_MD

MSRD

DIMP: Project

Stock with

Vendor

NSDM_DDL_MSRD

NSDM_MIG_MSRD

MSRD_MD

MSRS

DIMP: Project

Stock with

Vendor - Total

NSDM_DDL_MSRS

NSDM_MIG_MSRS

MSRS_MD

MARCH

History

NSDM_DDL_MARCH

NSDM_MIG_MARCH


MARDH

History

NSDM_DDL_MARDH

NSDM_MIG_MARDH


MCHBH

History

NSDM_DDL_MCHBH

NSDM_MIG_MCHBH


MKOLH

History

NSDM_DDL_MKOLH

NSDM_MIG_MKOLH


MSLBH

History

NSDM_DDL_MSLBH

NSDM_MIG_MSLBH


MSKAH

History

NSDM_DDL_MSKAH

NSDM_MIG_MSKAH


MSSAH

History

NSDM_DDL_MSSAH

NSDM_MIG_MSSAH


MSPRH

History

NSDM_DDL_MSPRH

NSDM_MIG_MSPRH


MSSQH

History

NSDM_DDL_MSSQH

NSDM_MIG_MSSQH


MSKUH

History

NSDM_DDL_MSKAH

NSDM_MIG_MSKAH


MSTBH

History

NSDM_DDL_MSTBH

NSDM_MIG_MSTBH


MSTEH

History

NSDM_DDL_MSTEH

NSDM_MIG_MSTEH


MSTQH

History

NSDM_DDL_MSTQH

NSDM_MIG_MSTQH


MCSDH

History

NSDM_DDL_MCSDH

NSDM_MIG_MCSDH


MCSSH

History

NSDM_DDL_MCSSH

NSDM_MIG_MCSSH


MSCDH

History

NSDM_DDL_MSCDH

NSDM_MIG_MSCDH


MSFDH

History

NSDM_DDL_MSFDH

NSDM_MIG_MSFDH


MSIDH

History

NSDM_DDL_MSIDH

NSDM_MIG_MSIDH


MSRDH

History

NSDM_DDL_MSRDH

NSDM_MIG_MSRDH


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,902评论 5 468
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,037评论 2 377
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,978评论 0 332
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,867评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,763评论 5 360
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,104评论 1 277
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,565评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,236评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,379评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,313评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,363评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,034评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,637评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,719评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,952评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,371评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,948评论 2 341

推荐阅读更多精彩内容

  • 我不知道我活了多久,也不知道看见过多少次人世间的变革,甚至有时候连自己是什么都已经忘却了。 我特别喜欢伪装成人类,...
    二十分帅气的昵称阅读 238评论 1 3
  • 世界上有一条最寂寞的鲸鱼,它叫Alice,它没有朋友,没有家人,因为它发出的频率比其它鲸鱼高一倍,它自己也不知道...
    疯人丶阅读 898评论 0 0