On the characterization of the range of an integral functional