Hi Swati,
You can automate this by creating a dedicated order type for the rework order. The next step is to create a settlement profile ( tcode - OPKT) for rework order type and assign it to the order type in t.code OPJH (discrete manu). Hope it helps.
Thanks,
Pradeep