您好,欢迎来到智榕旅游。
搜索
您的当前位置:首页MBEWMBEWH 更新机制分析

MBEWMBEWH 更新机制分析

来源:智榕旅游
假设有某料从period 1开始就一直没有做交易,那时库存是100,MAP假设是1RMB/PC,一直到现在period 4, 你收了100个,2RMB/PC,系统会在每个跨期间的第一笔交易将历史记录写入MBEWH,假设period 2,3无交易,MBEWH将增加一笔 period 3, 100 PC, MAP 1RMB ,同时MBEW的current period/year从2006/period 1改成2006/03, 即MBEWH总是会在post第一笔当前期间时总是保存上期间的stock value 和MAP . MBEWH几个月没数据说明物料几个月没移动. MBEWH总是会在post第一笔当前期间的物料移动时总是保存上期间的total stock value 和MAP ,如果中间可能没有period记录说明这n-1个period该物料没有做任何移动

Note 1935 Summary

As of Release 4.5, stock and valuation fields that refer to the previous period or those dating back even farther, are not stored in those tables in which the current stock data is stored (MBEW, MARD, MCHB, and so on) but in so-called history tables (MBEWH, MARDH, MCHBH, and so on.).

(Also compare release note for period closing as of Release 4.5)

These history tables can have one entry per period. The values of such an entry refer to the end of the period. For the current period, there are no entries in the history tables. An entry is not written in this history table for every period. If stock-relevant or valuation-relevant data change, the system might generate an entry in the history table.

Furthermore, the fields LFMON ('Current Period (Booking period)') and LFGJA ('Fiscal Year of the Current Period') in the stock tables are no longer automatically set to the current period by the period closing program. The period is only transferred to the new period during the first movement. At the same time, the relevant history entries are also generated. Example:

Material 4711 has a stock of 10 pieces at the end of period 01 In period 02, a goods receipt of 5 pieces occurs.

Now, an entry is added in the history table for period 01 with a stock of 10 pieces. Simultaneously, the current stock is increased to 15 pieces and the 'Current Period' field (LFMON) is set to 02.

In period 02, an additional goods receipt occurs with 2 pieces.

The history table is not affected by this operation since an entry already exists for period 01. The current stock is increased to 17 pieces. In period 04, a goods issue of 4 pieces occurs.

Now, the system adds an entry for period 03 with a stock of 17 pieces in the history table. Simultaneously, the current stock is decreased to 13 pieces and the 'Current Period' field (LFMON) is changed from 02 to 04.

Since no goods movement has occurred in period 03, there is no entry for period 02 in the history table.

Thus, the following applies:

1. The stock in the stock table describes the situation since the last goods movement which changed this segment. The period of this movement appears in the fields LFMON and LFGJA. All stocks for periods which are earlier than the periods given in the fields LFMON and LFGJA relate to the current stocks and can be found in the stock tables.

2. If for a previous period n, no entry exists in the history table, then the values of this period correspond to the values of the period n+1.

Since the 2nd rule can be used recursively, under consideration of the two above rules the values can be determined for any periods of that period in which Release 4.5 or a higher release were implemented.

Please note: Since the history tables are not created retroactively, the history entries only exist in their completed form from the time from which users work with the new period closing program. The periods for which the period closing program has run for the first time with history records are listed in the table MARV for every company code in the fields GJA_40C and MON_40C. For technical reasons it is possible that there are also entries in the history tables with an older period. Nevertheless, these entries are not available without gaps for all stocks.

This algorithm is also implemented in function modules MBEW_EXTEND, MARD_EXTEND and so on. These function modules are used in the standard SAP programs in order to determine the values of the previous period and to extend tables with the reference structure MBEW, MARD and so on correspondingly.

If you have your own programs which use the prior-period values from the tables MARD, MBEW etc., you should call up the relevant EXTEND component after reading the data from the table. This then returns the data as though no change had taken place in the previous logic. You can then remove the prior-period values from the known fields. Additional key words

MBEWH, MARDH, MCHBH, stock information, previous period stock, previous month stock

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- zrrp.cn 版权所有 赣ICP备2024042808号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务