For the purchased materials (P), please check the enhancement SAPLV1ZE by which you can make the system to create batches with external interval according to your requirement. In standard there is no option available for auto batch creation based on the source of a material. For clarification, please check the following function,
Logistics general ---> batch management ---> Creation of new batches ---> define batch creation of goods movements