Hello,
You are saying that the issue occurs when the UD is done thru an interface. In this case, in order to help, we should know what your interface is doing. Are you using a BAPI or a FM? Can you share how your Interface is doing the UD?
Kind Regards,
Mariano