Hi Mark,
Better to put this in UDF because this is a common requirement when we work with IDOCs, because from ERP the minus sign is placed in right side of the amount.
In my project i have created the UDF for this in common function library under common software component and i used it in the all the mappings where i need this requirement.
Regards,
Praveen.