Create ScalarFunction and apply it to all scalar function