We wish to investigate mean ergodic theorems for generalizations of almost periodic functions on semigroups, as well as for semigroups of operators in the framework of locally convex spaces. Specially, we present functional characterizations of concepts of almost periodicity for vector-valued functions