Page tree
Skip to end of metadata
Go to start of metadata

Issue:

You need to clear the stock of a Material in a Plant and a Storage location because you want to, for example, change an important indicator in the material master (like the Batch Management Indicator).

This requires that the stock is zero in both, the current and the previous period.

Solution:

The stock of a material is managed on a montly basis in the stock and valuation tables.

You need to take into account that a posting in the previous period (i.e. with a posting date in the previous period) will always affect your stocks in the current period.  

If you need to clear the stock in the two periods you will need to consider what is the situation before the posting in both periods:

Case 1) Same quantity in the two periods:

Previous period: 10 PC.

Current period : 10 PC.

A goods issue of 10 PC in the previous period (with a posting date in the previous period) will clear the stock in both periods.   

After the posting of the goods issue you will have:

Previous period: 0 PC.

Current period : 0 PC.

Case 2) More quantity in the current period:

Previous period: 10 PC.

Current period : 15 PC.

A goods issue of 15 PC in the previous period (with a posting date in the previous period) will not be possible because there is not stock enough in the current period to carry out the posting.

The system will send the error message M7021 with the short text "Deficit of SL Unrestr. prev. 5 PC" where the term "prev" indicates the previous period.

In order to clear the stock in this case the posting should be made as follows:

A goods issue of 10 PC in the previous period will clear the stock in the previous period period and will leave 5 PC in the current one.   

After the posting of the goods issue you will have:

Previous period: 0 PC.

Current period : 5 PC.

You will then need to post a further goods issue of 5 PC in the current period to clear the stock completely.

Case 3) More quantity in the previous period:

Previous period: 10 PC.

Current period :  5 PC.

A goods issue of 10 PC in the previous period (with a posting date in the previous period) will not be possible because there is not stock enough in the current period to carry out the posting.

The system will send the error M7021 reporting a deficit of 5 PC in the stock of the current period.

The posting should be made as follows:

You need to post a goods receipt of 5 PC in the current period.   

After the posting of the goods receipt you will have:

Previous period: 10 PC.

Current period : 10 PC.

A goods issue of 10 PC in the previous period will now be possible and you will be as in the Case 1).