SAP MM 并非奇怪现象之MB5B报表里期初库存余额或者期末库存余额为负数?

笔者在做某个项目的进销存报表优化的的时候,发现了一个奇怪现象:MB5B查某个日期或某个期间的库存的时候,发现有负的库存余额!

以物料为号1400005012为例,MB5B,

期初金额与期末金额都是负数?尼玛,这不科学啊!某一天的物料库存余额怎么能为负数呢?笔者很是好奇与不解。于是去上网查资料,发现有不少同行都有发现这个现象! 笔者还发现了某外国同行写的一篇BLOG, 看了这个BLOG,笔者茅塞大开。

如下文字来自互联网该同行的BLOG, 与诸多同行朋友共勉。

https://blogs.sap.com/2008/06/08/mb5b-offers-negative-results-when-executed-per-posting-date/

Many users see negative results when they execute the transaction MB5B for a specific posting date, even when the negative stocks have not been allowed in the customizing.

We need to consider that, at the time of the goods issue, the system only validates whether sufficient stock is available in the complete posting period, and not on a specific posting date.

The stock and value information is kept in the tables on a period basis.

The table entries relate to the complete posting period, and not to a specific posting date.

If there is stock enough in a posting period, the system will indeed allow the posting, even if it does not make sense according to the specific date within the period.

If we were posting the goods issue in a different period in which we do not have stock, the system would indeed send an error message, but if the postings occur in the same period with different dates, the system will not issue any error.

For example, we can have the following situation:

Stock in the period 04/2008

0 PC

Goods movements in the period 05/2008:

Movement

Posting date

Date of entry

Quantity

Goods Receipt

20.05.2008

20.05.2008

10 PC

Goods Issue

10.05.2008

21.05.2008

10 PC

The system allows this goods issue to be posted with a posting date before than the posting date in the goods receipt because on the period 05/2008 we have stock enough to save this goods movement. The system checks for stock in the whole period, and not to specific dates within the period.

If negative stocks are not allowed in the system, this goods issue could not have been executed with posting date in the previous month (04/2008), because in this period we do not have stock. In this case the system sends the error message M7021 reporting a deficit of stock at Storage Location level in the previous period (M7 021 “Deficit of SL Unrestr. prev. + Quantity: Material, Plant, Storage Location”).

In the stocks tables (MARC, MARD, MBEW) the system will never allow negative stocks if you make the settings for negative stocks NOT allowed in Customizing for Inventory Management by using transaction “OMJ1”.

Reports like MB5B (Stock on posting date) can offer negative results when executed for dates previous to the goods receipt, but this is only a reporting issue: if the program is correctly executed for the complete period (month/year), it should never show negative values.

For the example we were discussing before:

MB5B executed with a selection date within the month like 10.05.2008:

Will indeed offer negative stocks:

However, when executed for the complete posting period with selection date from the 01.05.2008 to the 31.05.2008, the negative stocks are no longer listed:

So you will need to consider if it makes sense to post a material movement with a posting date lower than acquisition date.

If you do the goods issue posting corresponding to the real goods issue date in your stock, this incidence will be avoided.

SAP MM 并非奇怪现象之MB5B报表里期初库存余额或者期末库存余额为负数?相关推荐

  1. SAP MM 并非奇怪现象之MB5B报表查不到某一笔出库记录?

    物料号:1301002696 工厂代码:2160 MB5B,如下查询条件, 查询结果中,期初与期末库存数量都是0,期间的出库入库数量都是0.事实上该物料期初应该是有库存的.并且我用MB51相同时间段查 ...

  2. SAP MM 供应商无英文名称,ME21N里却带出了英文名字?

    SAP MM 供应商无英文名称,ME21N里却带出了英文名字? 近日收到客户业务用户上报的一个问题说ME21N的时候,供应商101071的名字怎么是英文名字,实际上供应商主数据里是没有这个英文名字, ...

  3. SAP MM初阶之采购信息记录里的Prior Supplier栏位

    SAP MM初阶之采购信息记录里的Prior Supplier栏位 笔者有注意到在采购信息记录的General Data视图里,有一个并不令人注意的字段,叫做'Prior Supplier'(前供应商 ...

  4. SAP MM VL09试图取消收货报错说某个HU负库存

    SAP MM VL09试图取消收货报错说某个HU负库存 内向交货单2501949770, 有启用了HUM,如上图. VL32N做收货过账, 过账后系统自动生成上架TO单,将其中的部分TO单据确认,其它 ...

  5. SAP 取月度期初库存和月度期末库存(历史库存)

    mard里记载的是当前库存的数量,但是期间并不一定是当月.比如你物料4月一整月都没有库存数量变化(没收没发),那么5月初你看mard里的条目期间数还是4月而非5月. 当某个期间发生货物移动的时候,系统 ...

  6. SAP 取月度期初库存和月度期末库存(历史库存)-mard和mardh的区别

    mard里记载的是当前库存的数量,但是期间并不一定是当月.比如你物料4月一整月都没有库存数量变化(没收没发),那么5月初你看mard里的条目期间数还是4月而非5月. 当某个期间发生货物移动的时候,系统 ...

  7. SAP MM 进销存报表与标准报表MB5B

    SAP MM 进销存报表与标准报表MB5B 提到进销存报表,SAP提供了一个标准报表MB5B.这个报表能显示指定的日期范围内,期初库存(数量与金额),期末库存(数量与金额),总入库数(数量与金额),总 ...

  8. SAP MM ME1M报表结果不科学?

    SAP MM ME1M报表结果不科学? 做过SAP MM顾问的都知道,报表ME1M可以查询物料的info record列表,即是说可以以列表的形式批量显示多个物料的采购价格主数据. 但是这个报表有个不 ...

  9. 入门SAP MM的学习流程

    要学好MM我们首先要了解MM的各个流程与步骤这样学习与操作起来就事半功倍了,操作如下: 1.SAP物流相关模块中,工厂是最重要的组织结构,隶属于公司代码,并且包括了和物流管理相关的最多的控制参数.这里 ...

最新文章

  1. PYTHON自动化Day12-unittest自动注册登录
  2. 客户关系管理:客户关系选型
  3. 如何解决java.lang.NoClassDefFoundError:Java 9中的javax / xml / bind / JAXBException
  4. Keepalived + LVS-NAT 实现高可用四层 TCP/UDP 负载均衡器
  5. golang 读取文件
  6. python代码案例详解-新手必学Python爬虫之Scrapy框架案例详解
  7. Diverse Strings
  8. php 连接oracle插入多张图片的方法
  9. HDU 2112 HDU Today (dijkstar + map)
  10. HDU 2896 病毒侵袭【AC自动机】
  11. 牛客练习赛 58——树链剖分
  12. 【数据库】Mysql的REPLACE()函数替换字符串
  13. spring与web关系
  14. 一种云端语音识别系统及方法
  15. 4线-2线优先编码器
  16. 2022-2028全球与中国无线电远程单元市场现状及未来发展趋势
  17. php下载excel乱码,如何解决php下载excel乱码的问题
  18. spring常见面试题(2023最新)
  19. 单片机C语言步进电机实训报告,步进电机控制实训报告.doc
  20. STM32H7系列其一

热门文章

  1. 《预训练周刊》第15期:Bengio, Lecun, Hinton | 人工智能深度学习、用于图像分类的全局过滤网络...
  2. 叶杰平:主流强化学习过分简化假设,与真实场景差距较大
  3. 自然语言处理顶会COLING 2020最佳论文等三项大奖出炉 | AI日报
  4. 上交张伟楠副教授:基于模型的强化学习算法,基本原理以及前沿进展(附视频)
  5. 知识图谱前沿跟进,看这篇就够了,Philip S. Yu 团队发布权威综述,六大开放问题函待解决!...
  6. 透彻影像王书浩:三易其辙与功不唐捐
  7. 第一届全国计算社会科学高端论坛在清华大学举行
  8. 对标SpaceX?B站也要发卫星了!
  9. 《大厂算法面试题目与答案汇总,剑指offer等常考算法题思路,python代码》V1.0版...
  10. 香港中文大学(深圳)罗元教授招收计算机与信息工程全奖博士