We prove that if a uniformly bounded (or equidistantly uniformly bounded) Nemytskij operator maps the space of functions of bounded ${\it\varphi}$-variation with weight function in the sense of Riesz into another space of that type (with the same weight function) and its generator is continuous with respect to the second variable, then this generator is affine in the function variable (traditionally, in the second variable).