Implement BADI_ME_PROCESS_PR_CUST and use method PROCESS_ITEM, you can use this thread as reference, there it is being used for PO, but the approach is the same, only the badi name is different.
Delivery address updating based on Plant in ME21N
Regards,
Felipe