A Necessary and Sufficient Condition for Kleenean Functions