Hi,
i have a requirement that If the planned order is being firmed to an already created purchase order, system will match the customers coming from the UD1 of planned order and Purchase order respectively. If there is a mismatch, system will restrict firming.
how to achieve this through X++ code dynamics 365fo.