mat.setWeightUom(JUtility.getDefaultValue(weight_uom, mat.getWeightUom(), ""));
mat.setOldMaterial(JUtility.getDefaultValue(old_material, mat.getOldMaterial(), ""));
mat.setInspectionID(JUtility.getDefaultValue(inspection_id, mat.getInspectionID(), ""));
mat.setDefaultBatchStatus(JUtility.getDefaultValue(default_batch_status, mat.getDefaultBatchStatus(), defaultBatchStatus));
if (mat.update() == false)
{
result = false;
setErrorMessage("Material " + material + " update error. " + mat.getErrorMessage());
}