Abstract For a given σ-ideal of sets, the notion of a generalized stepfunction is introduced and investigated in connection with the problem of sup-measurability of certain functions of two variables, regarded as superposition operators.