Uday,
Read theory related to Backward and Forward scheduling.
Confirmed qty can populate in your sales order, if available quantity is present in your plant (and storage location).
(speaking very broadly...just to give you a direction, to research and study)
TW