When the Reference between ProdTable and PurchTable will be created....?

Hi All,

I want to know the process when the PurchLine.InventRefId feild is filled.

Exactly at what process time it will happen…?

Thanks In Advance

I believe when a sub-contracting purchase order is created from the production order due to the setup.