STO from a sales order

Hi

I want to trigger a purchase requisition from a sales order to create a STO which will be used to create a replenishment delivery to supply to the plant in the sales order. What are the settings to be done in item category, schedule line category and other places