Receipt - Inspection Required

I will need to create a BPM on the rcvDtl. If the inspection is required, I will need to change automatically the bin by a default bin. But I don't know why is the good place to put my code for change the bin ?

Thanks !

Vantage 8.03.305