Generating Purchase order from Production order

Hi all!
Please tell me, how can I create a purchase order from a production order if some components are missing, for example?

anyone help me?