Hello,
Test this scenario in your quality system and come back with further queries.
In Customizing, you can set that production or process orders should be assigned to a cost collector and you can do the period settlement too.
Please refer,
Preliminary Settlement of Rework - Cost Object Controlling (CO-PC-OBJ) - SAP Library
Rework Orders in Period-End Close of Cost Object Controlling - Release notes 46A - SAP Library
Best Regards,
R.Brahmankar