Ranjan,
If you have the federal government functionality activated, I would look at using Automatic Budget Postings (transaction FMABPDERIVE) to create a BCS document that would move the remaining amount out of a consumable budget type. This would then prevent it from being spent.
Thanks,
Todd