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 Purchase Orders/Scheduling Agreements, Purchase Requisitions and Reservations.

Problem Statement:

The issue is that when a Purchase Orders/Scheduling Agreements, Purchase Requisitions and Reservations has been rejected, blocked, or deleted, the quantity of material related to that document 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 Purchase Orders/Scheduling Agreements, Purchase Requisitions and Reservations.

 Step-1:   Run the standard program RM06C020 in T code-SE38 and place the Purchase Order number in the field of “Selected POs/Sched. Agreements” as per the below screenshot and check mark the below options and execute the transaction.

It can also be run for a single value or multiple values by selecting multiple options on the screen.

Note: When executing this program, first run the program in test mode and to run on test mode don’t click on option “Direct Database Update”

Step-2:        After executing the report if you see input purchase order is displayed then go back and again run the report with same input along with check the option “Direct Database Update”.

Step-3:        Now check in MD04 that the inconsistency/discrepancies related to Purchase Order have been removed for which the above program ran.

Inconsistency/Discrepancy related to Scheduling Agreements, Purchase Requisitions and Reservations run the program with relative number of documents in relative field and execute the steps 1 to 3 as described above.

For more Details: Refer SAP Note#1904656

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- RM06C020 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.

To remove inconsistencies related to Sale Orders and Deliveries, please refer below SAP Blog:


See soon Next Blog: Unable to delete a component from Maintenance & Service Order.

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

If any questions, please click here

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

Best Regards,

Neeraj Jain

SAP Technical Manager in HCL Technologies Limited

Labels in this area