Example: Sample ABAP to Follow-up Postings in IM 
Report RLEXIP01 serves as an example as to how information that has been posted in WM can be completed in IM. Since it is intended to be used for customer-specific development, this report was intentionally kept easy to read and is well documented online. For this reason it is restricted to movement type 501 (Goods receipts without purchase orders into unrestricted stock).
To run this sample ABAP
The system retrieves a list of the existing negative quants that were posted in IM. From the list you can select the quants that are to be cleared.
When clearing the quants, the transaction for processing goods movements is called up with a list of the selected materials and the appropriate postings can be carried out.