Hi Praneeth,
Try to put system restriction to fail the confirmation in case raw materials are not issued. In OPK4 confirmation parameters for the combination of Plant and Order ype - In individual Entry General Tab - Under Error Handling/Logs if you check Goods Movement and Termination of Goods of Incorrect Goods Movement then confirmation will not be posted if errors are available due to stock issues for backflush materials. System will pop to rectify the issues. With restriction user cannot do confirmation unless until he makes sure that stoc kof raw materials are available.
Regards,
Ramagiri