Shortship sales order in D365 F&O

hi all,

How can I make the system allows the selection of a reason when a quantity shipped is different from the quantity ordered fom the mobile RF of from the sales order itself? and also where and how can we add the reason code? Reasons: Loading, storage, inventory, handling, etc.

Thank you