Symptom
When trying to post a goods issue with posting date in the previous period, the error message 'M7 021 - Deficit of ... prev. ...' is raised. The error message is not sent if the posting date is in the current period.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental. “
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to the Post Goods Movement;
- Choose a business transaction that removes the stock from the warehouse (goods issue, for example);
- Choose a posting date in the previous period;
- Set the item as 'OK';
- Click on the 'Post' button.
Cause
The system checks the period in which the posting is made and then checks if there is stock enough for the material, plant and storage location in that period in question. Posting a goods movement in the previous period leads to a change in the stock quantity and in the stock value in both, the previous and the current period.
Consider the following situation:
- A material master record is created in July.
- In August we post a goods receipt for this material of 10 PC.
- We close the month of August.
The current period is September and the previous period is August. - In September, with posting date in September, we post a further goods receipt of 10 PC.
At this point we have the following situation:
Total stock in the current period: 20 PC (10 PC were posted in August, the other 10 PC were posted in September).
Total stock in the previous period: 10 PC. - If we now try to issue 15 PC with posting date in August, we will not be able, since, for that period, we only have 10.
The error message "M7 021 - Deficit of SL Unrestr. prev. 5,00 PC" will be sent. - If we try to issue 10 PC with posting date in August, we will be able. The previous period stock with then be 0 and the current stock 10 PC.
We will not be able to issue more stock in the previous period since it is now zero, but we will still be able to issue 10 PC in the current period.
Resolution
Consider always the period in which the goods movement is taking place.
You can check the following:
- The app Display Stock Overview shows the stocks in the current period;
- Check the stock in the previous period in Display Material;
- Select Under the Plant Stock and Storage Location Stock views, in the sections “Plant stocks in the previous period” and “Storage location stocks in the previous period”.
See Also
SAP KBA 2477095 - The period concept - Clearing the stock
Keywords
M7 021, M7_021, GR cancelation, cancellation, previous period, current period, posting date, goods issue, M7021, posting to previous period, material posting, outbound delivery, MMBE, deficit, MM02, material master, past, MCHB, MCHBH, MB52 , KBA , MM-IM-GF-2CL , Basic Functions (Public Cloud) , Known Error
Product
Attachments
| Pasted image.png |
| Pasted image.png |
| Pasted image.png |
| Pasted image.png |
SAP Knowledge Base Article - Public