Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
Showing results for 
Search instead for 
Did you mean: 
Active Contributor
Hello Everyone,

The following process will shed light on how to remove discrepancies related to sale orders and deliveries.

Problem Statement:

The issue is that when a sale order or delivery has been rejected, blocked, or deleted, the quantity of material related to that sale order or delivery is displayed in MD04. Due to these discrepancies in quantity of a material, the planning/procurement department of an organization is not getting the correct demand for the material, and it causes excess procurement or production of that material, and ATP of that material is not triggered correctly.


To overcome the above problem, the following solution is as below to remove discrepancies from MD04 transaction related to Sale Orders and Deliveries.

Step-1:   Run the standard program SDRQCR21 in T code-SE38 and place the sale order/delivery number in the field of Document Number as per the below screenshot and check mark the below options and execute the transaction.

This program can be run for Material/Plant/Creation Date/Sale Orders and Deliveries. It can also be run for a single value or multiple values by selecting multiple options on the screen.

Note: When executing this program, do not select the "Planning Entry" option on the screen.


Step-2:        Now check in MD04 that the discrepancies related to Sale Order and Delivery have been removed for which the above program ran.

To Conclude:

Once the above steps will be executed successfully, the business will get the correct demand/planning quantity of the material either to procure or produce that material.


To avoid any risk in the Production system, instead of running this program-SDRQCR21 directly in SE38, business can make Z T-codes to run this program in the production system and give authorization to the respective user for that T-code to run this program.

Please follow neeraj.jain16 for more content on issues & topics related to SAP Sales & Distribution, Material Management and Production Planning.

If any questions, please click here

Thanks for your interest! Please share feedback, comments, or suggestions below.

Best Regards,

Neeraj Jain

SAP Lead Consultant in HCL Technologies Limited